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 TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent event) Load a patch from its idApply a patchvoidvoidvoidsetBundleContext(org.osgi.framework.BundleContext bundleContext) voidsetPersistenceService(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:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-
load
Description copied from interface:PatchServiceLoad a patch from its id- Specified by:
loadin interfacePatchService- Parameters:
id- the unique id of the patch- Returns:
- the patch
-
patch
Description copied from interface:PatchServiceApply a patch- Specified by:
patchin interfacePatchService- Parameters:
patch- the patch to apply- Returns:
- the patched item
-