| java.lang.Object com.sun.jbi.framework.AbstractComponent
All known Subclasses: TestBinding.Binding, restart.BaseComponent, com.sun.jbi.framework.BindingBadGetLifeCycle, testengine.Engine, com.sun.jbi.framework.Engine, com.sun.jbi.framework.EngineNullGetLifeCycle, com.sun.jbi.framework.EngineBadGetLifeCycle, com.sun.jbi.framework.Binding, extension.ExtensionComponent, engine1.StartEngine, com.sun.jbi.framework.BindingNullGetLifeCycle, binding1.StartBinding,
AbstractComponent | abstract public class AbstractComponent implements Component,ComponentLifeCycle,ServiceUnitManager(Code) | | This is an abstract class that all test components can inherit from. The
purpose for this class is to minimize the impact of SPI changes to the
test components. Dummy methods can be implemented here and only components
that need real working versions of those methods need to implement them.
author: Sun Microsystems, Inc. |
Method Summary | |
public String | deploy(String serviceUnitName, String serviceUnitRootPath) Deploy a Service Unit.
Parameters: serviceUnitName - the name of the Service Unit being deployed. Parameters: serviceUnitRootPath - the full path to the Service Unit artifactroot directory. | public javax.management.ObjectName | getExtensionMBeanName() Get the JMX ObjectName for any additional MBean for this BC. | public ComponentLifeCycle | getLifeCycle() Get the ComponentLifeCycle implementation instance for this Binding
Component. | public org.w3c.dom.Document | getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint ref) Resolve descriptor details for the specified reference, which is for a
service provided by this component.
Parameters: ref - the endpoint reference to be resolved. | public ServiceUnitManager | getServiceUnitManager() Get the ServiceUnitManager implementation instance for this Binding
Component. | public void | init(ComponentContext context) Initialize the Binding Component. | public void | init(String serviceUnitName, String serviceUnitRootPath) Initialize the deployment. | public boolean | isExchangeWithConsumerOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange) This method is called by JBI to check if this component, in the role of
provider of the service indicated by the given exchange, can actually
perform the operation desired. | public boolean | isExchangeWithProviderOkay(javax.jbi.servicedesc.ServiceEndpoint endpoint, javax.jbi.messaging.MessageExchange exchange) This method is called by JBI to check if this component, in the role of
consumer of the service indicated by the given exchange, can actually
interact with the the provider completely. | public javax.jbi.servicedesc.ServiceEndpoint | resolveEndpointReference(org.w3c.dom.DocumentFragment epr) Resolve the given endpoint reference, given the capabilities of the
given consumer. | public void | shutDown() Shut down the Binding Component. | public void | shutDown(String serviceUnitName) Shut down the deployment. | public void | start() Start the Binding Component. | public void | start(String serviceUnitName) Start the deployment. | public void | stop() Stop the Binding Component. | public void | stop(String serviceUnitName) Stop the deployment. | public String | undeploy(String serviceUnitName, String serviceUnitRootPath) Undeploy a Service Unit from the component.
Parameters: serviceUnitName - the name of the Service Unit being undeployed. Parameters: serviceUnitRootPath - the full path to the Service Unit artifactroot directory. |
mComponentName | protected String mComponentName(Code) | | Local copy of the component name.
|
mComponentType | protected String mComponentType(Code) | | Type of component, defaults to "Component", but can be set by extending
class to "Binding" or "Engine".
|
getExtensionMBeanName | public javax.management.ObjectName getExtensionMBeanName()(Code) | | Get the JMX ObjectName for any additional MBean for this BC. This
implementation always returns null.
javax.management.ObjectName is always null. |
getLifeCycle | public ComponentLifeCycle getLifeCycle()(Code) | | Get the ComponentLifeCycle implementation instance for this Binding
Component.
the life cycle implementation instance. |
getServiceDescription | public org.w3c.dom.Document getServiceDescription(javax.jbi.servicedesc.ServiceEndpoint ref)(Code) | | Resolve descriptor details for the specified reference, which is for a
service provided by this component.
Parameters: ref - the endpoint reference to be resolved. the description for the specified reference. |
getServiceUnitManager | public ServiceUnitManager getServiceUnitManager()(Code) | | Get the ServiceUnitManager implementation instance for this Binding
Component.
the Service Unit manager implementation instance. |
resolveEndpointReference | public javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)(Code) | | Resolve the given endpoint reference, given the capabilities of the
given consumer. This is called by JBI when it is attempting to resolve
the given endpoint reference on behalf of a component.
Parameters: epr - the endpoint reference, in some XML dialect understood by theappropriate component (usually a Binding Component). the service endpoint for the endpoint reference;null if the endpoint reference cannot be resolved. |
|
|