org.jboss.metadata
Class BeanMetaData

java.lang.Object
  extended by org.jboss.metadata.MetaData
      extended by org.jboss.metadata.OldMetaData<JBossEnterpriseBeanMetaData>
          extended by org.jboss.metadata.BeanMetaData
All Implemented Interfaces:
Cloneable, XmlLoadable
Direct Known Subclasses:
EntityMetaData, MessageDrivenMetaData, SessionMetaData

Deprecated.

@Deprecated
public abstract class BeanMetaData
extends OldMetaData<JBossEnterpriseBeanMetaData>

A common meta data class for the entity, message-driven and session beans.

Version:
$Revision: 45953 $
Author:
Sebastien Alborini, Peter Antman, Daniel OConnor, Scott Stark, Ole Husgaard, Bill Burke, Christian Riege, Thomas Diesler, Dimitris Andreadis, Adrian Brock

Field Summary
static char ENTITY_TYPE
          Deprecated. Entity type
static String LOCAL_INVOKER_PROXY_BINDING
          Deprecated. The local invoker proxy binding name
static char MDB_TYPE
          Deprecated. MDB type
static char SESSION_TYPE
          Deprecated. Session type
 
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
protected BeanMetaData(ApplicationMetaData app, JBossEnterpriseBeanMetaData delegate)
          Deprecated. Create a new BeanMetaData.
protected BeanMetaData(org.jboss.metadata.spi.MetaData metaData)
          Deprecated. Create a new BeanMetaData.
 
Method Summary
 void addExcludedMethod(MethodMetaData method)
          Deprecated. Add an excluded method
 void addPermissionMethod(MethodMetaData method)
          Deprecated. Add a permission method
 void addTransactionMethod(MethodMetaData method)
          Deprecated. Add a transaction method
static BeanMetaData create(ApplicationMetaData app, JBossEnterpriseBeanMetaData delegate)
          Deprecated. Create a new BeanMetaData.
 ApplicationMetaData getApplicationMetaData()
          Deprecated. Get the application metadata
abstract  ClusterConfigMetaData getClusterConfigMetaData()
          Deprecated. Get the cluster config
 String getConfigurationName()
          Deprecated. Get the configuration name
 ConfigurationMetaData getContainerConfiguration()
          Deprecated. Get the container configuration
 String getContainerObjectNameJndiName()
          Deprecated. Gets the container jndi name used in the object name
 String getDefaultConfigurationName()
          Deprecated. Get the default configuration name
 Collection<String> getDepends()
          Deprecated. Get all the dependencies
 String getEjbClass()
          Deprecated. Get the ejbClass.
 EjbLocalRefMetaData getEjbLocalRefByName(String name)
          Deprecated. Get an ejb local reference by name
 Iterator<EjbLocalRefMetaData> getEjbLocalReferences()
          Deprecated. Get the ejb local references
 String getEjbName()
          Deprecated. Get the ejb name
 EjbRefMetaData getEjbRefByName(String name)
          Deprecated. Get an ejb reference by name
 Iterator<EjbRefMetaData> getEjbReferences()
          Deprecated. Get the ejb references
abstract  SecurityIdentityMetaData getEjbTimeoutIdentity()
          Deprecated. Get the ejb timeout identity
 Iterator<EnvEntryMetaData> getEnvironmentEntries()
          Deprecated. Get the environment entries
 boolean getExceptionRollback()
          Deprecated. Get the exceptionRollback.
 Iterator<MethodMetaData> getExcludedMethods()
          Deprecated. Get the excluded methods
abstract  String getHome()
          Deprecated. Get the home class name
 String getInvokerBinding(String invokerName)
          Deprecated. Get an invoker binding
 Iterator<String> getInvokerBindings()
          Deprecated. Get the invoker bindings
 IorSecurityConfigMetaData getIorSecurityConfigMetaData()
          Deprecated. Get the IOR Security config metadata
abstract  String getJndiName()
          Deprecated. Get the jndi name
abstract  String getLocal()
          Deprecated. Get the local class name
abstract  String getLocalHome()
          Deprecated. Get the local home class name
 String getLocalJndiName()
          Deprecated. Gets the JNDI name under with the local home interface should be bound.
 Iterator<MessageDestinationRefMetaData> getMessageDestinationReferences()
          Deprecated. Get the message destination references
 Set<String> getMethodPermissions(String methodName, Class[] params, InvocationType iface)
          Deprecated. A somewhat tedious method that builds a Set of the roles that have been assigned permission to execute the indicated method.
 byte getMethodTransactionType(String methodName, Class[] params, InvocationType iface)
          Deprecated. Get the method transaction type
 Iterator<MethodMetaData> getPermissionMethods()
          Deprecated. Get the permission methods
 EjbPortComponentMetaData getPortComponent()
          Deprecated.  
