AdapterFactoryBean Class Reference

Inheritance diagram for AdapterFactoryBean:
Collaboration diagram for AdapterFactoryBean:

List of all members.


Detailed Description

Author:
sschwieb

Public Methods

IOutputAdapter createOutputAdapter (String adapterClass, String dataObjectClassName, int experimentId, ComponentEntity component, int roleId, int bufferSize, boolean delete) throws AdapterLoadingFailedException
ISignalOutputAdapter createSignalOutputAdapter (String adapterClass, int roleId, int experimentId) throws AdapterLoadingFailedException
ISignalInputAdapter createSignalInputAdapter (String selectionId, ReaderComponentEntity component, String adapterClass) throws AdapterLoadingFailedException
IAccessAdapter createAccessAdapter (String adapterName, int experimentId, ComponentEntity component, int roleId, int numberOfThreads, int currentThread) throws AdapterLoadingFailedException

Public Static Methods

static< TextendsIOutputAdapter<?> T wrapProxy (IOutputAdapter<?> adapterImpl, Class<?>[] interfaces, ComponentEntity component, int bufferSize)

Public Static Fields

static final String NAME = "AdapterFactoryBean"

Method Details

IAccessAdapter createAccessAdapter ( String  adapterName,
int  experimentId,
ComponentEntity  component,
int  roleId,
int  numberOfThreads,
int  currentThread 
) throws AdapterLoadingFailedException

Returns an InputAdapter.

Parameters:
adapterName
annotationType
componentId
currentThread
numberOfThreads
idInChain
Returns:
the new InputAdapter
Exceptions:
AdapterLoadingFailedExceptionIf, for any reason, the Adapter could not be loaded

Implements AdapterFactory.

IOutputAdapter createOutputAdapter ( String  adapterName,
String  annotationType,
int  experimentId,
ComponentEntity  component,
int  roleId,
int  bufferSize,
boolean  delete 
) throws AdapterLoadingFailedException

Returns an OutputAdapter.

Parameters:
adapterName
annotationType
componentId
idInChain
Returns:
the new OutputAdapter
Exceptions:
AdapterLoadingFailedExceptionIf, for any reason, the Adapter could not be loaded

Implements AdapterFactory.

ISignalInputAdapter createSignalInputAdapter ( String  selectionId,
ReaderComponentEntity  component,
String  adapterClass 
) throws AdapterLoadingFailedException

Implements AdapterFactory.

ISignalOutputAdapter createSignalOutputAdapter ( String  adapterName,
int  roleId,
int  experimentId 
) throws AdapterLoadingFailedException

Returns an OutputAdapter.

Parameters:
adapterName
annotationType
componentId
idInChain
Returns:
the new OutputAdapter
Exceptions:
AdapterLoadingFailedExceptionIf, for any reason, the Adapter could not be loaded

Implements AdapterFactory.

static <TextendsIOutputAdapter<?> T wrapProxy ( IOutputAdapter<?>  adapterImpl,
Class<?>[]  interfaces,
ComponentEntity  component,
int  bufferSize 
) [static]

Todo: Should only be executed if the outputadapter supports caching (Check annotation?)

Parameters:
<T>
adapterImpl
interfaces
component
bufferSize
Returns:

Field Details

final String NAME = "AdapterFactoryBean" [static, inherited]