org.apache.axis2.deployment.listener
Class RepositoryListenerImpl

java.lang.Object
  extended byorg.apache.axis2.deployment.listener.RepositoryListenerImpl
All Implemented Interfaces:
DeploymentConstants, RepositoryListener

public class RepositoryListenerImpl
extends Object
implements RepositoryListener, DeploymentConstants


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
ATTRIBUTE_DEFAULT_VERSION, ATTRIBUTE_LOCKED, ATTRIBUTE_NAME, ATTRIBUTE_SCOPE, AXIS2_CONFIGURATION_RESOURCE, AXIS2_CONFIGURATION_XML, BOOLEAN_FALSE, BOOLEAN_TRUE, DIRECTORY_AXIS2_HOME, DIRECTORY_MODULES, DIRECTORY_SERVICES, META_INF, MODULE_PATH, MODULE_XML, POLICY_NS_URI, PROPERTY_TEMP_DIR, RESOURCE_MODULES, SEPARATOR_COLON, SEPARATOR_DOT, SERVICE_PATH, SERVICES_XML, SUFFIX_JAR, SUFFIX_MAR, SUFFIX_WSDL, TAG_AFTER, TAG_BEFORE, TAG_CLASS_NAME, TAG_DEFAULT_MODULE_VERSION, TAG_DESCRIPTION, TAG_DISPATCH_ORDER, TAG_DISPATCHER, TAG_EXTRACT_SERVICE_ARCHIVE, TAG_FLOW_IN, TAG_FLOW_IN_FAULT, TAG_FLOW_OUT, TAG_FLOW_OUT_FAULT, TAG_HANDLER, TAG_HOST_CONFIG, TAG_HOT_DEPLOYMENT, TAG_HOT_UPDATE, TAG_LABEL, TAG_LISTENER, TAG_MEP, TAG_MESSAGE, TAG_MESSAGE_RECEIVER, TAG_MESSAGE_RECEIVERS, TAG_MODULE, TAG_MODULE_CONFIG, TAG_OPERATION, TAG_ORDER, TAG_PARAMETER, TAG_PHASE, TAG_PHASE_FIRST, TAG_PHASE_LAST, TAG_PHASE_ORDER, TAG_POLICY, TAG_POLICY_REF, TAG_REFERENCE, TAG_SERVICE, TAG_SERVICE_GROUP, TAG_TRANSPORT_RECEIVER, TAG_TRANSPORT_SENDER, TAG_TYPE, TYPE_MODULE, TYPE_SERVICE
 
Constructor Summary
RepositoryListenerImpl(String folderName, DeploymentEngine deploymentEngine)
          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.
 
Method Summary
 void checkModules()
          Finds a list of modules in the folder and adds to wsInfoList.
 void checkServices()
          Finds a list of services in the folder and adds to wsInfoList.
 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.
 void startListener()
          Method invoked from the scheduler to start the listener.
 void update()
          Updates WSInfoList object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
Constructor Detail

RepositoryListenerImpl

public RepositoryListenerImpl(String folderName,
                              DeploymentEngine deploymentEngine)
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:
folderName - path to parent directory that the listener should listen to
deploymentEngine - reference to engine registry for updates
Method Detail

checkModules

public void checkModules()
Finds a list of modules in the folder and adds to wsInfoList.

Specified by:
checkModules in interface RepositoryListener

checkServices

public void checkServices()
Finds a list of services in the folder and adds to wsInfoList.

Specified by:
checkServices in interface RepositoryListener

init

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.

Specified by:
init in interface RepositoryListener

startListener

public void startListener()
Method invoked from the scheduler to start the listener.


update

public void update()
Updates WSInfoList object.

Specified by:
update in interface RepositoryListener