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 Constructor Description PatchServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbundleChanged(org.osgi.framework.BundleEvent event)Patchload(String id)Load a patch from its idItempatch(Patch patch)Apply a patchvoidpostConstruct()voidpreDestroy()voidsetBundleContext(org.osgi.framework.BundleContext bundleContext)voidsetPersistenceService(PersistenceService persistenceService)
-
-
-
Method Detail
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
setPersistenceService
public void setPersistenceService(PersistenceService persistenceService)
-
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
public Patch load(String id)
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
public Item patch(Patch patch)
Description copied from interface:PatchServiceApply a patch- Specified by:
patchin interfacePatchService- Parameters:
patch- the patch to apply- Returns:
- the patched item
-
-