public class RemoteComponentInstance extends Object implements ComponentInstance
| Constructor and Description |
|---|
RemoteComponentInstance(ComponentName name,
RemoteContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Activates the implementation instance.
|
void |
deactivate()
Deactivates the implementation instance.
|
void |
destroy()
Destroys this instance.
|
<T> T |
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.
|
void |
unregisterExtension(Extension extension)
Unregisters the given extension.
|
public RemoteComponentInstance(ComponentName name, RemoteContext context)
public void activate()
throws Exception
ComponentInstanceactivate in interface ComponentInstanceException - if any error occurs during activationpublic void deactivate()
throws Exception
ComponentInstancedeactivate in interface ComponentInstanceException - if any error occurs during deactivationpublic void destroy()
throws Exception
ComponentInstancedestroy in interface ComponentInstanceException - if any error occurspublic void reload()
throws Exception
ComponentInstancereload in interface ComponentInstanceExceptionpublic RuntimeContext getContext()
ComponentInstancegetContext in interface ComponentInstancepublic Object getInstance()
ComponentInstancegetInstance in interface ComponentInstancepublic ComponentName getName()
ComponentInstancegetName in interface ComponentInstancepublic Property getProperty(String property)
getProperty in interface ComponentContextpublic String[] getPropertyNames()
getPropertyNames in interface ComponentContextpublic RuntimeContext getRuntimeContext()
getRuntimeContext in interface ComponentContextpublic void registerExtension(Extension extension) throws Exception
ExtensibleregisterExtension in interface Extensibleextension - the extension to registerException - if any error occurspublic void unregisterExtension(Extension extension) throws Exception
ExtensibleunregisterExtension in interface Extensibleextension - the extension to unregisterException - 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 upnull if this object does not
have an adapter for the given classpublic Object getPropertyValue(String property)
getPropertyValue in interface ComponentContextpublic Object getPropertyValue(String property, Object defValue)
getPropertyValue in interface ComponentContextpublic String[] getProvidedServiceNames()
ComponentInstancegetProvidedServiceNames in interface ComponentInstanceCopyright © 2012 Nuxeo SA. All Rights Reserved.