org.jboss.metadata
Class ApplicationMetaData

java.lang.Object
  extended by org.jboss.metadata.MetaData
      extended by org.jboss.metadata.OldMetaData<JBossMetaData>
          extended by org.jboss.metadata.ApplicationMetaData
All Implemented Interfaces:
Cloneable, XmlLoadable

Deprecated.

@Deprecated
public class ApplicationMetaData
extends OldMetaData<JBossMetaData>

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

Version:
$Revision: 44877 $
Author:
Sebastien Alborini, Peter Antman, Scott Stark, Christian Riege, Christoph G. Jung., Thomas Diesler., Adrian Brock

Field Summary
static int EJB_1x
          Deprecated. 
static int EJB_2x
          Deprecated. 
 
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(EjbJarMetaData delegate)
          Deprecated. Create a new ApplicationMetaData.
  ApplicationMetaData(JBossMetaData delegate)
          Deprecated. Create a new ApplicationMetaData.
protected ApplicationMetaData(org.jboss.metadata.spi.MetaData metaData)
          Deprecated. Create a new ApplicationMetaData.
 
Method Summary
 void addBeanMetaData(BeanMetaData metaData)
          Deprecated. Add bean metadata
 void addPluginData(String pluginName, Object pluginData)
          Deprecated. Add plugin data
 AssemblyDescriptorMetaData getAssemblyDescriptor()
          Deprecated. Get the assembly descriptor
 BeanMetaData getBeanByEjbName(String ejbName)
          Deprecated. Get an EJB by its declared <ejb-name> tag
 String getConfigFile()
          Deprecated. Get the config file
 String getConfigName()
          Deprecated. Get the config name
 ConfigurationMetaData getConfigurationMetaDataByName(String name)
          Deprecated. Get a configuration by name
 Iterator<ConfigurationMetaData> getConfigurations()
          Deprecated. Get the configurations
 boolean getEnforceEjbRestrictions()
          Deprecated. Get the enforce ejb restrictions
 Iterator<BeanMetaData> getEnterpriseBeans()
          Deprecated. Get the enterprise beans
 boolean getExceptionRollback()
          Deprecated. Whether to throw an exception on rollback
 InvokerProxyBindingMetaData getInvokerProxyBindingMetaDataByName(String name)
          Deprecated. Get an invoker proxy binding by name
 Iterator<InvokerProxyBindingMetaData> getInvokerProxyBindings()
          Deprecated. Get the invoker proxy bindings
 String getJaccContextID()
          Deprecated.  
 JBossMetaData getJBossMetaData()
          Deprecated.  
 String getJmxName()
          Deprecated. Get the jmx name
 MessageDestinationMetaData getMessageDestination(String name)
          Deprecated. Get a message destination
 Object getPluginData(String pluginName)
          Deprecated. Get plugin data
 Iterator<RelationMetaData> getRelationships()
          Deprecated. Get the container managed relations in this application.
 String getResourceByName(String name)
          Deprecated. Get a resource by name
 URLClassLoader getResourceCl()
          Deprecated. Get the ClassLoader to load additional resources
 String getSecurityDomain()
          Deprecated. Get the security domain
 String getUnauthenticatedPrincipal()
          Deprecated. Get the unathenticated principal
 URL getUrl()
          Deprecated. Get the url
 String getWebServiceContextRoot()
          Deprecated. Get the webservice context root
 Webservices getWebservices()
          Deprecated.  
 String getWsdlPublishLocationByName(String name)
          Deprecated. Get the wsdl publish location by name
 Map<String,String> getWsdlPublishLocations()
          Deprecated. Get the Wsdl Publish locations
 boolean isEJB1x()
          Deprecated. Whether this is ejb1.x
 boolean isEJB21()
          Deprecated. Whether this is ejb2.1
 boolean isEJB2x()
          Deprecated. Whether this is ejb2.x
 boolean isEJB3x()
          Deprecated. Whether this is ejb3.x
 boolean isExcludeMissingMethods()
          Deprecated. Get whether to exclude missing methods
 boolean isWebServiceDeployment()
          Deprecated. Get whether this is a webservice deployment
 void setConfigFile(String configFile)
          Deprecated. Set the config file
 void setConfigName(String configName)
          Deprecated. Set the config name
 void setResourceClassLoader(URLClassLoader resourceCl)
          Deprecated. Set the ClassLoader to load additional resources
 void setSecurityDomain(String securityDomain)
          Deprecated. Set the security domain for this web application
 void setUnauthenticatedPrincipal(String unauthenticatedPrincipal)
          Deprecated. Set the unathenticated principal
 void setUrl(URL u)
          Deprecated. Set the url
 void setWebServiceContextRoot(String webServiceContextRoot)
          Deprecated. Set the webservice context root
 void setWebServiceDeployment(boolean webServiceDeployment)
          Deprecated. Set whether this is a webservice deployment
 
