Nuxeo Enterprise Platform 5.1

org.nuxeo.runtime.model.impl
Class RegistrationInfoImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.impl.RegistrationInfoImpl
All Implemented Interfaces:
Serializable, RegistrationInfo

public class RegistrationInfoImpl
extends Object
implements RegistrationInfo

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.nuxeo.runtime.model.RegistrationInfo
ACTIVATED, ACTIVATING, DEACTIVATING, REGISTERED, RESOLVED, UNREGISTERED
 
Constructor Summary
RegistrationInfoImpl()
           
 
Method Summary
protected  ComponentInstance createComponentInstance()
           
 void destroy()
           
 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.
 ComponentManager getManager()
          Gets the component manager.
 ComponentName getName()
          Gets the name of the component.
 Map<String,Property> getProperties()
          Gets the component properties.
 Set<ComponentName> getRequiredComponents()
          Gets the list of the required components.
 int getState()
          Gets the component state.
 Version getVersion()
          Gets the component version.
 boolean isActivated()
          Checks whether this component is activated.
 boolean isDisposed()
           
 boolean isPending()
           
 boolean isResolved()
          Checks whether this component is resolved (i.e.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistrationInfoImpl

public RegistrationInfoImpl()
Method Detail

isPending

public final boolean isPending()

destroy

public void destroy()

isDisposed

public final boolean isDisposed()

getExtensionPoints

public ExtensionPoint[] getExtensionPoints()
Description copied from interface: RegistrationInfo
Gets the defined extension points.

Specified by:
getExtensionPoints in interface RegistrationInfo
Returns:
the defined extension poitns

getComponent

public ComponentInstance getComponent()
Description copied from interface: RegistrationInfo
Gets the component instance or null if the component was not yet activated.

Specified by:
getComponent in interface RegistrationInfo
Returns:
the component instance

getName

public ComponentName getName()
Description copied from interface: RegistrationInfo
Gets the name of the component.

Specified by:
getName in interface RegistrationInfo
Returns:
the component name

getProperties

public Map<String,Property> getProperties()
Description copied from interface: RegistrationInfo
Gets the component properties.

Specified by:
getProperties in interface RegistrationInfo
Returns:
the component properties

getExtensionPoint

public ExtensionPointImpl getExtensionPoint(String name)

getState

public int getState()
Description copied from interface: RegistrationInfo
Gets the component state.

Specified by:
getState in interface RegistrationInfo
Returns:
the component state

getExtensions

public Extension[] getExtensions()
Description copied from interface: RegistrationInfo
Gets the extensions contributed by this component.

Specified by:
getExtensions in interface RegistrationInfo
Returns:
the contributed extensions

getRequiredComponents

public Set<ComponentName> getRequiredComponents()
Description copied from interface: RegistrationInfo
Gets the list of the required components.

Specified by:
getRequiredComponents in interface RegistrationInfo
Returns:
the required components

getContext

public RuntimeContext getContext()
Description copied from interface: RegistrationInfo
Gets the runtime context that created this registration info.

Specified by:
getContext in interface RegistrationInfo
Returns:
the runtime context

getVersion

public Version getVersion()
Description copied from interface: RegistrationInfo
Gets the component version.

Specified by:
getVersion in interface RegistrationInfo
Returns:

getDocumentation

public String getDocumentation()
Description copied from interface: RegistrationInfo
Gets any comments on this component.

Specified by:
getDocumentation in interface RegistrationInfo
Returns:

toString

public String toString()
Overrides:
toString in class Object

getManager

public ComponentManager getManager()
Description copied from interface: RegistrationInfo
Gets the component manager.

Specified by:
getManager in interface RegistrationInfo
Returns:
the component manager

createComponentInstance

protected ComponentInstance createComponentInstance()
                                             throws Exception
Throws:
Exception

isActivated

public boolean isActivated()
Description copied from interface: RegistrationInfo
Checks whether this component is activated.

Specified by:
isActivated in interface RegistrationInfo
Returns:
true if the component is activated, false otherwise

isResolved

public boolean isResolved()
Description copied from interface: RegistrationInfo
Checks whether this component is resolved (i.e. all its dependencies are satisfied).

Specified by:
isResolved in interface RegistrationInfo
Returns:
true if the component is resolved, false otherwise

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.