|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fossilec.odettej.transport.TransportFactory
org.fossilec.odettej.transport.ClassloaderTransportFactory
public class ClassloaderTransportFactory
Object Factory used to instantiate Transport
implementations
using a full qualified class name. The target implementation class MUST
provide a default constructor method.
The ClassloaderTransportFactory takes advantages in use reflections for object instantiation. A common Classloader is used from the current running Thread.
TransportFactory
Constructor Summary | |
---|---|
ClassloaderTransportFactory(java.lang.String className)
Factory constructor with the target full qualified class name in the parameter, used to create Transport implementations. |
Method Summary | |
---|---|
Transport |
createTransport()
Create a Transport class instance using the path provided
in the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassloaderTransportFactory(java.lang.String className)
Transport
implementations.
className
- fully qualified class name implementing theMethod Detail |
---|
public Transport createTransport()
Transport
class instance using the path provided
in the constructor. Return null
in any of the following
cases:
createTransport
in class TransportFactory
Transport
interface.TransportFactory.createTransport()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |