it.imolinfo.jbi4corba.webservice.runtime
Class ConsumerServiceCreator

java.lang.Object
  extended by it.imolinfo.jbi4corba.webservice.runtime.ConsumerServiceCreator

public class ConsumerServiceCreator
extends Object

This class is used to create the JBI service.


Field Summary
static String JBI4CORBA_OBJECT_ID
           
static String JBI4CORBA_PERSISENT_POA_NAME
           
 
Constructor Summary
ConsumerServiceCreator()
          Default constructor.
 
Method Summary
 void createJbiService(ConsumerServiceDescriptor consumerServiceDescriptor)
          This method is used to create the JBI service.
 void createJbiServicePRE(ConsumerServiceDescriptor consumerServiceDescriptor)
           
protected  Constructor getConstructorFromPoaTie(Class poaTieClass, Class[] classes)
          This method is used to create the default constructor of the Poa Tie Class.
protected  Constructor getConstructorWithConsumerInvocationHandler(Class clazz)
          This method is used to create the constructor where the input parameter is a ConsumerInvocationHandler.
protected  Object newObject(Constructor constructor, Object[] parameter)
          This method creates an Object.
protected  Servant newPoaTie(Constructor constructor, Object[] arguments)
          This method creates the Servant using the constructor passed in input.
 void registerAndActivateService(ConsumerServiceDescriptor consumerServiceDescriptor)
           
protected  void setOrbOnPoaTie(Servant poaTie, Class poaTieClass, ORB orb)
          This method is used to set up the ORB in the skeleton.
protected  void setTargetOnPoaTie(Servant poaTie, Class poaTieClass, Object poaDelegate)
          This method is used to set up the target class that the skeleton delegates all the corba operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JBI4CORBA_PERSISENT_POA_NAME

public static final String JBI4CORBA_PERSISENT_POA_NAME
See Also:
Constant Field Values

JBI4CORBA_OBJECT_ID

public static final String JBI4CORBA_OBJECT_ID
See Also:
Constant Field Values
Constructor Detail

ConsumerServiceCreator

public ConsumerServiceCreator()
Default constructor.

Method Detail

createJbiService

public void createJbiService(ConsumerServiceDescriptor consumerServiceDescriptor)
                      throws ServiceCreationException
This method is used to create the JBI service.

Parameters:
consumerServiceDescriptor - The consumer service descriptor
Throws:
ServiceCreationException - The service creation exception

setTargetOnPoaTie

protected void setTargetOnPoaTie(Servant poaTie,
                                 Class poaTieClass,
                                 Object poaDelegate)
                          throws ServiceCreationException
This method is used to set up the target class that the skeleton delegates all the corba operations.

Parameters:
poaTie - The instance of the skeleton.
poaTieClass - The class of the skeleton.
poaDelegate - The delegate class.
Throws:
ServiceCreationException - When the 'getMethod' or the 'invoke' via reflection cause an error.

setOrbOnPoaTie

protected void setOrbOnPoaTie(Servant poaTie,
                              Class poaTieClass,
                              ORB orb)
                       throws ServiceCreationException
This method is used to set up the ORB in the skeleton.

Parameters:
poaTie - The instance of the skeleton.
poaTieClass - The class of the skeleton.
orb - The ORB.
Throws:
ServiceCreationException - When the 'getMethod' or the 'invoke' via reflection cause an error.

getConstructorFromPoaTie

protected Constructor getConstructorFromPoaTie(Class poaTieClass,
                                               Class[] classes)
                                        throws ServiceCreationException
This method is used to create the default constructor of the Poa Tie Class.

Parameters:
poaTieClass - The skeleton.
Returns:
The default constructor of the skeleton.
Throws:
ServiceCreationException - When the 'getConstructor' via reflection causes an error.

getConstructorWithConsumerInvocationHandler

protected Constructor getConstructorWithConsumerInvocationHandler(Class clazz)
                                                           throws ServiceCreationException
This method is used to create the constructor where the input parameter is a ConsumerInvocationHandler.

Parameters:
clazz - The class that contains the constructor.
Returns:
The constructor.
Throws:
ServiceCreationException - When the 'getConstructor' via reflection causes an error.

newPoaTie

protected Servant newPoaTie(Constructor constructor,
                            Object[] arguments)
                     throws ServiceCreationException
This method creates the Servant using the constructor passed in input.

Parameters:
constructor - The default constructor of the skeleton.
Returns:
The Servant created.
Throws:
ServiceCreationException - When the 'new' via reflection causes an error.

newObject

protected Object newObject(Constructor constructor,
                           Object[] parameter)
                    throws ServiceCreationException
This method creates an Object.

Parameters:
constructor - A constructor of a class.
parameter - The parameter for the constructor.
Returns:
The Object created.
Throws:
ServiceCreationException - When the 'new' via reflection causes an error.

createJbiServicePRE

public void createJbiServicePRE(ConsumerServiceDescriptor consumerServiceDescriptor)
                         throws ServiceCreationException
Parameters:
consumerServiceDescriptor - The consumer service descriptor
Throws:
ServiceCreationException - The service creation exception

registerAndActivateService

public void registerAndActivateService(ConsumerServiceDescriptor consumerServiceDescriptor)
                                throws ServiceActivationException
Parameters:
consumerServiceDescriptor - The consumer service descriptor
Throws:
ServiceActivationException - The service activation exception


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.