|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.desy.acop.transport.adapters.DefaultAdapterFactory
public class DefaultAdapterFactory
Default implementaion of the AdapterFactory.
Constructor Summary | |
---|---|
protected |
DefaultAdapterFactory()
|
Method Summary | |
---|---|
void |
clear()
Destroys all data source and clears all cache information. |
protected AcopTransportDataSource |
createAdapter(ConnectionParameters param)
|
AcopTransportDataSource |
createDataSource(ConnectionParameters param)
Returns data source for parameters and increases use count for that data source for 1. |
java.util.Map<java.lang.String,java.lang.Object> |
getCharacteristics(ConnectionParameters param)
Method returns the characteristics for specified parameters. |
AcopTransportDataSource |
getDataSource(ConnectionParameters param)
Returns adapter assotiated with the parameters, does not increase use count. |
boolean |
isUseCache()
Returns true if caching is enabled. |
void |
releaseDataSource(AcopTransportDataSource ds)
Decreases use count on data source. |
AcopTransportDataSource |
releaseDataSource(ConnectionParameters param)
Decreases use count on data source associated with parameters. |
void |
setUseCache(boolean useCache)
Enables/disables caching of adapters for multiple use. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DefaultAdapterFactory()
Method Detail |
---|
public AcopTransportDataSource createDataSource(ConnectionParameters param) throws ConnectionFailed
AdapterFactory
createDataSource
in interface AdapterFactory
param
- parameters for the data source
ConnectionFailed
public AcopTransportDataSource getDataSource(ConnectionParameters param) throws ConnectionFailed
AdapterFactory
getDataSource
in interface AdapterFactory
param
- parameters for the data source
ConnectionFailed
public void releaseDataSource(AcopTransportDataSource ds)
AdapterFactory
releaseDataSource
in interface AdapterFactory
ds
- data source to be destroyedpublic AcopTransportDataSource releaseDataSource(ConnectionParameters param)
AdapterFactory
releaseDataSource
in interface AdapterFactory
public void clear()
AdapterFactory
clear
in interface AdapterFactory
protected AcopTransportDataSource createAdapter(ConnectionParameters param) throws ConnectionFailed
ConnectionFailed
public boolean isUseCache()
setUseCache(boolean)
public void setUseCache(boolean useCache)
useCache
- public java.util.Map<java.lang.String,java.lang.Object> getCharacteristics(ConnectionParameters param) throws ConnectionFailed
AdapterFactory
getCharacteristics
in interface AdapterFactory
ConnectionFailed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |