| java.lang.Object org.apache.axis2.deployment.DeploymentEngine
All known Subclasses: org.apache.axis2.deployment.URLBasedAxisConfigurator, org.apache.axis2.deployment.FileSystemConfigurator, org.apache.axis2.deployment.WarBasedAxisConfigurator,
Method Summary | |
public static void | addNewModule(AxisModule modulemetadata, AxisConfiguration axisConfiguration) | public static void | addServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile, AxisConfiguration axisConfiguration) | public void | addWSToDeploy(DeploymentFileData file) | public void | addWSToUndeploy(WSInfo file) | public static AxisModule | buildModule(File modulearchive, AxisConfiguration config) Builds an AxisModule for a given module archive file. | public static AxisService | buildService(InputStream serviceInputStream, ConfigurationContext configCtx) Fills an axisservice object using services.xml. | public static AxisServiceGroup | buildServiceGroup(InputStream servicesxml, ClassLoader classLoader, String serviceGroupName, ConfigurationContext configCtx, ArchiveReader archiveReader, HashMap wsdlServices) | public void | cleanup() | public void | doDeploy() | public void | engageModules() Checks if the modules, referred by server.xml, exist or that they are deployed. | protected static void | fillServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, AxisConfiguration axisConfig) | public AxisConfiguration | getAxisConfig() Gets AxisConfiguration. | public static String | getAxisServiceName(String fileName) Retrieves service name from the archive file name. | public Deployer | getDeployerForExtension(String extension) | public HashMap | getDirectoryToExtensionMappingMap() | protected ArrayList | getFileList(URL fileListUrl) | public AxisModule | getModule(String moduleName) | public ModuleDeployer | getModuleDeployer() | public File | getModulesDir() | public RepositoryListener | getRepoListener() | public File | getRepositoryDir() | protected String | getRepositoryPath(File repository) | public ServiceDeployer | getServiceDeployer() | public File | getServicesDir() | public String | getWebLocationString() | public boolean | isHotUpdate() | protected MessageReceiver | loadDefaultMessageReceiver(String mepURL, AxisService service) | public void | loadFromClassPath() | public void | loadRepository(String repoDir) | public void | loadRepositoryFromURL(URL repoURL) | public static AxisServiceGroup | loadServiceGroup(File serviceFile, ConfigurationContext configCtx) | public void | loadServices() | public void | loadServicesFromUrl(URL repoURL) | public AxisConfiguration | populateAxisConfiguration(InputStream in) To get AxisConfiguration for a given inputStream this method can be used.
The inputstream should be a valid axis2.xml , else you will be getting
DeploymentExceptions.
First creat a AxisConfiguration using given inputSream , and then it will
try to find the repository location parameter from AxisConfiguration, so
if user has add a parameter with the name "repository" , then the value
specified by that parameter will be the repository and system will try to
load modules and services from that repository location if it a valid
location. | protected ArrayList | populateService(AxisServiceGroup serviceGroup, URL servicesURL, String serviceName) | protected void | prepareRepository(String repositoryName) | protected void | setClassLoaders(String axis2repoURI) | public void | setConfigContext(ConfigurationContext configContext) | protected void | setDeploymentFeatures() Sets hotDeployment and hot update. | public void | setDirectoryToExtensionMappingMap(HashMap directoryToExtensionMappingMap) | public void | setExtensionToDeployerMappingMap(HashMap extensionToDeployerMappingMap) | public static void | setWebLocationString(String webLocationString) | protected void | startSearch(RepositoryListener listener) Starts the Deployment engine to perform Hot deployment and so on. | public void | unDeploy() |
axisConfig | protected AxisConfiguration axisConfig(Code) | | to keep a ref to engine register
this ref will pass to engine when it call start()
method
|
hotDeployment | protected boolean hotDeployment(Code) | | Support for hot deployment is controlled by this flag
|
hotUpdate | protected boolean hotUpdate(Code) | | Support for hot update is controlled by this flag
|
webLocationString | protected static String webLocationString(Code) | | |
wsToDeploy | protected List wsToDeploy(Code) | | Stores all the web Services to deploy.
|
wsToUnDeploy | protected List wsToUnDeploy(Code) | | Stores all the web Services to undeploy.
|
addWSToUndeploy | public void addWSToUndeploy(WSInfo file)(Code) | | Parameters: file - WSInfo |
buildModule | public static AxisModule buildModule(File modulearchive, AxisConfiguration config) throws DeploymentException(Code) | | Builds an AxisModule for a given module archive file. This does not
called the init method since there is no reference to configuration context
so who ever create module using this has to called module.init if it is
required
Parameters: modulearchive - : Actual module archive file Parameters: config - : AxisConfiguration : for get classloaders etc.. a complete AxisModule read from the file. throws: org.apache.axis2.deployment.DeploymentException - if there's a problem |
buildService | public static AxisService buildService(InputStream serviceInputStream, ConfigurationContext configCtx) throws DeploymentException(Code) | | Fills an axisservice object using services.xml. First creates
an axisservice object using WSDL and then fills it using the given services.xml.
Loads all the required class and builds the chains, finally adds the
servicecontext to EngineContext and axisservice into EngineConfiguration.
Parameters: serviceInputStream - InputStream containing configuration data Parameters: configCtx - the ConfigurationContext in which we're deploying Returns AxisService. throws: DeploymentException - if there's a problem |
buildServiceGroup | public static AxisServiceGroup buildServiceGroup(InputStream servicesxml, ClassLoader classLoader, String serviceGroupName, ConfigurationContext configCtx, ArchiveReader archiveReader, HashMap wsdlServices) throws AxisFault(Code) | | To build a AxisServiceGroup for a given services.xml
You have to add the created group into AxisConfig
Parameters: servicesxml - InputStream created from services.xml or equivalent Parameters: classLoader - ClassLoader to use Parameters: serviceGroupName - name of the service group Parameters: configCtx - the ConfigurationContext in which we're deploying Parameters: archiveReader - the ArchiveReader we're working with Parameters: wsdlServices - Map of existing WSDL services a fleshed-out AxisServiceGroup throws: AxisFault - if there's a problem |
cleanup | public void cleanup()(Code) | | Clean up the mess
|
doDeploy | public void doDeploy()(Code) | | |
getAxisConfig | public AxisConfiguration getAxisConfig()(Code) | | Gets AxisConfiguration.
AxisConfiguration AxisConfiguration |
getAxisServiceName | public static String getAxisServiceName(String fileName)(Code) | | Retrieves service name from the archive file name.
If the archive file name is service1.aar , then axis2 service name would be service1
Parameters: fileName - the archive file name Returns String. |
getDirectoryToExtensionMappingMap | public HashMap getDirectoryToExtensionMappingMap()(Code) | | |
getRepositoryDir | public File getRepositoryDir()(Code) | | |
getWebLocationString | public String getWebLocationString()(Code) | | |
isHotUpdate | public boolean isHotUpdate()(Code) | | |
loadServices | public void loadServices()(Code) | | |
loadServicesFromUrl | public void loadServicesFromUrl(URL repoURL)(Code) | | |
populateAxisConfiguration | public AxisConfiguration populateAxisConfiguration(InputStream in) throws DeploymentException(Code) | | To get AxisConfiguration for a given inputStream this method can be used.
The inputstream should be a valid axis2.xml , else you will be getting
DeploymentExceptions.
First creat a AxisConfiguration using given inputSream , and then it will
try to find the repository location parameter from AxisConfiguration, so
if user has add a parameter with the name "repository" , then the value
specified by that parameter will be the repository and system will try to
load modules and services from that repository location if it a valid
location. hot deployment and hot update will work as usual in this case.
You will be getting AxisConfiguration corresponding to given inputstream
if it is valid , if something goes wrong you will be getting
DeploymentException
Parameters: in - : InputStream to axis2.xml a populated AxisConfiguration throws: DeploymentException - : If something goes wrong |
prepareRepository | protected void prepareRepository(String repositoryName)(Code) | | Creates directories for modules/services, copies configuration xml from class loader if necessary
Parameters: repositoryName - the pathname of the repository |
setClassLoaders | protected void setClassLoaders(String axis2repoURI) throws DeploymentException(Code) | | To set the all the classLoader hierarchy this method can be used , the top most parent is
CCL then SCL(system Class Loader)
CCL
:
SCL
: :
MCCL SCCL
: :
MCL SCL
MCCL : module common class loader
SCCL : Service common class loader
MCL : module class loader
SCL : Service class loader
Parameters: axis2repoURI - : The repository folder of Axis2 throws: DeploymentException - if there's a problem |
setDeploymentFeatures | protected void setDeploymentFeatures()(Code) | | Sets hotDeployment and hot update.
|
setDirectoryToExtensionMappingMap | public void setDirectoryToExtensionMappingMap(HashMap directoryToExtensionMappingMap)(Code) | | |
setExtensionToDeployerMappingMap | public void setExtensionToDeployerMappingMap(HashMap extensionToDeployerMappingMap)(Code) | | |
setWebLocationString | public static void setWebLocationString(String webLocationString)(Code) | | |
startSearch | protected void startSearch(RepositoryListener listener)(Code) | | Starts the Deployment engine to perform Hot deployment and so on.
Parameters: listener - : RepositoryListener |
unDeploy | public void unDeploy()(Code) | | |
|
|