public class RegistrationInfoImpl extends Object implements RegistrationInfo
ACTIVATED, ACTIVATING, DEACTIVATING, REGISTERED, RESOLVED, START_FAILURE, STARTED, STARTING, STOPPING, UNREGISTERED
Constructor and Description |
---|
RegistrationInfoImpl() |
RegistrationInfoImpl(ComponentName name)
Useful when dynamically registering components
|
Modifier and Type | Method and Description |
---|---|
void |
activate() |
void |
attach(ComponentManagerImpl manager)
Attach to a manager - this method must be called after all registration fields are initialized.
|
void |
checkExtensions() |
protected ComponentInstance |
createComponentInstance() |
void |
deactivate() |
void |
deactivate(boolean mustUnregisterExtensions)
Deactivate the component.
|
void |
destroy() |
boolean |
equals(Object obj) |
Set<ComponentName> |
getAliases()
Gets the list of aliases.
|
int |
getApplicationStartedOrder()
The component notification order for
ComponentManager.start() . |
String |
getBundle()
Get the owner bundle symbolic name of that component.
|
ComponentInstance |
getComponent()
Gets the component instance or null if the component was not yet activated.
|
RuntimeContext |
getContext()
Gets the runtime context that created this registration info.
|
String |
getDocumentation()
Gets any comments on this component.
|
ExtensionPoint[] |
getExtensionPoints()
Gets the defined extension points.
|
Extension[] |
getExtensions()
Gets the extensions contributed by this component.
|
String |
getImplementation()
Give the class name for the component implementation if this is a java component
|
ComponentManager |
getManager()
Gets the component manager.
|
ComponentName |
getName()
Gets the name of the component.
|
Map<String,Property> |
getProperties()
Gets the component properties.
|
String[] |
getProvidedServiceNames()
Gets the list of provided services or null if no service is provided.
|
Set<ComponentName> |
getRequiredComponents()
Gets the list of the required components.
|
ServiceDescriptor |
getServiceDescriptor() |
String |
getSourceId()
The id of the content source used to create the registration (usually a StreamRef id)
|
int |
getState()
Gets the component state.
|
Version |
getVersion()
Gets the component version.
|
URL |
getXmlFileUrl()
Retrieve the URL of the XML file used to declare the component
|
int |
hashCode() |
boolean |
isActivated()
Checks whether this component is activated.
|
boolean |
isDisabled()
Whether this component is disabled.
|
boolean |
isDisposed() |
boolean |
isPersistent()
Whether or not this registration is persisted by the user (not part of a real bundle).
|
boolean |
isResolved()
Checks whether this component is resolved (i˙e˙ all its dependencies are satisfied).
|
boolean |
isStarted()
Checks whether this component is started
|
void |
reload()
Deprecated.
since 9.3, but in fact since 5.6, see only usage in LiveInstallTask#reloadComponent
|
void |
resolve() |
void |
restart()
Deprecated.
since 9.2 seems unused
|
void |
setContext(RuntimeContext context) |
void |
setPersistent(boolean isPersistent)
Set the persistent flag on this registration
|
void |
setState(int state)
DON'T USE THIS METHOD - INTERNAL API.
|
void |
start() |
void |
stop() |
String |
toString() |
void |
unresolve() |
boolean |
useFormerLifecycleManagement()
Use former way for
RegistrationInfoImpl . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtensionPoint
public RegistrationInfoImpl()
public RegistrationInfoImpl(ComponentName name)
name
- the component namepublic void attach(ComponentManagerImpl manager)
public void setContext(RuntimeContext context)
public boolean isDisabled()
RegistrationInfo
isDisabled
in interface RegistrationInfo
public final boolean isPersistent()
RegistrationInfo
isPersistent
in interface RegistrationInfo
public void setPersistent(boolean isPersistent)
RegistrationInfo
setPersistent
in interface RegistrationInfo
public void destroy()
public final boolean isDisposed()
public ExtensionPoint[] getExtensionPoints()
RegistrationInfo
getExtensionPoints
in interface RegistrationInfo
public ComponentInstance getComponent()
RegistrationInfo
getComponent
in interface RegistrationInfo
@Deprecated public void reload()
public ComponentName getName()
RegistrationInfo
getName
in interface RegistrationInfo
public Map<String,Property> getProperties()
RegistrationInfo
getProperties
in interface RegistrationInfo
public int getState()
RegistrationInfo
getState
in interface RegistrationInfo
public Extension[] getExtensions()
RegistrationInfo
getExtensions
in interface RegistrationInfo
public Set<ComponentName> getAliases()
RegistrationInfo
getAliases
in interface RegistrationInfo
public Set<ComponentName> getRequiredComponents()
RegistrationInfo
getRequiredComponents
in interface RegistrationInfo
public RuntimeContext getContext()
RegistrationInfo
getContext
in interface RegistrationInfo
public String getBundle()
RegistrationInfo
getBundle
in interface RegistrationInfo
public Version getVersion()
RegistrationInfo
getVersion
in interface RegistrationInfo
public String getDocumentation()
RegistrationInfo
getDocumentation
in interface RegistrationInfo
public ComponentManager getManager()
RegistrationInfo
getManager
in interface RegistrationInfo
public void setState(int state)
RegistrationInfo
setState
in interface RegistrationInfo
state
- the state to set in this registration infoprotected ComponentInstance createComponentInstance()
@Deprecated public void restart()
public int getApplicationStartedOrder()
RegistrationInfo
ComponentManager.start()
.getApplicationStartedOrder
in interface RegistrationInfo
public void start()
public boolean isStarted()
RegistrationInfo
isStarted
in interface RegistrationInfo
public void stop() throws InterruptedException
InterruptedException
public void activate()
public void deactivate()
public void deactivate(boolean mustUnregisterExtensions)
public void resolve()
public void unresolve()
public boolean isActivated()
RegistrationInfo
isActivated
in interface RegistrationInfo
public boolean isResolved()
RegistrationInfo
isResolved
in interface RegistrationInfo
public String[] getProvidedServiceNames()
RegistrationInfo
getProvidedServiceNames
in interface RegistrationInfo
public ServiceDescriptor getServiceDescriptor()
public String getImplementation()
RegistrationInfo
getImplementation
in interface RegistrationInfo
public void checkExtensions()
public URL getXmlFileUrl()
RegistrationInfo
getXmlFileUrl
in interface RegistrationInfo
public String getSourceId()
RegistrationInfo
getSourceId
in interface RegistrationInfo
public boolean useFormerLifecycleManagement()
RegistrationInfoImpl
.useFormerLifecycleManagement
in interface RegistrationInfo
ComponentManager
or ComponentRegistry
should use the former way to manage
component lifecycle.Copyright © 2018 Nuxeo. All rights reserved.