Methods inherited from class org.jboss.metadata.OldMetaData
equals, getDelegate, getMetaData, hashCode, importEjbJarXml, importJbossXml, toString
 
Methods inherited from class org.jboss.metadata.MetaData
clone, getChildrenByTagName, getElementAttribute, getElementAttribute, getElementContent, getElementContent, getElementContent, getFirstElementContent, getFirstElementContent, getOptionalChild, getOptionalChild, getOptionalChildBooleanContent, getOptionalChildBooleanContent, getOptionalChildContent, getOptionalChildContent, getUniqueChild, getUniqueChildContent, importXml, jdk13Enabled
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EJB_1x

@Deprecated
public static final int EJB_1x
Deprecated. 
EJB1.x

See Also:
Constant Field Values

EJB_2x

@Deprecated
public static final int EJB_2x
Deprecated. 
EJB2.x

See Also:
Constant Field Values
Constructor Detail

ApplicationMetaData

public ApplicationMetaData(JBossMetaData delegate)
Deprecated. 
Create a new ApplicationMetaData.

Parameters:
delegate - the delegate
Throws:
IllegalArgumentException - for a null delegate

ApplicationMetaData

public ApplicationMetaData(EjbJarMetaData delegate)
Deprecated. 
Create a new ApplicationMetaData.

FOR TESTING PURPOSES ONLY

Parameters:
delegate - the delegate
Throws:
IllegalArgumentException - for a null delegate

ApplicationMetaData

protected ApplicationMetaData(org.jboss.metadata.spi.MetaData metaData)
Deprecated. 
Create a new ApplicationMetaData.

Parameters:
metaData - the delegate metadata
Throws:
IllegalArgumentException - for a null metaData
IllegalStateException - if the metadata doesn't have an JBossMetaData
Method Detail

getJBossMetaData

public JBossMetaData getJBossMetaData()
Deprecated. 

isEJB1x

public boolean isEJB1x()
Deprecated. 
Whether this is ejb1.x

Returns:
true when ejb1.x

isEJB2x

public boolean isEJB2x()
Deprecated. 
Whether this is ejb2.x

Returns:
true when ejb2.x

isEJB21

public boolean isEJB21()
Deprecated. 
Whether this is ejb2.1

Returns:
true when ejb2.1

isEJB3x

public boolean isEJB3x()
Deprecated. 
Whether this is ejb3.x

Returns:
true when ejb3.x

getEnterpriseBeans

public Iterator<BeanMetaData> getEnterpriseBeans()
Deprecated. 
Get the enterprise beans

Returns:
the enterprise beans

getBeanByEjbName

public BeanMetaData getBeanByEjbName(String ejbName)
Deprecated. 
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
Throws:
IllegalArgumentException - for a null name

getRelationships

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

Returns:
the relations

getAssemblyDescriptor

public AssemblyDescriptorMetaData getAssemblyDescriptor()
Deprecated. 
Get the assembly descriptor

Returns:
the assembly descriptor

getMessageDestination

public MessageDestinationMetaData getMessageDestination(String name)
Deprecated. 
Get a message destination

Parameters:
name - destination name
Returns:
the message destination

getConfigName

public String getConfigName()
Deprecated. 
Get the config name

Returns:
the config name

getConfigFile

public String getConfigFile()
Deprecated. 
Get the config file

Returns:
the config file

getWebservices

public Webservices getWebservices()
Deprecated. 

getWsdlPublishLocations

public Map<String,String> getWsdlPublishLocations()
Deprecated. 
Get the Wsdl Publish locations

Returns:
the locations

getWsdlPublishLocationByName

public String getWsdlPublishLocationByName(String name)
Deprecated. 
Get the wsdl publish location by name

Parameters:
name - the name
Returns:
the location

getWebServiceContextRoot

public String getWebServiceContextRoot()
Deprecated. 
Get the webservice context root

Returns:
the context root

getConfigurations

public Iterator<ConfigurationMetaData> getConfigurations()
Deprecated. 
Get the configurations

Returns:
the configurations

getConfigurationMetaDataByName

public ConfigurationMetaData getConfigurationMetaDataByName(String name)
Deprecated. 
Get a configuration by name

Parameters:
name - the configuration name
Returns:
the configuration or null if not found
Throws:
IllegalArgumentException - for a null name

