Java Doc for AbsDeployer.java in  » J2EE » ow2-easybeans » org » ow2 » easybeans » deployer » 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 » J2EE » ow2 easybeans » org.ow2.easybeans.deployer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ow2.easybeans.deployer.AbsDeployer

All known Subclasses:   org.ow2.easybeans.deployer.AbsWebContainerDeployer,  org.ow2.easybeans.deployer.JOnASDeployer,  org.ow2.easybeans.deployer.EasyBeansDeployer,
AbsDeployer
abstract public class AbsDeployer implements IDeployer(Code)
Abstract class that defines common methods for deployer.
author:
   Florent Benoit


Field Summary
final public static  StringDEFAULT_FOLDER
     Folder to create in tmp folder.


Method Summary
protected  voiddeployEJB(EJBDeployable ejbDeployable)
     Deploy an EJB (called by the deploy method).
protected  ClassLoadergetClassLoaderForEAR(EARDeployable earDeployable)
     Build and return a classloader for the given EAR.
public  EZBServergetEmbedded()
    
protected  List<IArchive>getLibArchives(EARDeployable earDeployable)
     Gets Archives of the libraries of this EAR.
Parameters:
  earDeployable - the given EAR deployable.
protected static  MethodgetMethod(Class clazz, String methodName, Class... parameters)
     Get the method on the given class with the given method name and the given parameters.
protected  PersistenceUnitManagergetPersistenceUnitManager(EARDeployable earDeployable, ClassLoader appClassLoader)
     Gets the persistence unit manager for the given EAR and classloader.
protected static  Objectinvoke(Method method, Object object, Object... args)
     Invoke the given method on the given object (null for static method) and with the given args.
public  booleanisDeployed(IDeployable deployable)
     Checks if the given deployable is deployed or not.
Parameters:
  deployable - test if a given deployable is already deployed.
protected static  ClassloadClass(String className)
     Load the given class with its given classname.
protected static  ClassloadClass(String className, ClassLoader classLoader)
     Load the given class with its given classname.
protected static  ObjectnewInstance(Class clazz)
     Build an instance of the given class.
protected static  ObjectnewInstance(Constructor constructor, Object... parameters)
     Build an instance by using the given constructor and given parameters.
public  voidsetEmbedded(EZBServer embedded)
     Receive Embedded instance for this deployer.
public  booleansupports(IDeployable deployable)
     Checks if the given deployable is supported by the Deployer.
protected  voidundeployEJB3FromEAR(EARDeployable earDeployable)
     Undeploy EJB3s of an EAR (called by the undeploy method).
protected  EARDeployableunpackEARDeployable(EARDeployable earDeployable)
     Unpack the given archive in a temp folder, then build a local EARDeployable and fill it with submodules and then return it.
Parameters:
  earDeployable - the archive to unpack.

Field Detail
DEFAULT_FOLDER
final public static String DEFAULT_FOLDER(Code)
Folder to create in tmp folder.





Method Detail
deployEJB
protected void deployEJB(EJBDeployable ejbDeployable) throws DeployerException(Code)
Deploy an EJB (called by the deploy method).
Parameters:
  ejbDeployable - a given EJB deployable
throws:
  DeployerException - if the deployment is not done.



getClassLoaderForEAR
protected ClassLoader getClassLoaderForEAR(EARDeployable earDeployable) throws DeployerException(Code)
Build and return a classloader for the given EAR.
Parameters:
  earDeployable - the given EAR a classloader
throws:
  DeployerException - if the classloader cannot be built



getEmbedded
public EZBServer getEmbedded()(Code)
the embedded instance used by this server.



getLibArchives
protected List<IArchive> getLibArchives(EARDeployable earDeployable)(Code)
Gets Archives of the libraries of this EAR.
Parameters:
  earDeployable - the given EAR deployable. list of archives



getMethod
protected static Method getMethod(Class clazz, String methodName, Class... parameters) throws DeployerException(Code)
Get the method on the given class with the given method name and the given parameters.
Parameters:
  clazz - the class on which search the method
Parameters:
  methodName - the name of the method to search
Parameters:
  parameters - the class parameters of the method that is searched the method found
throws:
  DeployerException - if the method is not found



getPersistenceUnitManager
protected PersistenceUnitManager getPersistenceUnitManager(EARDeployable earDeployable, ClassLoader appClassLoader)(Code)
Gets the persistence unit manager for the given EAR and classloader.
Parameters:
  earDeployable - the ear deployable
Parameters:
  appClassLoader - the classloader used as deployable the given persistence unit manager



invoke
protected static Object invoke(Method method, Object object, Object... args) throws DeployerException(Code)
Invoke the given method on the given object (null for static method) and with the given args.
Parameters:
  method - the method to invoke
Parameters:
  object - the object on which the method is invoked
Parameters:
  args - the arguments of the method the result of the invocation
throws:
  DeployerException - if the method is not invoked



isDeployed
public boolean isDeployed(IDeployable deployable) throws DeployerException(Code)
Checks if the given deployable is deployed or not.
Parameters:
  deployable - test if a given deployable is already deployed. true if it is deployed else false
throws:
  DeployerException - if the undeploy operation fails.



loadClass
protected static Class loadClass(String className) throws DeployerException(Code)
Load the given class with its given classname.
Parameters:
  className - the name of the class to load the class object
throws:
  DeployerException - if the class can't be loaded



loadClass
protected static Class loadClass(String className, ClassLoader classLoader) throws DeployerException(Code)
Load the given class with its given classname.
Parameters:
  className - the name of the class to load
Parameters:
  classLoader - the given classloader (or null to use thread context classloader) the class object
throws:
  DeployerException - if the class can't be loaded



newInstance
protected static Object newInstance(Class clazz) throws DeployerException(Code)
Build an instance of the given class.
Parameters:
  clazz - the class to instantiate a new object
throws:
  DeployerException - if the class can't be loaded



newInstance
protected static Object newInstance(Constructor constructor, Object... parameters) throws DeployerException(Code)
Build an instance by using the given constructor and given parameters.
Parameters:
  constructor - the constructor to use
Parameters:
  parameters - the parameters of the given constructor a new object
throws:
  DeployerException - if the class can't be loaded



setEmbedded
public void setEmbedded(EZBServer embedded)(Code)
Receive Embedded instance for this deployer.
Parameters:
  embedded - the given instance of the embedded server.



supports
public boolean supports(IDeployable deployable)(Code)
Checks if the given deployable is supported by the Deployer.
Parameters:
  deployable - the deployable to be checked true if it is supported, else false.



undeployEJB3FromEAR
protected void undeployEJB3FromEAR(EARDeployable earDeployable) throws DeployerException(Code)
Undeploy EJB3s of an EAR (called by the undeploy method).
Parameters:
  earDeployable - a given EAR deployable
throws:
  DeployerException - if the deployment is not done.



unpackEARDeployable
protected EARDeployable unpackEARDeployable(EARDeployable earDeployable) throws DeployerException(Code)
Unpack the given archive in a temp folder, then build a local EARDeployable and fill it with submodules and then return it.
Parameters:
  earDeployable - the archive to unpack. a new deployable (which is unpacked)
throws:
  DeployerException - if the EAR can't be unpacked



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.