|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.impl.ComponentInstanceImpl
public class ComponentInstanceImpl
Constructor Summary | |
---|---|
ComponentInstanceImpl(RegistrationInfoImpl ri)
|
Method Summary | ||
---|---|---|
void |
activate()
Activates the implementation instance. |
|
void |
create()
|
|
void |
deactivate()
Deactivates the implementation instance. |
|
void |
destroy()
Destroys this instance. |
|
|
getAdapter(java.lang.Class<T> adapter)
Returns an object which is an instance of the given class associated with this object. |
|
RuntimeContext |
getContext()
Gets the runtime context attached to this instance. |
|
java.lang.Object |
getInstance()
Gets the actual component implementation instance. |
|
ComponentName |
getName()
Gets the name of the component. |
|
Property |
getProperty(java.lang.String property)
|
|
java.lang.String[] |
getPropertyNames()
|
|
java.lang.Object |
getPropertyValue(java.lang.String property)
|
|
java.lang.Object |
getPropertyValue(java.lang.String property,
java.lang.Object defValue)
|
|
java.lang.String[] |
getProvidedServiceNames()
Gets the list of provided services, or null if no service is provided. |
|
RuntimeContext |
getRuntimeContext()
|
|
void |
registerExtension(Extension extension)
Registers the given extension. |
|
java.lang.String |
toString()
|
|
void |
unregisterExtension(Extension extension)
Unregisters the given extension. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ComponentInstanceImpl(RegistrationInfoImpl ri) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public java.lang.Object getInstance()
ComponentInstance
getInstance
in interface ComponentInstance
public void create() throws java.lang.Exception
java.lang.Exception
public void destroy() throws java.lang.Exception
ComponentInstance
destroy
in interface ComponentInstance
java.lang.Exception
- if any error occurspublic RuntimeContext getContext()
ComponentInstance
getContext
in interface ComponentInstance
public ComponentName getName()
ComponentInstance
getName
in interface ComponentInstance
public void activate() throws java.lang.Exception
ComponentInstance
activate
in interface ComponentInstance
java.lang.Exception
- if any error occurs during activationpublic void deactivate() throws java.lang.Exception
ComponentInstance
deactivate
in interface ComponentInstance
java.lang.Exception
- if any error occurs during deactivationpublic void registerExtension(Extension extension) throws java.lang.Exception
Extensible
registerExtension
in interface Extensible
extension
- the extension to register
java.lang.Exception
- if any error occurspublic void unregisterExtension(Extension extension) throws java.lang.Exception
Extensible
unregisterExtension
in interface Extensible
extension
- the extension to unregister
java.lang.Exception
- if any error occurspublic <T> T getAdapter(java.lang.Class<T> adapter)
Adaptable
null
if
no such object can be found.
getAdapter
in interface Adaptable
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given classpublic java.lang.String[] getPropertyNames()
getPropertyNames
in interface ComponentContext
public Property getProperty(java.lang.String property)
getProperty
in interface ComponentContext
public RuntimeContext getRuntimeContext()
getRuntimeContext
in interface ComponentContext
public java.lang.Object getPropertyValue(java.lang.String property)
getPropertyValue
in interface ComponentContext
public java.lang.Object getPropertyValue(java.lang.String property, java.lang.Object defValue)
getPropertyValue
in interface ComponentContext
public java.lang.String[] getProvidedServiceNames()
ComponentInstance
getProvidedServiceNames
in interface ComponentInstance
public java.lang.String toString()
toString
in class java.lang.Object
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |