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 void
bundleChanged(org.osgi.framework.BundleEvent event)
Patch
load(String id)
Load a patch from its idItem
patch(Patch patch)
Apply a patchvoid
postConstruct()
void
preDestroy()
void
setBundleContext(org.osgi.framework.BundleContext bundleContext)
void
setPersistenceService(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:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-
load
public Patch load(String id)
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
public Item patch(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
-
-