public class CoreService extends DefaultComponent
Modifier and Type | Field and Description |
---|---|
protected ComponentContext |
context |
protected static DefaultVersionRemovalPolicy |
DEFAULT_VERSION_REMOVAL_POLICY |
protected Map<CoreServiceOrphanVersionRemovalFilterDescriptor,OrphanVersionRemovalFilter> |
orphanVersionRemovalFilters |
protected Map<CoreServicePolicyDescriptor,VersionRemovalPolicy> |
versionRemovalPolicies |
lastModified
Constructor and Description |
---|
CoreService() |
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtension
protected static final DefaultVersionRemovalPolicy DEFAULT_VERSION_REMOVAL_POLICY
protected Map<CoreServicePolicyDescriptor,VersionRemovalPolicy> versionRemovalPolicies
protected Map<CoreServiceOrphanVersionRemovalFilterDescriptor,OrphanVersionRemovalFilter> orphanVersionRemovalFilters
protected ComponentContext context
public CoreService()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contrib, String point, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void unregisterContribution(Object contrib, String point, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
protected void registerVersionRemovalPolicy(CoreServicePolicyDescriptor contrib)
protected void unregisterVersionRemovalPolicy(CoreServicePolicyDescriptor contrib)
protected void registerOrphanVersionRemovalFilter(CoreServiceOrphanVersionRemovalFilterDescriptor contrib)
protected void unregisterOrphanVersionRemovalFilter(CoreServiceOrphanVersionRemovalFilterDescriptor contrib)
public VersionRemovalPolicy getVersionRemovalPolicy()
public Collection<OrphanVersionRemovalFilter> getOrphanVersionRemovalFilters()
Copyright © 2016 Nuxeo SA. All rights reserved.