org.apache.axis2.deployment
Class RepositoryListener

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

public class RepositoryListener
extends Object
implements DeploymentConstants


Field Summary
 
Fields inherited from interface org.apache.axis2.deployment.DeploymentConstants
ATTRIBUTE_DEFAULT_VERSION, ATTRIBUTE_LOCKED, ATTRIBUTE_NAME, ATTRIBUTE_SCOPE, AXIS2_CONFIGURATION_RESOURCE, AXIS2_CONFIGURATION_XML, AXIS2_REPO, BOOLEAN_FALSE, BOOLEAN_TRUE, DIRECTORY_AXIS2_HOME, DIRECTORY_CONF, DIRECTORY_MODULES, DIRECTORY_SERVICES, META_INF, MODULE_PATH, MODULE_XML, POLICY_NS_URI, PROPERTY_TEMP_DIR, RESOURCE_MODULES, SCHEMA, SCHEMA_NAME_SPACE, 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_EXCLUDE_OPERATIONS, TAG_EXTRACT_SERVICE_ARCHIVE, TAG_FLOW_IN, TAG_FLOW_IN_FAULT, TAG_FLOW_OUT, TAG_FLOW_OUT_FAULT, TAG_HANDLER, 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_NAMESPACES, 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_SUPPORTED_POLICY_NAMESPACES, TAG_TRANSPORT, TAG_TRANSPORT_RECEIVER, TAG_TRANSPORT_SENDER, TAG_TRANSPORTS, TAG_TYPE, TARGET_NAME_SPACE, TYPE_MODULE, TYPE_SERVICE
 
Constructor Summary
RepositoryListener(DeploymentEngine deploymentEngine)
           
RepositoryListener(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
 

Constructor Detail

RepositoryListener

public RepositoryListener(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

RepositoryListener

public RepositoryListener(DeploymentEngine deploymentEngine)
Method Detail

checkModules

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


checkServices

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


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.


startListener

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


update

public void update()
Updates WSInfoList object.