Save This Page
Home » axis2-1.5-src » org.apache » axis2 » deployment » [javadoc | source]
org.apache.axis2.deployment
public class: RepositoryListener [javadoc | source]
java.lang.Object
   org.apache.axis2.deployment.RepositoryListener

All Implemented Interfaces:
    DeploymentConstants

Direct Known Subclasses:
    ScriptRepositoryListener

Field Summary
protected static final  Log log     
protected  DeploymentEngine deploymentEngine     
protected  WSInfoList wsInfoList    Reference to a WSInfoList 
Constructor:
 public RepositoryListener(DeploymentEngine deploymentEngine,
    boolean isClasspath) 
    This constructor takes two arguments, a folder name and a reference to Deployment Engine First, it initializes the system, by loading all the modules in the /modules directory and then creates a WSInfoList to store information about available modules and services.
    Parameters:
    deploymentEngine - reference to engine registry for updates
    isClasspath - true if this RepositoryListener should scan the classpath for Modules
Method from org.apache.axis2.deployment.RepositoryListener Summary:
addFileToDeploy,   checkModules,   checkServices,   findServicesInDirectory,   getLocation,   init,   init2,   isSourceControlDir,   loadClassPathModules,   startListener,   update,   updateRemote
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axis2.deployment.RepositoryListener Detail:
 public  void addFileToDeploy(File file,
    Deployer deployer,
    int type) 
 public  void checkModules() 
    Finds a list of modules in the folder and adds to wsInfoList.
 public  void checkServices() 
    Finds a list of services in the folder and adds to wsInfoList.
 protected  void findServicesInDirectory() 
    Searches a given folder for jar files and adds them to a list in the WSInfolist class.
 protected String getLocation() 
    To get the location of the Axis2.jar from that I can drive the location of class path
 public  void init() 
    First initializes the WSInfoList, then calls checkModule to load all the modules and calls update() to update the Deployment engine and engine registry.
 public  void init2(boolean isClasspath) 
 protected boolean isSourceControlDir(File file) 
 protected  void loadClassPathModules() 
 public  void startListener() 
    Method invoked from the scheduler to start the listener.
 public  void update() 
    Updates WSInfoList object.
 public  void updateRemote() throws Exception