public class RegistrationInfoImpl extends Object implements RegistrationInfo
ACTIVATED, ACTIVATING, DEACTIVATING, REGISTERED, RESOLVED, 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() |
void |
deactivate() |
void |
destroy() |
boolean |
equals(Object obj) |
Set<ComponentName> |
getAliases()
Gets the list of aliases.
|
int |
getApplicationStartedOrder()
The component notification order for
RegistrationInfo.notifyApplicationStarted(). |
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.
|
ExtensionPointImpl |
getExtensionPoint(String name) |
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() |
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).
|
void |
notifyApplicationStarted()
Notify the component instance that the Nuxeo application started
|
void |
reload()
Reload the underlying component if reload is supported
|
void |
resolve() |
void |
restart() |
void |
setContext(RuntimeContext rc) |
void |
setPersistent(boolean isPersistent)
Set the persistent flag on this registration
|
String |
toString() |
void |
unresolve() |
public RegistrationInfoImpl()
public RegistrationInfoImpl(ComponentName name)
name - the component namepublic void attach(ComponentManagerImpl manager)
manager - public void setContext(RuntimeContext rc)
public boolean isDisabled()
RegistrationInfoisDisabled in interface RegistrationInfopublic final boolean isPersistent()
RegistrationInfoisPersistent in interface RegistrationInfopublic void setPersistent(boolean isPersistent)
RegistrationInfosetPersistent in interface RegistrationInfopublic void destroy()
public final boolean isDisposed()
public ExtensionPoint[] getExtensionPoints()
RegistrationInfogetExtensionPoints in interface RegistrationInfopublic ComponentInstance getComponent()
RegistrationInfogetComponent in interface RegistrationInfopublic void reload()
throws Exception
Exceptionpublic ComponentName getName()
RegistrationInfogetName in interface RegistrationInfopublic Map<String,Property> getProperties()
RegistrationInfogetProperties in interface RegistrationInfopublic ExtensionPointImpl getExtensionPoint(String name)
public int getState()
RegistrationInfogetState in interface RegistrationInfopublic Extension[] getExtensions()
RegistrationInfogetExtensions in interface RegistrationInfopublic Set<ComponentName> getAliases()
RegistrationInfogetAliases in interface RegistrationInfopublic Set<ComponentName> getRequiredComponents()
RegistrationInfogetRequiredComponents in interface RegistrationInfopublic RuntimeContext getContext()
RegistrationInfogetContext in interface RegistrationInfopublic String getBundle()
RegistrationInfogetBundle in interface RegistrationInfopublic Version getVersion()
RegistrationInfogetVersion in interface RegistrationInfopublic String getDocumentation()
RegistrationInfogetDocumentation in interface RegistrationInfopublic ComponentManager getManager()
RegistrationInfogetManager in interface RegistrationInfopublic int getApplicationStartedOrder()
RegistrationInfoRegistrationInfo.notifyApplicationStarted().getApplicationStartedOrder in interface RegistrationInfopublic void notifyApplicationStarted()
throws Exception
RegistrationInfonotifyApplicationStarted in interface RegistrationInfoExceptionpublic boolean isActivated()
RegistrationInfoisActivated in interface RegistrationInfopublic boolean isResolved()
RegistrationInfoisResolved in interface RegistrationInfopublic String[] getProvidedServiceNames()
RegistrationInfogetProvidedServiceNames in interface RegistrationInfopublic ServiceDescriptor getServiceDescriptor()
public String getImplementation()
RegistrationInfogetImplementation in interface RegistrationInfopublic void checkExtensions()
public URL getXmlFileUrl()
RegistrationInfogetXmlFileUrl in interface RegistrationInfoCopyright © 2013 Nuxeo SA. All Rights Reserved.