abstract  String getRemote()
          Deprecated. Get the remote class name
 Iterator<ResourceEnvRefMetaData> getResourceEnvReferences()
          Deprecated. Get the resource environment references
 Iterator<ResourceRefMetaData> getResourceReferences()
          Deprecated. Get the resource references
 SecurityIdentityMetaData getSecurityIdentityMetaData()
          Deprecated. Get the security identity
 String getSecurityProxy()
          Deprecated. Get the security proxy
abstract  Iterator<SecurityRoleRefMetaData> getSecurityRoleReferences()
          Deprecated. Get the security role references
abstract  String getServiceEndpoint()
          Deprecated. Get the service endpoint
 Iterator<ServiceReferenceMetaData> getServiceReferences()
          Deprecated. Get the service references
 boolean getTimerPersistence()
          Deprecated. Get the timerPersistence.
 byte getTransactionMethod(Method m, InvocationType iface)
          Deprecated. Get the transaction type
 Iterator<MethodMetaData> getTransactionMethods()
          Deprecated. Get the transaction methods
 int getTransactionTimeout(Method method)
          Deprecated. Get the transaction timeout for the method
 int getTransactionTimeout(String methodName)
          Deprecated. Get the transaction timeout for the method
 boolean hasMethodPermission(String methodName, Class[] params, InvocationType iface)
          Deprecated. Check to see if there was a method-permission or exclude-list statement for the given method.
 boolean isBeanManagedTx()
          Deprecated. Is bean managed transaction
abstract  boolean isCallByValue()
          Deprecated. Get the callByValue.
abstract  boolean isClustered()
          Deprecated. Get whether it is clustered.
 boolean isContainerManagedTx()
          Deprecated. Get the container managed transactions
 boolean isEntity()
          Deprecated. Whether this is an entity bean
 boolean isExcludeMissingMethods()
          Deprecated. Get the excludeMissingMethods.
 boolean isMessageDriven()
          Deprecated. Whether this is a message driven bean
 boolean isMethodReadOnly(Method method)
          Deprecated. Is this method a read-only method described in jboss.xml?
 boolean isMethodReadOnly(String methodName)
          Deprecated. Is this method a read-only method described in jboss.xml?
 boolean isSession()
          Deprecated. Whether this is a session bean
 
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

SESSION_TYPE

public static final char SESSION_TYPE
Deprecated. 
Session type

See Also:
Constant Field Values

ENTITY_TYPE

public static final char ENTITY_TYPE
Deprecated. 
Entity type

See Also:
Constant Field Values

MDB_TYPE

public static final char MDB_TYPE
Deprecated. 
MDB type

See Also:
Constant Field Values

LOCAL_INVOKER_PROXY_BINDING

public static final String LOCAL_INVOKER_PROXY_BINDING
Deprecated. 
The local invoker proxy binding name

See Also:
Constant Field Values
Constructor Detail

BeanMetaData

protected BeanMetaData(ApplicationMetaData app,
                       JBossEnterpriseBeanMetaData delegate)
Deprecated. 
Create a new BeanMetaData.

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

BeanMetaData

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

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

create

public static BeanMetaData create(ApplicationMetaData app,
                                  JBossEnterpriseBeanMetaData delegate)
Deprecated. 
Create a new BeanMetaData.

Parameters:
delegate - the delegate
Returns:
the metadata
Throws:
IllegalArgumentException - for a null delegate or an unknown delegate

isSession

public boolean isSession()
Deprecated. 
Whether this is a session bean

Returns:
true when a session bean

isMessageDriven

public boolean isMessageDriven()
Deprecated. 
Whether this is a message driven bean

Returns:
true when a message driven bean

isEntity

public boolean isEntity()
Deprecated. 
Whether this is an entity bean

Returns:
true when an entity bean

getEjbName

public String getEjbName()
Deprecated. 
Get the ejb name

Returns:
the ejb name

getHome

public abstract String getHome()
Deprecated. 
Get the home class name

Returns:
the home class name

getRemote

public abstract String getRemote()
Deprecated. 
Get the remote class name

