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
TypeMethod
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.
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

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 argument should be a Vector of instances of concrete subclasses of EJBXmlBeanDefinition.

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.

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 argument should be a Vector of instances of EJBXmlWebLogicBeanDefinition.

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
toplinkDefs - A Vector of CMPBeanDefinition instances, one for each bean