<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">

Oracle Application Server TopLink API Reference
10g (9.0.4)

B10491-01

oracle.toplink.tools.ejb11
Class EJBXmlGenerator

java.lang.Object
  |
  +--oracle.toplink.tools.ejb11.EJBXmlGenerator

public class EJBXmlGenerator
extends java.lang.Object

Used to generate XML deployment descriptors from definition objects that have had their attributes set accordingly.

See Also:
DDDefinition, DDProjectDefinition

Constructor Summary
EJBXmlGenerator()
          EJBXmlGenerator constructor comment.

 

Method Summary
static void generateDDs(DDProjectDefinition ddProjDef, java.util.Vector ddDefs)
          Generate the XML deployment deployment files for the specified group of beans.
static void generateEJBFile(java.util.Vector beanDefs)
          Generate the ejb-jar.xml file for the group of beans that is passed in.
static void generateTopCmpFile(CMPBeanDefinition beanDef, java.lang.String fileName)
          Generate the toplink-cmp-*.xml file for the bean definition that is passed in. *** Note *** The specified filename must be the same as what is specified in the type-storage in the weblogic-ejb-jar.xml file.
static void generateWebLogicFile(java.util.Vector beanDefs)
          Generate the weblogic-ejb-jar.xml file for the group of beans that is passed in.
static void generateXMLFiles(java.util.Vector ejbDefs, java.util.Vector webLogicDefs, java.util.Vector topLinkDefs)
          Generate the three XML files for the specified group of beans.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

EJBXmlGenerator

public EJBXmlGenerator()
EJBXmlGenerator constructor comment.
Method Detail

generateDDs

public static void generateDDs(DDProjectDefinition ddProjDef,
                               java.util.Vector ddDefs)
                        throws java.io.IOException
Generate the XML deployment deployment files for the specified group of beans.
Parameters:
ddProjDef - Project attributes that are used for all of the beans
ddDefs - Vector of DDDefinition objects that each specify the attributes of an EJB
java.io.IOException

generateEJBFile

public static void generateEJBFile(java.util.Vector beanDefs)
                            throws java.io.IOException
Generate the ejb-jar.xml file for the group of beans that is passed in. The <beanDefs> argument should be a Vector of instances of concrete subclasses of EJBXmlBeanDefinition.
java.io.IOException

generateTopCmpFile

public static void generateTopCmpFile(CMPBeanDefinition beanDef,
                                      java.lang.String fileName)
                               throws java.io.IOException
Generate the toplink-cmp-*.xml file for the bean definition that is passed in. *** Note *** The specified filename must be the same as what is specified in the type-storage in the weblogic-ejb-jar.xml file.
java.io.IOException

generateWebLogicFile

public static void generateWebLogicFile(java.util.Vector beanDefs)
                                 throws java.io.IOException
Generate the weblogic-ejb-jar.xml file for the group of beans that is passed in. The <beanDefs> argument should be a Vector of instances of EJBXmlWebLogicBeanDefinition.
java.io.IOException

generateXMLFiles

public static void generateXMLFiles(java.util.Vector ejbDefs,
                                    java.util.Vector webLogicDefs,
                                    java.util.Vector topLinkDefs)
                             throws java.io.IOException
Generate the three XML files for the specified group of beans.
Parameters:
ejbDefs - A Vector of EJBXmlBeanDefinition instances, one for each bean
webLogicDefs - A Vector of EJBXmlWebLogicBeanDefinition instances, one for each bean
java.io.IOException

Copyright © 2003 Oracle Corporation. All Rights Reserved.