Returns:
the remote class name

getLocalHome

public abstract String getLocalHome()
Deprecated. 
Get the local home class name

Returns:
the local home class name

getLocal

public abstract String getLocal()
Deprecated. 
Get the local class name

Returns:
the local class name

getServiceEndpoint

public abstract String getServiceEndpoint()
Deprecated. 
Get the service endpoint

Returns:
the service endpoint

getEjbClass

public String getEjbClass()
Deprecated. 
Get the ejbClass.

Returns:
the ejbClass.

isContainerManagedTx

public boolean isContainerManagedTx()
Deprecated. 
Get the container managed transactions

Returns:
the container managed transactions

isBeanManagedTx

public boolean isBeanManagedTx()
Deprecated. 
Is bean managed transaction

Returns:
true for BMT

getEjbReferences

public Iterator<EjbRefMetaData> getEjbReferences()
Deprecated. 
Get the ejb references

Returns:
the ejb references

getEjbLocalReferences

public Iterator<EjbLocalRefMetaData> getEjbLocalReferences()
Deprecated. 
Get the ejb local references

Returns:
the local references

getEjbRefByName

public EjbRefMetaData getEjbRefByName(String name)
Deprecated. 
Get an ejb reference by name

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

getEjbLocalRefByName

public EjbLocalRefMetaData getEjbLocalRefByName(String name)
Deprecated. 
Get an ejb local reference by name

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

getEnvironmentEntries

public Iterator<EnvEntryMetaData> getEnvironmentEntries()
Deprecated. 
Get the environment entries

Returns:
the environment entries

getSecurityRoleReferences

public abstract Iterator<SecurityRoleRefMetaData> getSecurityRoleReferences()
Deprecated. 
Get the security role references

Returns:
the security role references

getResourceReferences

public Iterator<ResourceRefMetaData> getResourceReferences()
Deprecated. 
Get the resource references

Returns:
the resource references

getResourceEnvReferences

public Iterator<ResourceEnvRefMetaData> getResourceEnvReferences()
Deprecated. 
Get the resource environment references

Returns:
the resource environment references

getMessageDestinationReferences

public Iterator<MessageDestinationRefMetaData> getMessageDestinationReferences()
Deprecated. 
Get the message destination references

Returns:
the message destination references

getServiceReferences

public Iterator<ServiceReferenceMetaData> getServiceReferences()
Deprecated. 
Get the service references

Returns:
the service references

getSecurityIdentityMetaData

public SecurityIdentityMetaData getSecurityIdentityMetaData()
Deprecated. 
Get the security identity

Returns:
the security identity or null if none is specified

getTransactionMethods

public Iterator<MethodMetaData> getTransactionMethods()
Deprecated. 
Get the transaction methods

Returns:
the transaction methods

getMethodTransactionType

public byte getMethodTransactionType(String methodName,
                                     Class[] params,
                                     InvocationType iface)
Deprecated. 
Get the method transaction type

Parameters:
methodName - the method name
params - the parameters
iface - the interface type
Returns:
the method transaction type

getTransactionMethod

public byte getTransactionMethod(Method m,
                                 InvocationType iface)
Deprecated. 
Get the transaction type

Parameters:
m - the method
iface - the interface type
Returns:
the transaction type

getPermissionMethods

public Iterator<MethodMetaData> getPermissionMethods()
Deprecated. 
Get the permission methods

Returns:
the permission methods

getPortComponent

public EjbPortComponentMetaData getPortComponent()
Deprecated. 

getExcludedMethods

public Iterator<MethodMetaData> getExcludedMethods()
Deprecated. 
Get the excluded methods

Returns:
the excluded methods

getMethodPermissions

public Set<String> getMethodPermissions(String methodName,
                                        Class[] params,
                                        InvocationType iface)
Deprecated. 
A somewhat tedious method that builds a Set of the roles that have been assigned permission to execute the indicated method. The work performed is tedious because of the wildcard style of declaring method permission allowed in the ejb-jar.xml descriptor. This method is called by the Container.getMethodPermissions() when it fails to find the prebuilt set of method roles in its cache.

Parameters:
methodName - the method name
params - the parameters
iface - the interface
Returns:
The Set for the application domain roles that caller principal's are to be validated against.

hasMethodPermission

public boolean hasMethodPermission(String methodName,
                                   Class[] params,
                                   InvocationType iface)
