Java Doc for DeploymentEngine.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » deployment » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Services AXIS2 » kernal » org.apache.axis2.deployment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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,
DeploymentEngine
abstract public class DeploymentEngine implements DeploymentConstants(Code)


Field Summary
protected  AxisConfigurationaxisConfig
    
protected  ConfigurationContextconfigContext
    
protected  booleanhotDeployment
    
protected  booleanhotUpdate
    
protected  ModuleDeployermoduleDeployer
    
protected  FilemodulesDir
    
protected  StringmodulesPath
    
protected  RepositoryListenerrepoListener
    
protected  Schedulerscheduler
    
protected  ServiceDeployerserviceDeployer
    
protected  FileservicesDir
    
protected  StringservicesPath
    
protected static  StringwebLocationString
    
protected  ListwsToDeploy
     Stores all the web Services to deploy.
protected  ListwsToUnDeploy
     Stores all the web Services to undeploy.


Method Summary
public static  voidaddNewModule(AxisModule modulemetadata, AxisConfiguration axisConfiguration)
    
public static  voidaddServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile, AxisConfiguration axisConfiguration)
    
public  voidaddWSToDeploy(DeploymentFileData file)
    
public  voidaddWSToUndeploy(WSInfo file)
    
public static  AxisModulebuildModule(File modulearchive, AxisConfiguration config)
     Builds an AxisModule for a given module archive file.
public static  AxisServicebuildService(InputStream serviceInputStream, ConfigurationContext configCtx)
     Fills an axisservice object using services.xml.
public static  AxisServiceGroupbuildServiceGroup(InputStream servicesxml, ClassLoader classLoader, String serviceGroupName, ConfigurationContext configCtx, ArchiveReader archiveReader, HashMap wsdlServices)
    
public  voidcleanup()
    
public  voiddoDeploy()
    
public  voidengageModules()
     Checks if the modules, referred by server.xml, exist or that they are deployed.
protected static  voidfillServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, AxisConfiguration axisConfig)
    
public  AxisConfigurationgetAxisConfig()
     Gets AxisConfiguration.
public static  StringgetAxisServiceName(String fileName)
     Retrieves service name from the archive file name.
public  DeployergetDeployerForExtension(String extension)
    
public  HashMapgetDirectoryToExtensionMappingMap()
    
protected  ArrayListgetFileList(URL fileListUrl)
    
public  AxisModulegetModule(String moduleName)
    
public  ModuleDeployergetModuleDeployer()
    
public  FilegetModulesDir()
    
public  RepositoryListenergetRepoListener()
    
public  FilegetRepositoryDir()
    
protected  StringgetRepositoryPath(File repository)
    
public  ServiceDeployergetServiceDeployer()
    
public  FilegetServicesDir()
    
public  StringgetWebLocationString()
    
public  booleanisHotUpdate()
    
protected  MessageReceiverloadDefaultMessageReceiver(String mepURL, AxisService service)
    
public  voidloadFromClassPath()
    
public  voidloadRepository(String repoDir)
    
public  voidloadRepositoryFromURL(URL repoURL)
    
public static  AxisServiceGrouploadServiceGroup(File serviceFile, ConfigurationContext configCtx)
    
public  voidloadServices()
    
public  voidloadServicesFromUrl(URL repoURL)
    
public  AxisConfigurationpopulateAxisConfiguration(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  ArrayListpopulateService(AxisServiceGroup serviceGroup, URL servicesURL, String serviceName)
    
protected  voidprepareRepository(String repositoryName)
    
protected  voidsetClassLoaders(String axis2repoURI)
    
public  voidsetConfigContext(ConfigurationContext configContext)
    
protected  voidsetDeploymentFeatures()
     Sets hotDeployment and hot update.
public  voidsetDirectoryToExtensionMappingMap(HashMap directoryToExtensionMappingMap)
    
public  voidsetExtensionToDeployerMappingMap(HashMap extensionToDeployerMappingMap)
    
public static  voidsetWebLocationString(String webLocationString)
    
protected  voidstartSearch(RepositoryListener listener)
     Starts the Deployment engine to perform Hot deployment and so on.
public  voidunDeploy()
    

Field Detail
axisConfig
protected AxisConfiguration axisConfig(Code)
to keep a ref to engine register this ref will pass to engine when it call start() method



configContext
protected ConfigurationContext configContext(Code)



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



moduleDeployer
protected ModuleDeployer moduleDeployer(Code)



modulesDir
protected File modulesDir(Code)



modulesPath
protected String modulesPath(Code)



repoListener
protected RepositoryListener repoListener(Code)



scheduler
protected Scheduler scheduler(Code)



serviceDeployer
protected ServiceDeployer serviceDeployer(Code)



servicesDir
protected File servicesDir(Code)



servicesPath
protected String servicesPath(Code)



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.





Method Detail
addNewModule
public static void addNewModule(AxisModule modulemetadata, AxisConfiguration axisConfiguration) throws AxisFault(Code)



addServiceGroup
public static void addServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, DeploymentFileData currentDeploymentFile, AxisConfiguration axisConfiguration) throws AxisFault(Code)



addWSToDeploy
public void addWSToDeploy(DeploymentFileData file)(Code)

Parameters:
  file - ArchiveFileData



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)



engageModules
public void engageModules() throws AxisFault(Code)
Checks if the modules, referred by server.xml, exist or that they are deployed.
throws:
  org.apache.axis2.AxisFault - : If smt goes wrong



fillServiceGroup
protected static void fillServiceGroup(AxisServiceGroup serviceGroup, ArrayList serviceList, URL serviceLocation, AxisConfiguration axisConfig) throws AxisFault(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.



getDeployerForExtension
public Deployer getDeployerForExtension(String extension)(Code)



getDirectoryToExtensionMappingMap
public HashMap getDirectoryToExtensionMappingMap()(Code)



getFileList
protected ArrayList getFileList(URL fileListUrl)(Code)



getModule
public AxisModule getModule(String moduleName) throws AxisFault(Code)



getModuleDeployer
public ModuleDeployer getModuleDeployer()(Code)



getModulesDir
public File getModulesDir()(Code)



getRepoListener
public RepositoryListener getRepoListener()(Code)



getRepositoryDir
public File getRepositoryDir()(Code)



getRepositoryPath
protected String getRepositoryPath(File repository)(Code)



getServiceDeployer
public ServiceDeployer getServiceDeployer()(Code)



getServicesDir
public File getServicesDir()(Code)



getWebLocationString
public String getWebLocationString()(Code)



isHotUpdate
public boolean isHotUpdate()(Code)



loadDefaultMessageReceiver
protected MessageReceiver loadDefaultMessageReceiver(String mepURL, AxisService service)(Code)



loadFromClassPath
public void loadFromClassPath() throws DeploymentException(Code)



loadRepository
public void loadRepository(String repoDir) throws DeploymentException(Code)



loadRepositoryFromURL
public void loadRepositoryFromURL(URL repoURL) throws DeploymentException(Code)



loadServiceGroup
public static AxisServiceGroup loadServiceGroup(File serviceFile, ConfigurationContext configCtx) throws AxisFault(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




populateService
protected ArrayList populateService(AxisServiceGroup serviceGroup, URL servicesURL, String serviceName) throws DeploymentException(Code)



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




setConfigContext
public void setConfigContext(ConfigurationContext configContext)(Code)



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)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.