org.fossilec.odettej.transport
Class ClassloaderTransportFactory

java.lang.Object
  extended by org.fossilec.odettej.transport.TransportFactory
      extended by org.fossilec.odettej.transport.ClassloaderTransportFactory

public class ClassloaderTransportFactory
extends TransportFactory

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.

Author:
Rafael Marins
See Also:
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

ClassloaderTransportFactory

public ClassloaderTransportFactory(java.lang.String className)
Factory constructor with the target full qualified class name in the parameter, used to create Transport implementations.

Parameters:
className - fully qualified class name implementing the
Method Detail

createTransport

public Transport createTransport()
Create a Transport class instance using the path provided in the constructor. Return null in any of the following cases:

Specified by:
createTransport in class TransportFactory
Returns:
An object implementing the Transport interface.
See Also:
TransportFactory.createTransport()


Copyright © 2005 ObjectWeb Consortium. All Rights Reserved.