Java Doc for IPlanetEjbc.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » ejb » 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 » Build » ANT » org.apache.tools.ant.taskdefs.optional.ejb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.taskdefs.optional.ejb.IPlanetEjbc

IPlanetEjbc
public class IPlanetEjbc (Code)
Compiles EJB stubs and skeletons for the iPlanet Application Server (iAS). The class will read a standard EJB descriptor (as well as an EJB descriptor specific to iPlanet Application Server) to identify one or more EJBs to process. It will search for EJB "source" classes (the remote ; * interface, home interface, and EJB implementation class) and the EJB stubs and skeletons in the specified destination directory. Only if the stubs and skeletons cannot be found or if they're out of date will the iPlanet Application Server ejbc utility be run.

Because this class (and it's assorted inner classes) may be bundled into the iPlanet Application Server distribution at some point (and removed from the Ant distribution), the class has been written to be independent of all Ant-specific classes. It is also for this reason (and to avoid cluttering the Apache Ant source files) that this utility has been packaged into a single source file.

For more information on Ant Tasks for iPlanet Application Server, see the IPlanetDeploymentTool and IPlanetEjbcTask classes.
See Also:   IPlanetDeploymentTool
See Also:   IPlanetEjbcTask


Inner Class :public class EjbcException extends Exception


Constructor Summary
public  IPlanetEjbc(File stdDescriptor, File iasDescriptor, File destDirectory, String classpath, SAXParser parser)
     Constructs an instance which may be used to process EJB descriptors and generate EJB stubs and skeletons, if needed.

Method Summary
protected  voidcheckConfiguration()
     Verifies that the user selections are valid.
public  voidexecute()
     Compiles the stub and skeletons for the specified EJBs, if they need to be updated.
public  String[]getCmpDescriptors()
     Returns the list of CMP descriptors referenced in the EJB descriptors.
public  StringgetDisplayName()
     Returns the display-name element read from the standard EJB descriptor.
public  HashtablegetEjbFiles()
     Returns a Hashtable which contains a list of EJB class files processed by the ejbc utility (both "source" class files as well as stubs and skeletons).
public static  voidmain(String[] args)
     Main application method for the iPlanet Application Server ejbc utility.
public  voidregisterDTD(String publicID, String location)
     Registers the location of a local DTD file or resource.
public  voidsetDebugOutput(boolean debugOutput)
     If true, enables debugging output when ejbc is executed.
public  voidsetIasHomeDir(File iasHomeDir)
     May be used to specify the "home" directory for this iAS installation.
public  voidsetRetainSource(boolean retainSource)
     If true, the Java source files which are generated by the ejbc process are retained.


Constructor Detail
IPlanetEjbc
public IPlanetEjbc(File stdDescriptor, File iasDescriptor, File destDirectory, String classpath, SAXParser parser)(Code)
Constructs an instance which may be used to process EJB descriptors and generate EJB stubs and skeletons, if needed.
Parameters:
  stdDescriptor - File referencing a standard EJB descriptor.
Parameters:
  iasDescriptor - File referencing an iAS-specific EJB descriptor.
Parameters:
  destDirectory - File referencing the base directory where bothEJB "source" files are found and where stubs andskeletons will be written.
Parameters:
  classpath - String representation of the classpath to be usedby the iAS ejbc utility.
Parameters:
  parser - SAXParser to be used to process both of the EJBdescriptors.




Method Detail
checkConfiguration
protected void checkConfiguration() throws EjbcException(Code)
Verifies that the user selections are valid.
throws:
  EjbcException - If the user selections are invalid.



execute
public void execute() throws EjbcException, IOException, SAXException(Code)
Compiles the stub and skeletons for the specified EJBs, if they need to be updated.
throws:
  EjbcException - If the ejbc utility cannot be correctly configuredor if one or more of the EJB "source" classescannot be found in the destination directory
throws:
  IOException - If the parser encounters a problem reading the XMLfile
throws:
  SAXException - If the parser encounters a problem processing theXML descriptor (it may wrap another exception)



getCmpDescriptors
public String[] getCmpDescriptors()(Code)
Returns the list of CMP descriptors referenced in the EJB descriptors. An array of CMP descriptors.



getDisplayName
public String getDisplayName()(Code)
Returns the display-name element read from the standard EJB descriptor. The EJB-JAR display name.



getEjbFiles
public Hashtable getEjbFiles()(Code)
Returns a Hashtable which contains a list of EJB class files processed by the ejbc utility (both "source" class files as well as stubs and skeletons). The key for the Hashtable is a String representing the path to the class file (relative to the destination directory). The value for the Hashtable is a File object which reference the actual class file. The list of EJB files processed by the ejbc utility.



main
public static void main(String[] args)(Code)
Main application method for the iPlanet Application Server ejbc utility. If the application is run with no commandline arguments, a usage statement is printed for the user.
Parameters:
  args - The commandline arguments passed to the application.



registerDTD
public void registerDTD(String publicID, String location)(Code)
Registers the location of a local DTD file or resource. By registering a local DTD, EJB descriptors can be parsed even when the remote servers which contain the "public" DTDs cannot be accessed.
Parameters:
  publicID - The public DTD identifier found in an XML document.
Parameters:
  location - The file or resource name for the appropriate DTD storedon the local machine.



setDebugOutput
public void setDebugOutput(boolean debugOutput)(Code)
If true, enables debugging output when ejbc is executed.
Parameters:
  debugOutput - A boolean indicating if debugging output should begenerated



setIasHomeDir
public void setIasHomeDir(File iasHomeDir)(Code)
May be used to specify the "home" directory for this iAS installation. The directory specified should typically be [install-location]/iplanet/ias6/ias.
Parameters:
  iasHomeDir - The home directory for the user's iAS installation.



setRetainSource
public void setRetainSource(boolean retainSource)(Code)
If true, the Java source files which are generated by the ejbc process are retained.
Parameters:
  retainSource - A boolean indicating if the Java source files forthe stubs and skeletons should be retained.



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)

w__w___w_.___j_a_v__a__2s__._c_o__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.