public class SourceConfigurationHandler extends Object implements org.osgi.service.event.EventHandler, RegistrySourceConfiguration
Constructor and Description |
---|
SourceConfigurationHandler(FederationAdminService federationAdminService,
ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected org.osgi.framework.BundleContext |
getBundleContext() |
void |
handleEvent(org.osgi.service.event.Event event) |
void |
regenerateAllSources()
Regenerates all sources from the current registry entries.
|
void |
regenerateOneSource(String registryId)
Regenerates the sources for a specific registry entry
|
void |
setActivateConfigurations(boolean activateConfigurations) |
void |
setBindingTypeFactoryPid(List<String> bindingTypeFactoryPid) |
void |
setCleanUpOnDelete(boolean cleanUpOnDelete) |
void |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin) |
void |
setMetacardMarshaller(MetacardMarshaller helper) |
void |
setMetaTypeService(org.osgi.service.metatype.MetaTypeService metaTypeService) |
void |
setPreserveActiveConfigurations(boolean preserveActiveConfigurations) |
void |
setRegistryTypeHelper(RegistryPackageTypeHelper registryTypeHelper) |
void |
setSlotHelper(SlotTypeHelper slotHelper) |
void |
setSourceActivationPriorityOrder(List<String> sourceActivationPriorityOrder) |
void |
setUrlBindingName(String urlBindingName) |
public SourceConfigurationHandler(FederationAdminService federationAdminService, ExecutorService executor)
public void destroy()
public void handleEvent(org.osgi.service.event.Event event)
handleEvent
in interface org.osgi.service.event.EventHandler
protected org.osgi.framework.BundleContext getBundleContext()
public void setActivateConfigurations(boolean activateConfigurations)
public void setPreserveActiveConfigurations(boolean preserveActiveConfigurations)
public void setCleanUpOnDelete(boolean cleanUpOnDelete)
public void setSourceActivationPriorityOrder(List<String> sourceActivationPriorityOrder)
public void setUrlBindingName(String urlBindingName)
public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
public void setMetaTypeService(org.osgi.service.metatype.MetaTypeService metaTypeService)
public void setRegistryTypeHelper(RegistryPackageTypeHelper registryTypeHelper)
public void setSlotHelper(SlotTypeHelper slotHelper)
public void setMetacardMarshaller(MetacardMarshaller helper)
public void regenerateAllSources() throws FederationAdminException
RegistrySourceConfiguration
regenerateAllSources
in interface RegistrySourceConfiguration
FederationAdminException
- If the registry entries could not be read from the catalogpublic void regenerateOneSource(String registryId) throws FederationAdminException
RegistrySourceConfiguration
regenerateOneSource
in interface RegistrySourceConfiguration
registryId
- The registryId of the registry entry to regenerate sources fromFederationAdminException
- If the registry entry could not be read from the catalogThis work is licensed under a Creative Commons Attribution 4.0 International License.