|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.imolinfo.jbi4corba.jbi.endpoint.Jbi4CorbaEndpoint
it.imolinfo.jbi4corba.jbi.endpoint.ProviderEndpoint
public class ProviderEndpoint
The Provider Endpoint.
| Field Summary |
|---|
| Fields inherited from class it.imolinfo.jbi4corba.jbi.endpoint.Jbi4CorbaEndpoint |
|---|
RUNNING, SHUTDOWN, STOPPED |
| Constructor Summary | |
|---|---|
ProviderEndpoint(QName serviceName,
String endpointName,
ProviderServiceDescriptor serviceDescriptor)
Instantiates a new jbi4 ejb provider endpoint. |
|
| Method Summary | |
|---|---|
void |
activate()
Activate the endpoint. |
void |
deactivate()
Deactivate the endpoint. |
protected Object |
ejbLocalization(Class helperClass,
Method extractMethod,
Method narrowMethod,
Method typeMethod)
|
protected Document |
generateWsdl(org.apache.cxf.service.Service cxfService)
|
protected Object |
getCorbaObjectReference(Class helperClass,
Method narrowMethod,
Object retrievedObject)
This method is used to obtain a reference to the corba object. |
Object |
getCorbaObjectReference(String ior)
This Method return narrowed Corba Object starting from the IOR |
org.apache.cxf.endpoint.Endpoint |
getCXFEndpoint()
|
org.apache.cxf.service.Service |
getCXFService()
|
protected Method |
getExtractMethod(Class helperClass)
|
String |
getIorCorbaObject()
Return the Ior for the corba object |
protected Method |
getNarrowMethod(Class helperClass)
Gets the object that represent the method 'narrow' of the helper class. |
ORB |
getOrb()
Return the orb |
javax.jbi.messaging.MessageExchange.Role |
getRole()
This method returns the role of the component. |
ProviderServiceDescriptor |
getServiceDescriptor()
|
protected Method |
getTypeMethod(Class helperClass)
|
protected Object |
localizationViaCorbaloc()
This method is used to retrieve an object using corbaloc url. |
protected Object |
localizationViaCorbaname()
|
protected Object |
localizationViaIOR()
Localize the CORBA servant using the IOR. |
protected Object |
localizationViaNameService()
This method retrieves the corba object reference using the 'NameService'. |
void |
locateCorbaService()
|
protected String |
readIorFromFile(String filename)
|
void |
registerService()
Gets the service data from the WSDL and creates the CXF service. |
void |
setIorCorbaObject(String iorCorbaObject)
set the Ior for reference corba Object generate by statefull interface |
void |
setServiceDescriptor(ProviderServiceDescriptor serviceDescriptor)
|
void |
unregisterService()
Unregisters the service. |
void |
validate()
Validate the endpoint. |
| Methods inherited from class it.imolinfo.jbi4corba.jbi.endpoint.Jbi4CorbaEndpoint |
|---|
equals, getDefinition, getEndpointName, getEndpointStatus, getEndpointWSDL, getExchangeProcessor, getServiceDescription, getServiceEndpoint, getServiceName, getState, getSuManager, getSuName, getUniqueName, getUniqueName, hashCode, setDefinition, setEndpointStatus, setEndpointWSDL, setExchangeProcessor, setServiceDescription, setServiceEndpoint, setState, setSuManager, setSuName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProviderEndpoint(QName serviceName,
String endpointName,
ProviderServiceDescriptor serviceDescriptor)
throws Jbi4CorbaException
serviceName - the service nameendpointName - the endpoint name
Jbi4EjbException - if some problem occurs
Jbi4CorbaException| Method Detail |
|---|
public org.apache.cxf.service.Service getCXFService()
public org.apache.cxf.endpoint.Endpoint getCXFEndpoint()
public String getIorCorbaObject()
public void setIorCorbaObject(String iorCorbaObject)
public javax.jbi.messaging.MessageExchange.Role getRole()
getRole in class Jbi4CorbaEndpoint@org.apache.xbean.XBean
hide="true"
public void activate()
throws Jbi4CorbaException
Jbi4CorbaEndpoint
activate in class Jbi4CorbaEndpointException - The exception
Jbi4CorbaException
public void deactivate()
throws Jbi4CorbaException
deactivate in class Jbi4CorbaEndpointException - The exception
Jbi4CorbaException
public void registerService()
throws Jbi4CorbaDeployException
registerService in class Jbi4CorbaEndpointDeploymentException - The deployment exception
Jbi4CorbaDeployException
protected Document generateWsdl(org.apache.cxf.service.Service cxfService)
throws Jbi4CorbaDeployException
serviceCreator - The service creatorsd - The provider service descriptorinterfaceName - The interface name
DeploymentException - The deployment exception
Jbi4CorbaDeployExceptionpublic ProviderServiceDescriptor getServiceDescriptor()
public void setServiceDescriptor(ProviderServiceDescriptor serviceDescriptor)
serviceDescriptor - The serviceDescriptor to set.
public void locateCorbaService()
throws Jbi4CorbaException
Jbi4CorbaException - The Jbi4Corba exception
protected Object getCorbaObjectReference(Class helperClass,
Method narrowMethod,
Object retrievedObject)
throws Jbi4CorbaException
helperClass - The class that provides the method 'narrow'.narrowMethod - The method to invoke.retrievedObject - The object used as paramameter for the narrow.
Jbi4CorbaException - The Jbi4Corba exception
protected Object ejbLocalization(Class helperClass,
Method extractMethod,
Method narrowMethod,
Method typeMethod)
throws Jbi4CorbaException
helperClass - The helper classextractMethod - The extract methodnarrowMethod - The narrow methodtypeMethod - The type method
Jbi4CorbaException - The Jbi4Corba exception
protected Object localizationViaCorbaloc()
throws Jbi4CorbaException
Jbi4CorbaException - When the properties ORBInitRef and ORBDefaultInitRef are both
null or empty.http://java.sun.com/j2se/1.5.0/docs/guide/idl/INStutorial.html,
ProviderServiceDescriptor
protected Object localizationViaCorbaname()
throws Jbi4CorbaException
Jbi4CorbaException - The Jbi4Corba exception
public Object getCorbaObjectReference(String ior)
throws Jbi4CorbaException
String - ior
Jbi4CorbaException - The Jbi4Corba exception
protected Object localizationViaIOR()
throws Jbi4CorbaException
Jbi4CorbaException - The Jbi4Corba exception
protected String readIorFromFile(String filename)
throws Jbi4CorbaException
filename - The file name
Jbi4CorbaException - The Jbi4Corba Exception
protected Object localizationViaNameService()
throws Jbi4CorbaException
Jbi4CorbaException - The Jbi4Corba exception
protected Method getNarrowMethod(Class helperClass)
throws Jbi4CorbaException
helperClass - The helper class.
Jbi4CorbaException - The Jbi4Corba Exception
protected Method getExtractMethod(Class helperClass)
throws Jbi4CorbaException
helperClass - The helper class
Jbi4CorbaException - The Jbi4Corba exception
protected Method getTypeMethod(Class helperClass)
throws Jbi4CorbaException
helperClass - The helper class
Jbi4CorbaException - The Jbi4Corba exception
public void unregisterService()
throws Jbi4CorbaException
unregisterService in class Jbi4CorbaEndpointJbi4EjbException - if some problem occurs
Jbi4CorbaException - if something go wrongit.imolinfo.jbi4ejb.jbi.endpoint.Jbi4EjbEndpoint#unregisterService()
public void validate()
throws Jbi4CorbaException
validate in class Jbi4CorbaEndpointJbi4EjbException - if some problem occurs
Jbi4CorbaException - if something go wrongpublic ORB getOrb()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||