FileDocCategorySizeDatePackage
JavaEEServiceEngine.javaAPI DocGlassfish v2 API6401Fri May 04 22:30:28 BST 2007com.sun.enterprise.jbi.serviceengine.core

JavaEEServiceEngine

public class JavaEEServiceEngine extends Object implements Component
Represents JSR 208 compliant service engine which provides beidge beteween SJS AS containers and JBI environment.
author
Manisha Umbarje

Fields Summary
JavaEEServiceEngineLifeCycle
lifeCycle
JavaEEServiceEngineSUManager
serviceUnitManager
Constructors Summary
public JavaEEServiceEngine()

    
      
    
Methods Summary
public ComponentLifeCyclegetLifeCycle()
Get the required life cycle control implementation for this component.

return
the life cycle control implementation for this component.

        if(lifeCycle == null)
            lifeCycle = new JavaEEServiceEngineLifeCycle();
        return lifeCycle;
    
public org.w3c.dom.DocumentgetServiceDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
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.

param
endpoint the endpoint to be described.
return
the description for the specified endpoint.

        
        //return bridge.getServiceDescription(endpoint);
        return null;
    
public ServiceUnitManagergetServiceUnitManager()
Get the Service Unit manager for this component. If this component does not support deployments, return null.

return
the Service Unit manager for this component, or null if there is none.

        if(serviceUnitManager == null) 
            serviceUnitManager = new JavaEEServiceEngineSUManager();
        return serviceUnitManager;
    
public booleanisExchangeWithConsumerOkay(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. The consumer is described by the given capabilities, and JBI has already ensured that a fit exists between the set of required capabilities of the provider and the available capabilities of the consumer, and vice versa. This matching consists of simple set matching based on capability names only.

Note that JBI assures matches on capability names only; it is the responsibility of this method to examine capability values to ensure a match with the consumer.

param
endpoint the endpoint to be used by the consumer
param
exchange the proposed message exchange to be performed
param
consumerCapabilities the consumer?s capabilities and requirements
return
true if this provider component can perform the the given exchange with the described consumer

        
        return true;
    
public booleanisExchangeWithProviderOkay(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. Ths provider is described by the given capabilities, and JBI has already ensure that a fit exists between the set of required capabilities of the consumer and the available capabilities of the provider, and vice versa. This matching consists of simple set matching based on capability names only.

Note that JBI assures matches on capability names only; it is the responsibility of this method to examine capability values to ensure a match with the provider.

param
exchange the proposed message exchange to be performed
param
providerCapabilities the provider's capabilities and requirements
return
true if this consurer component can interact with the described provider to perform the given exchange

        return true;
    
public javax.jbi.servicedesc.ServiceEndpointresolveEndpointReference(org.w3c.dom.DocumentFragment epr)

	return null;