getInvokerProxyBindings

public Iterator<InvokerProxyBindingMetaData> getInvokerProxyBindings()
Deprecated. 
Get the invoker proxy bindings

Returns:
the invoker proxy bindings

getInvokerProxyBindingMetaDataByName

public InvokerProxyBindingMetaData getInvokerProxyBindingMetaDataByName(String name)
Deprecated. 
Get an invoker proxy binding by name

Parameters:
name - the name
Returns:
the invoker proxy binding

getResourceByName

public String getResourceByName(String name)
Deprecated. 
Get a resource by name

Parameters:
name - the name
Returns:
the resource
Throws:
IllegalArgumentException - for a null name

getJmxName

public String getJmxName()
Deprecated. 
Get the jmx name

Returns:
the jmx name

getJaccContextID

public String getJaccContextID()
Deprecated. 

getSecurityDomain

public String getSecurityDomain()
Deprecated. 
Get the security domain

Returns:
the security domain

getUnauthenticatedPrincipal

public String getUnauthenticatedPrincipal()
Deprecated. 
Get the unathenticated principal

Returns:
the unauthenticated principal

isExcludeMissingMethods

public boolean isExcludeMissingMethods()
Deprecated. 
Get whether to exclude missing methods

Returns:
true when exclude missing methods

getExceptionRollback

public boolean getExceptionRollback()
Deprecated. 
Whether to throw an exception on rollback

Returns:
true when throwing an exception on rollback

getEnforceEjbRestrictions

public boolean getEnforceEjbRestrictions()
Deprecated. 
Get the enforce ejb restrictions

Returns:
whether to enforce ejb restrictions
Throws:
UnsupportedOperationException - always

addBeanMetaData

public void addBeanMetaData(BeanMetaData metaData)
Deprecated. 
Add bean metadata

Parameters:
metaData - the bean metadata
Throws:
UnsupportedOperationException - always

getResourceCl

public URLClassLoader getResourceCl()
Deprecated. 
Get the ClassLoader to load additional resources

Returns:
the classloader used to load resources
Throws:
UnsupportedOperationException - always

setResourceClassLoader

public void setResourceClassLoader(URLClassLoader resourceCl)
Deprecated. 
Set the ClassLoader to load additional resources

Parameters:
resourceCl - the resource classloader
Throws:
UnsupportedOperationException - always

getUrl

public URL getUrl()
Deprecated. 
Get the url

Returns:
the url
Throws:
UnsupportedOperationException - always

setUrl

public void setUrl(URL u)
Deprecated. 
Set the url

Parameters:
u - the url
Throws:
UnsupportedOperationException - always

setConfigFile

public void setConfigFile(String configFile)
Deprecated. 
Set the config file

Parameters:
configFile - the config file
Throws:
UnsupportedOperationException - always

setConfigName

public void setConfigName(String configName)
Deprecated. 
Set the config name

Parameters:
configName - the config name
Throws:
UnsupportedOperationException - always

addPluginData

public void addPluginData(String pluginName,
                          Object pluginData)
Deprecated. 
Add plugin data

Parameters:
pluginName - the plugin name
pluginData - the plugin data
Throws:
UnsupportedOperationException - always

getPluginData

public Object getPluginData(String pluginName)
Deprecated. 
Get plugin data

Parameters:
pluginName - the plugin name
Returns:
the plugin data
Throws:
UnsupportedOperationException - always

setSecurityDomain

public void setSecurityDomain(String securityDomain)
Deprecated. 
Set the security domain for this web application

Parameters:
securityDomain - the security domain
Throws:
UnsupportedOperationException - always

setUnauthenticatedPrincipal

public void setUnauthenticatedPrincipal(String unauthenticatedPrincipal)
Deprecated. 
Set the unathenticated principal

Parameters:
unauthenticatedPrincipal - the unathenticated principal
Throws:
UnsupportedOperationException - always

isWebServiceDeployment

public boolean isWebServiceDeployment()
Deprecated. 
Get whether this is a webservice deployment

Returns:
true when a webservice deployment

setWebServiceDeployment

public void setWebServiceDeployment(boolean webServiceDeployment)
Deprecated. 
Set whether this is a webservice deployment

Parameters:
webServiceDeployment - true when a webservice deployment
Throws:
UnsupportedOperationException - always

setWebServiceContextRoot

public void setWebServiceContextRoot(String webServiceContextRoot)
Deprecated. 
Set the webservice context root

Parameters:
webServiceContextRoot - the context root
Throws:
UnsupportedOperationException - always


Copyright © 2009 JBoss Inc.. All Rights Reserved.