org.jboss.metadata
Class ApplicationMetaData

java.lang.Object
  extended byorg.jboss.metadata.MetaData
      extended byorg.jboss.metadata.ApplicationMetaData
All Implemented Interfaces:
Cloneable, XmlLoadable

public class ApplicationMetaData
extends MetaData

The top level meta data from the jboss.xml and ejb-jar.xml descriptor.

Version:
$Revision: 1.29.2.3 $
Author:
Sebastien Alborini, Peter Antman, Scott Stark, Christian Riege

Field Summary
static int EJB_1x
           
static int EJB_2x
           
 
Fields inherited from class org.jboss.metadata.MetaData
log, TX_MANDATORY, TX_NEVER, TX_NOT_SUPPORTED, TX_REQUIRED, TX_REQUIRES_NEW, TX_SUPPORTS, TX_UNKNOWN
 
Constructor Summary
ApplicationMetaData()
           
ApplicationMetaData(URL u)
           
 
Method Summary
 void addPluginData(String pluginName, Object pluginData)
           
 BeanMetaData getBeanByEjbName(String ejbName)
          Get an EJB by its declared <ejb-name> tag
 ConfigurationMetaData getConfigurationMetaDataByName(String name)
           
 Iterator getConfigurations()
           
 boolean getEnforceEjbRestrictions()
           
 Iterator getEnterpriseBeans()
           
 InvokerProxyBindingMetaData getInvokerProxyBindingMetaDataByName(String name)
           
 Iterator getInvokerProxyBindings()
           
 String getJmxName()
           
 Object getPluginData(String pluginName)
           
 Iterator getRelationships()
          Get the container managed relations in this application.
 String getResourceByName(String name)
           
 String getSecurityDomain()
           
 String getUnauthenticatedPrincipal()
           
 URL getUrl()
           
 void importEjbJarXml(Element element)
          Import data provided by ejb-jar.xml
 void importJbossXml(Element element)
          Non-operation.
 boolean isEJB1x()
           
 boolean isEJB2x()
           
 void setUrl(URL u)
           
 
Methods inherited from class org.jboss.metadata.MetaData
clone, getChildrenByTagName, getElementAttribute, getElementContent, getElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EJB_1x

public static final int EJB_1x
See Also:
Constant Field Values

EJB_2x

public static final int EJB_2x
See Also:
Constant Field Values
Constructor Detail

ApplicationMetaData

public ApplicationMetaData(URL u)

ApplicationMetaData

public ApplicationMetaData()
Method Detail

getUrl

public URL getUrl()

setUrl

public void setUrl(URL u)

isEJB1x

public boolean isEJB1x()

isEJB2x

public boolean isEJB2x()

getEnterpriseBeans

public Iterator getEnterpriseBeans()

getBeanByEjbName

public BeanMetaData getBeanByEjbName(String ejbName)
Get an EJB by its declared <ejb-name> tag

Parameters:
ejbName - EJB to return
Returns:
BeanMetaData pertaining to the given ejb-name, null if none found

getRelationships

public Iterator getRelationships()
Get the container managed relations in this application. Items are instance of RelationMetaData.


getConfigurations

public Iterator getConfigurations()

getConfigurationMetaDataByName

public ConfigurationMetaData getConfigurationMetaDataByName(String name)

getInvokerProxyBindings

public Iterator getInvokerProxyBindings()

getInvokerProxyBindingMetaDataByName

public InvokerProxyBindingMetaData getInvokerProxyBindingMetaDataByName(String name)

getResourceByName

public String getResourceByName(String name)

addPluginData

public void addPluginData(String pluginName,
                          Object pluginData)

getPluginData

public Object getPluginData(String pluginName)

getJmxName

public String getJmxName()

getSecurityDomain

public String getSecurityDomain()

getUnauthenticatedPrincipal

public String getUnauthenticatedPrincipal()

getEnforceEjbRestrictions

public boolean getEnforceEjbRestrictions()

importEjbJarXml

public void importEjbJarXml(Element element)
                     throws org.jboss.deployment.DeploymentException
Import data provided by ejb-jar.xml

Overrides:
importEjbJarXml in class MetaData
Parameters:
element -
Throws:
org.jboss.deployment.DeploymentException - When there was an error encountered while parsing ejb-jar.xml

importJbossXml

public void importJbossXml(Element element)
                    throws org.jboss.deployment.DeploymentException
Description copied from class: MetaData
Non-operation.

Overrides:
importJbossXml in class MetaData
Parameters:
element -
Throws:
org.jboss.deployment.DeploymentException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.