|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(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. |
|
Object |
getInstance()
Gets the actual component implementation instance. |
|
ComponentName |
getName()
Gets the name of the component. |
|
Property |
getProperty(String property)
|
|
String[] |
getPropertyNames()
|
|
Object |
getPropertyValue(String property)
|
|
Object |
getPropertyValue(String property,
Object defValue)
|
|
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. |
|
void |
reload()
Reload the component. |
|
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 Exception
Exception| Method Detail |
|---|
public Object getInstance()
ComponentInstance
getInstance in interface ComponentInstance
public void create()
throws Exception
Exception
public void destroy()
throws Exception
ComponentInstance
destroy in interface ComponentInstanceException - if any error occurspublic RuntimeContext getContext()
ComponentInstance
getContext in interface ComponentInstancepublic ComponentName getName()
ComponentInstance
getName in interface ComponentInstance
public void activate()
throws Exception
ComponentInstance
activate in interface ComponentInstanceException - if any error occurs during activation
public void deactivate()
throws Exception
ComponentInstance
deactivate in interface ComponentInstanceException - if any error occurs during deactivation
public void reload()
throws Exception
ComponentInstance
reload in interface ComponentInstanceException
public void registerExtension(Extension extension)
throws Exception
Extensible
registerExtension in interface Extensibleextension - the extension to register
Exception - if any error occurs
public void unregisterExtension(Extension extension)
throws Exception
Extensible
unregisterExtension in interface Extensibleextension - the extension to unregister
Exception - if any error occurspublic <T> T getAdapter(Class<T> adapter)
Adaptablenull if
no such object can be found.
getAdapter in interface Adaptableadapter - the adapter class to look up
null if this object does not
have an adapter for the given classpublic String[] getPropertyNames()
getPropertyNames in interface ComponentContextpublic Property getProperty(String property)
getProperty in interface ComponentContextpublic RuntimeContext getRuntimeContext()
getRuntimeContext in interface ComponentContextpublic Object getPropertyValue(String property)
getPropertyValue in interface ComponentContext
public Object getPropertyValue(String property,
Object defValue)
getPropertyValue in interface ComponentContextpublic String[] getProvidedServiceNames()
ComponentInstance
getProvidedServiceNames in interface ComponentInstancepublic String toString()
toString in class Object
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||