toolbox.services.ftp
Class FTPServiceEnvironment

Package class diagram package FTPServiceEnvironment
java.lang.Object
  extended by toolbox.services.ftp.FTPServiceEnvironment
All Implemented Interfaces:
ServiceEnvironment

public class FTPServiceEnvironment
extends java.lang.Object
implements ServiceEnvironment

ServiceEnvironment implementation to provide access to a toolbox.ftp.FTPManager implementation.


Constructor Summary
FTPServiceEnvironment()
          Default constructor
 
Method Summary
 void create(java.lang.String name, java.lang.String config)
          Create and set the FTPManager for this environment.
 void destroy()
          Destroy this environment by destroying the member FTPManager.
 FTPManager getFTPManager()
          Return the member FTPManager.
 java.lang.String getName()
          Return the name of this environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPServiceEnvironment

public FTPServiceEnvironment()
Default constructor

Method Detail

create

public void create(java.lang.String name,
                   java.lang.String config)
            throws ServiceException
Create and set the FTPManager for this environment.

Specified by:
create in interface ServiceEnvironment
Parameters:
name - The name of the environment.
config - The location of the environment configuration.
Throws:
ServiceException - if the environment cannot be created.

getName

public java.lang.String getName()
Return the name of this environment.

Specified by:
getName in interface ServiceEnvironment
Returns:
String containing the name of this environment.

getFTPManager

public FTPManager getFTPManager()
Return the member FTPManager.

Returns:
FTPManger instances of this environment.

destroy

public void destroy()
             throws ServiceException
Destroy this environment by destroying the member FTPManager.

Specified by:
destroy in interface ServiceEnvironment
Throws:
ServiceException - if this environment cannot be destroyed.