Class PatchServiceImpl
java.lang.Object
org.apache.unomi.services.impl.patches.PatchServiceImpl
- All Implemented Interfaces:
EventListener
,PatchService
,org.osgi.framework.BundleListener
,org.osgi.framework.SynchronousBundleListener
public class PatchServiceImpl
extends Object
implements PatchService, org.osgi.framework.SynchronousBundleListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bundleChanged
(org.osgi.framework.BundleEvent event) Load a patch from its idApply a patchvoid
void
void
setBundleContext
(org.osgi.framework.BundleContext bundleContext) void
setPersistenceService
(PersistenceService persistenceService)
-
Constructor Details
-
PatchServiceImpl
public PatchServiceImpl()
-
-
Method Details
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext) -
setPersistenceService
-
postConstruct
public void postConstruct() -
preDestroy
public void preDestroy() -
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-
load
Description copied from interface:PatchService
Load a patch from its id- Specified by:
load
in interfacePatchService
- Parameters:
id
- the unique id of the patch- Returns:
- the patch
-
patch
Description copied from interface:PatchService
Apply a patch- Specified by:
patch
in interfacePatchService
- Parameters:
patch
- the patch to apply- Returns:
- the patched item
-