| javax.jbi.component.Component
All known Subclasses: deploytest.BadInstallBindingComponent, com.sun.jbi.management.engine.ModelEngineComponent, com.sun.jbi.binding.file.FileBindingComponent, deploytest.BindingComponent, classloaderregresstests.sharedlibtest.binding.rt.SharedNamespaceTestBinding, com.sun.jbi.ui.cli.test.statistics.SimpleTestEngine, classloaderregresstests.classloaderchaintest.engine.rt.ClassloaderChainTestEngine, com.sun.jbi.internal.security.test.binding1.rt.LifeCycleImpl, com.sun.jbi.messaging.NMRComponent, classloaderregresstests.selffirstloading.engine.rt.EngineLifeCycle, com.sun.jbi.ui.cli.test.engine4.rt.Engine4Runtime, com.sun.jbi.ui.cli.test.engine1.rt.Engine1Runtime, com.sun.jbi.ui.ant.test.binding1.rt.Binding1Runtime, com.sun.jbi.binding.jms.JMSBindingComponent, java4ant.BindingComponent, com.sun.jbi.ui.ant.test.engine1.rt.Engine1Runtime, com.sun.jbi.ui.ant.test.engine2.rt.Engine2Runtime, com.sun.jbi.ui.cli.test.engine2.rt.Engine2Runtime, com.sun.jbi.ui.ant.test.engine3.rt.Engine3Runtime, deploytest.StartOneDeploymentComponent, deploytest.FileLockingComponent, testengine2.FooEngine, deploytest.DeployBinding, testcomponent1.BindingComponent1, com.sun.jbi.management.binding.ModelBindingComponent, com.sun.jbi.ui.ant.test.engine4.rt.Engine4Runtime, deploytest.ConsolidatedSchemaComponent, com.sun.jbi.ui.ant.test.binding2.rt.Binding2Runtime, com.sun.jbi.ui.ant.test.statistics.SimpleTestEngine, deploytest.BadUninstallBindingComponent, testengine.PBTestEngine, deploytest.UpgradableComponent, com.sun.jbi.ui.cli.test.engine3.rt.Engine3Runtime, deploytest.ExtensionBindingComponent, com.sun.jbi.ui.cli.test.binding2.rt.Binding2Runtime, com.sun.jbi.engine.xslt.TransformationEngineComponent, TestBinding.PBTestBinding, com.sun.jbi.messaging.Engine, com.sun.jbi.binding.proxy.ProxyBindingLifeCycle, com.sun.jbi.engine.sequencing.SequencingEngineComponent, testcomponent.BindingComponent, deploytest.DeployOnceBindingComponent, classloaderregresstests.sharedlibtest.engine.rt.SharedNamespaceTestEngine, testengine.FooEngine, classloaderregresstests.privatelibtest.engine.rt.PrivateNamespaceTestEngine, test.SimpleTestEngine, test.BindingComponent, com.sun.jbi.ui.cli.test.binding1.rt.Binding1Runtime, feederengine.CSVFeederEngineLifeCycle, testengine1.FooEngine,
Component | public interface Component (Code) | | This interface, implemented by component implementations, allows the JBI
implementation to query the component for various types of information. This
includes:
- The component's life cycle control interface.
- The component's service unit manager, for handling deployments.
- A method for querying service metadata describing services provided
by this component.
- "Policy" methods that are called by the JBI implementation to query if
proposed matches of this component to a provider (or consumer) are
acceptable, according to this component's policies.
- Endpoint reference (EPR) resolution. Some components will provide
the ability to resolve EPRs (typically binding components). This
ability to resolve EPRs is used by JBI to facilitate resolution
of EPRs received by service consumers.
The name of the class that implements this interface for a component is
specified in the installation descriptor for that component.
author: JSR208 Expert Group |
getLifeCycle | ComponentLifeCycle getLifeCycle()(Code) | | Get the life cycle control interface for this component. This interface
allows the JBI implementation to control the running state of this
component.
This method must be called before any other methods of this interface
are called. In addition, the JBI implementation must call the init()
method of the component life cycle returned by this method before
calling any other methods on this interface, or the component life cycle
interface.
the life cycle control interface for this component; must benon-null. |
getServiceDescription | Document getServiceDescription(ServiceEndpoint endpoint)(Code) | | Retrieves a DOM representation containing metadata which describes the
service provided by this component, through the given endpoint. The
result can use WSDL 1.1 or WSDL 2.0.
Parameters: endpoint - the service endpoint. the description for the specified service endpoint. |
getServiceUnitManager | ServiceUnitManager getServiceUnitManager()(Code) | | Get the Service Unit manager for this component. If this component does
not support deployments, it must return null .
the ServiceUnitManager for this component, ornull if there is none. |
isExchangeWithConsumerOkay | boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code) | | 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.
Parameters: endpoint - the endpoint to be used by the consumer; must benon-null. Parameters: exchange - the proposed message exchange to be performed; must benon-null. true if this provider component can perform thegiven exchange with the described consumer. |
isExchangeWithProviderOkay | boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange)(Code) | | 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 provider properly. The provider is described by the
given endpoint and the service description supplied by that endpoint.
Parameters: endpoint - the endpoint to be used by the provider; must benon-null. Parameters: exchange - the proposed message exchange to be performed; must benon-null. true if this consumer component can interact withthe described provider to perform the given exchange. |
resolveEndpointReference | ServiceEndpoint resolveEndpointReference(DocumentFragment epr)(Code) | | Resolve the given endpoint reference. This is called by JBI when it is
attempting to resolve the given EPR on behalf of a component.
If this component returns a non-null result, it must conform to the
following:
- This component implements the
ServiceEndpoint returned.
- The result must not be registered or activated with the JBI
implementation.
Dynamically resolved endpoints are distinct from static ones; they must
not be activated (see
ComponentContext.activateEndpoint(QNameString) ), nor registered (see
ComponentContext ) by components.
They can only be used to address message exchanges; the JBI
implementation must deliver such exchanges to the component that resolved
the endpoint reference (see
ComponentContext.resolveEndpointReference(DocumentFragment) ).
Parameters: epr - the endpoint reference, in some XML dialect understood bythe appropriate component (usually a binding); must be non-null. the service endpoint for the EPR; null if theEPR cannot be resolved by this component. |
|
|