Public Member Functions | Static Public Member Functions | Package Functions

alma.acs.component.dynwrapper.DynamicProxyFactory Class Reference

List of all members.

Public Member Functions

Object createServerProxy (Class<?> corbaIF, Object componentImpl, Class<?> componentIF) throws DynWrapperException

Static Public Member Functions

static DynamicProxyFactory getDynamicProxyFactory (Logger logger)

Package Functions

public< T, F > T createClientProxy (Class< T > componentInterface, F corbaStub, Class< F > corbaOperationsIF) throws DynWrapperException

Detailed Description

Author:
hsommer Nov 22, 2002 4:48:25 PM $Id$

Member Function Documentation

public<T, F> T alma.acs.component.dynwrapper.DynamicProxyFactory.createClientProxy ( Class< T componentInterface,
corbaStub,
Class< F >  corbaOperationsIF 
) throws DynWrapperException [package]

Creates a proxy object for a corba stub for a component. The proxy object will delegate calls to the corba stub, and will translate parameters as necessary.

Parameters:
componentInterface the component interface
corbaStub (should be a Corba object, but this is currently not enforced)
Returns:
Object
Exceptions:
DynWrapperException 
Object alma.acs.component.dynwrapper.DynamicProxyFactory.createServerProxy ( Class<?>  corbaIF,
Object  componentImpl,
Class<?>  componentIF 
) throws DynWrapperException

Creates a proxy object for a component implementation. The proxy object will delegate calls to the component, and will translate parameters as necessary.

Parameters:
corbaIF the IDL-generated xxOperations interface.
componentImpl the component implementation class that implements componentIF. This may be identical with corbaIF, or could be some other similar interface, e.g. one that uses XML binding classes.
componentIF the interface of the component to which calls will be delegated.
Returns:
the proxy object that implements corbaIF and delegates to componentImpl.
Exceptions:
DynWrapperException 
static DynamicProxyFactory alma.acs.component.dynwrapper.DynamicProxyFactory.getDynamicProxyFactory ( Logger  logger  )  [static]

Singleton accessor. The logger must be provided because this class is used both inside the container as well as outside in tests and applications that are clients to container/components. The latter cases might not want to use central ACS logging.

Parameters:
logger 
Returns:
DynamicProxyFactory

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties