org.jcoderz.commons.connector.file
Class FsConnectionFactoryImpl

java.lang.Object
  extended by org.jcoderz.commons.connector.file.FsConnectionFactoryImpl
All Implemented Interfaces:
Serializable, Referenceable, FsConnectionFactory

public class FsConnectionFactoryImpl
extends Object
implements FsConnectionFactory

Implements the FsConnectionFactory interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jcoderz.commons.connector.file.FsConnectionFactory
FILE_TRANSFER_CHUNK_SIZE_DEF_VALUE, PROP_FILE_TRANSFER_CHUNK_SIZE, PROP_TEMP_DIR
 
Constructor Summary
FsConnectionFactoryImpl(ConnectionManager cm, ManagedConnectionFactoryBase mcf, Properties props)
          Constructs a new FsConnectionFactoryImpl.
 
Method Summary
 FsConnection getConnection()
          Returns a connection to the File System.
 FsConnection getConnection(Properties props)
          Returns a connection to the File System.
 ConnectionManager getConnectionManager()
           
 Reference getReference()
          
 void setReference(Reference reference)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FsConnectionFactoryImpl

public FsConnectionFactoryImpl(ConnectionManager cm,
                               ManagedConnectionFactoryBase mcf,
                               Properties props)
Constructs a new FsConnectionFactoryImpl.

Parameters:
cm - The ConnectionManager to use.
mcf - The underlying ManagedConnectionFactory.
props - The properties to use. These properties come from the deployment descriptor if ones defined; otherwise these the default properties.
Method Detail

getConnection

public FsConnection getConnection()
                           throws ResourceException
Returns a connection to the File System.

Specified by:
getConnection in interface FsConnectionFactory
Returns:
a connection to the File System.
Throws:
ResourceException - Failed to get a connection.

getConnection

public FsConnection getConnection(Properties props)
                           throws ResourceException
Returns a connection to the File System.

Specified by:
getConnection in interface FsConnectionFactory
Parameters:
props - The properties to use.
Returns:
a connection to the File System.
Throws:
ResourceException - Failed to get a connection.

setReference

public void setReference(Reference reference)


getReference

public Reference getReference()
                       throws NamingException

Specified by:
getReference in interface Referenceable
Throws:
NamingException

getConnectionManager

public ConnectionManager getConnectionManager()
Returns:
ConnectionManager.


Copyright 2007 The jCoderZ Project.