|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.deployer.impl.InstallationContextImpl
public class InstallationContextImpl
This context contains information necessary for a JBI component to perform its installation/uninstallation
processing. This is provided to the init() method of the component's Bootstrap interface.
| Field Summary |
|---|
| Fields inherited from interface javax.jbi.management.MBeanNames |
|---|
BOOTSTRAP_EXTENSION, COMPONENT_LIFE_CYCLE_EXTENSION |
| Constructor Summary | |
|---|---|
InstallationContextImpl(ComponentDesc descriptor,
org.apache.servicemix.jbi.runtime.Environment environment)
|
|
| Method Summary | |
|---|---|
javax.jbi.servicedesc.ServiceEndpoint |
activateEndpoint(QName serviceName,
String endpointName)
|
ObjectName |
createCustomComponentMBeanName(String customName)
|
void |
deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
void |
deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
|
List<String> |
getClassPathElements()
Get a list of elements that comprise the class path for this component. |
String |
getComponentClassName()
Get the name of the class that implements the Componentinterface for this component. |
String |
getComponentDescription()
|
String |
getComponentName()
Get the unique name assigned to this component. |
javax.jbi.component.ComponentContext |
getContext()
Get the JBI context for this component. |
javax.jbi.messaging.DeliveryChannel |
getDeliveryChannel()
|
ComponentDesc |
getDescriptor()
|
javax.jbi.servicedesc.ServiceEndpoint |
getEndpoint(QName service,
String name)
|
Document |
getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpoints(QName interfaceName)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForService(QName serviceName)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpoints(QName interfaceName)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpointsForService(QName serviceName)
|
DocumentFragment |
getInstallationDescriptorExtension()
Return a DOM document fragment representing the installation descriptor (jbi.xml) extension data for the component, if any. |
String |
getInstallRoot()
Get the installation root directory full path name for this component. |
String |
getJmxDomainName()
|
Logger |
getLogger(String suffix,
String resourceBundleName)
|
javax.jbi.management.MBeanNames |
getMBeanNames()
|
MBeanServer |
getMBeanServer()
|
InitialContext |
getNamingContext()
|
String[] |
getSharedLibraries()
|
Object |
getTransactionManager()
|
String |
getWorkspaceRoot()
|
boolean |
isBinding()
|
boolean |
isEngine()
|
boolean |
isInstall()
Returns true if this context was created in order to install a component into the JBI environment. |
void |
registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
|
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(DocumentFragment epr)
|
void |
setClassPathElements(List classPathElements)
Set the list of elements that comprise the class path for this component. |
void |
setInstall(boolean install)
|
void |
setInstallRoot(File installRoot)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstallationContextImpl(ComponentDesc descriptor,
org.apache.servicemix.jbi.runtime.Environment environment)
| Method Detail |
|---|
public ComponentDesc getDescriptor()
public String[] getSharedLibraries()
public String getComponentClassName()
Componentinterface for this component. This must be the
component class name given in the component's installation descriptor.
getComponentClassName in interface javax.jbi.component.InstallationContextComponentimplementation class name, which must be non-null and non-empty.public List<String> getClassPathElements()
File.separator).
getClassPathElements in interface javax.jbi.component.InstallationContextpublic String getComponentName()
getComponentName in interface javax.jbi.component.ComponentContextgetComponentName in interface javax.jbi.component.InstallationContextpublic javax.jbi.component.ComponentContext getContext()
ComponentContext.getMBeanNames()ComponentContext.getMBeanServer()ComponentContext.getNamingContext()ComponentContext.getTransactionManager()IllegalStateException exception if invoked.
getContext in interface javax.jbi.component.InstallationContextpublic String getInstallRoot()
getInstallRoot in interface javax.jbi.component.ComponentContextgetInstallRoot in interface javax.jbi.component.InstallationContextpublic DocumentFragment getInstallationDescriptorExtension()
getInstallationDescriptorExtension in interface javax.jbi.component.InstallationContextnull if none is present in the descriptor.public boolean isInstall()
true if this context was created in order to install a component into the JBI environment.
Returns false if this context was created to uninstall a previously installed component.
This method is provided to allow Bootstrapimplementations to tailor their behaviour according to use
case. For example, the Bootstrap.init(InstallationContext)method implementation may create different
types of extension MBeans, depending on the use case specified by this method.
isInstall in interface javax.jbi.component.InstallationContexttrue if this context was created in order to install a component into the JBI environment;
otherwise the context was created to uninstall an existing component.public final void setClassPathElements(List classPathElements)
File.separator.
setClassPathElements in interface javax.jbi.component.InstallationContextclassPathElements - a list of String objects, each of which contains a class path elements; the list must be
non-null and contain at least one class path element.
IllegalArgumentException - if the class path elements is null, empty, or if an individual element is
ill-formed.
public javax.jbi.servicedesc.ServiceEndpoint activateEndpoint(QName serviceName,
String endpointName)
throws javax.jbi.JBIException
activateEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIException
public void deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
throws javax.jbi.JBIException
deactivateEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIException
public void registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws javax.jbi.JBIException
registerExternalEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIException
public void deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws javax.jbi.JBIException
deregisterExternalEndpoint in interface javax.jbi.component.ComponentContextjavax.jbi.JBIExceptionpublic javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(DocumentFragment epr)
resolveEndpointReference in interface javax.jbi.component.ComponentContext
public javax.jbi.messaging.DeliveryChannel getDeliveryChannel()
throws javax.jbi.messaging.MessagingException
getDeliveryChannel in interface javax.jbi.component.ComponentContextjavax.jbi.messaging.MessagingException
public javax.jbi.servicedesc.ServiceEndpoint getEndpoint(QName service,
String name)
getEndpoint in interface javax.jbi.component.ComponentContext
public Document getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
throws javax.jbi.JBIException
getEndpointDescriptor in interface javax.jbi.component.ComponentContextjavax.jbi.JBIExceptionpublic javax.jbi.servicedesc.ServiceEndpoint[] getEndpoints(QName interfaceName)
getEndpoints in interface javax.jbi.component.ComponentContextpublic javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(QName serviceName)
getEndpointsForService in interface javax.jbi.component.ComponentContextpublic javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpoints(QName interfaceName)
getExternalEndpoints in interface javax.jbi.component.ComponentContextpublic javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(QName serviceName)
getExternalEndpointsForService in interface javax.jbi.component.ComponentContext
public Logger getLogger(String suffix,
String resourceBundleName)
throws MissingResourceException,
javax.jbi.JBIException
getLogger in interface javax.jbi.component.ComponentContextMissingResourceException
javax.jbi.JBIExceptionpublic javax.jbi.management.MBeanNames getMBeanNames()
getMBeanNames in interface javax.jbi.component.ComponentContextpublic String getWorkspaceRoot()
getWorkspaceRoot in interface javax.jbi.component.ComponentContextpublic ObjectName createCustomComponentMBeanName(String customName)
createCustomComponentMBeanName in interface javax.jbi.management.MBeanNamespublic String getJmxDomainName()
getJmxDomainName in interface javax.jbi.management.MBeanNamespublic void setInstall(boolean install)
install - The install to set.public void setInstallRoot(File installRoot)
installRoot - The installRoot to set.public boolean isBinding()
public boolean isEngine()
public String getComponentDescription()
public MBeanServer getMBeanServer()
getMBeanServer in interface javax.jbi.component.ComponentContextpublic InitialContext getNamingContext()
getNamingContext in interface javax.jbi.component.ComponentContextpublic Object getTransactionManager()
getTransactionManager in interface javax.jbi.component.ComponentContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||