Deprecated. 
Check to see if there was a method-permission or exclude-list statement for the given method.

Parameters:
methodName - - the method name
params - - the method parameter signature
iface - - the method interface type
Returns:
true if a matching method permission exists, false if no match

isExcludeMissingMethods

public boolean isExcludeMissingMethods()
Deprecated. 
Get the excludeMissingMethods.

Returns:
the excludeMissingMethods.

getApplicationMetaData

public ApplicationMetaData getApplicationMetaData()
Deprecated. 
Get the application metadata

Returns:
the application metadata

getInvokerBindings

public Iterator<String> getInvokerBindings()
Deprecated. 
Get the invoker bindings

Returns:
an iterator of invoker proxy binding names

getInvokerBinding

public String getInvokerBinding(String invokerName)
Deprecated. 
Get an invoker binding

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

getJndiName

public abstract String getJndiName()
Deprecated. 
Get the jndi name

Returns:
the jndi name

getLocalJndiName

public String getLocalJndiName()
Deprecated. 
Gets the JNDI name under with the local home interface should be bound. The default is local/<ejbName>

Returns:
the local jndi name

getContainerObjectNameJndiName

public String getContainerObjectNameJndiName()
Deprecated. 
Gets the container jndi name used in the object name

Returns:
the jndi name suitable for use as the jndi name

getConfigurationName

public String getConfigurationName()
Deprecated. 
Get the configuration name

Returns:
the configuration name

getContainerConfiguration

public ConfigurationMetaData getContainerConfiguration()
Deprecated. 
Get the container configuration

Returns:
the configuration
Throws:
IllegalStateException - when the configuration could not be determined

getSecurityProxy

public String getSecurityProxy()
Deprecated. 
Get the security proxy

Returns:
the security proxy

getEjbTimeoutIdentity

public abstract SecurityIdentityMetaData getEjbTimeoutIdentity()
Deprecated. 
Get the ejb timeout identity

Returns:
the ejb timeout identity

getDefaultConfigurationName

public String getDefaultConfigurationName()
Deprecated. 
Get the default configuration name

Returns:
the default configuration name

getDepends

public Collection<String> getDepends()
Deprecated. 
Get all the dependencies

Returns:
all the dependencies

isMethodReadOnly

public boolean isMethodReadOnly(String methodName)
Deprecated. 
Is this method a read-only method described in jboss.xml?

Parameters:
methodName - the method name
Returns:
true for read only

isMethodReadOnly

public boolean isMethodReadOnly(Method method)
Deprecated. 
Is this method a read-only method described in jboss.xml?

Parameters:
method - the method
Returns:
true for read only

getTransactionTimeout

public int getTransactionTimeout(String methodName)
Deprecated. 
Get the transaction timeout for the method

Parameters:
methodName - the method name
Returns:
the transaction timeout

getTransactionTimeout

public int getTransactionTimeout(Method method)
Deprecated. 
Get the transaction timeout for the method

Parameters:
method - the method
Returns:
the transaction timeout

isClustered

public abstract boolean isClustered()
Deprecated. 
Get whether it is clustered.

Returns:
true if clustered.

isCallByValue

public abstract boolean isCallByValue()
Deprecated. 
Get the callByValue.

Returns:
the callByValue.

getClusterConfigMetaData

public abstract ClusterConfigMetaData getClusterConfigMetaData()
Deprecated. 
Get the cluster config

Returns:
the cluster config

getIorSecurityConfigMetaData

public IorSecurityConfigMetaData getIorSecurityConfigMetaData()
Deprecated. 
Get the IOR Security config metadata

Returns:
the metadata

getExceptionRollback

public boolean getExceptionRollback()
Deprecated. 
Get the exceptionRollback.

Returns:
the exceptionRollback.

getTimerPersistence

public boolean getTimerPersistence()
Deprecated. 
Get the timerPersistence.

Returns:
the timerPersistence.

addPermissionMethod

public void addPermissionMethod(MethodMetaData method)
Deprecated. 
Add a permission method

Parameters:
method - the method
Throws:
UnsupportedOperationException - always

addExcludedMethod

public void addExcludedMethod(MethodMetaData method)
Deprecated. 
Add an excluded method

Parameters:
method - the method
Throws:
UnsupportedOperationException - always

addTransactionMethod

public void addTransactionMethod(MethodMetaData method)
Deprecated. 
Add a transaction method

Parameters:
method - the method
Throws:
UnsupportedOperationException - always


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.