org.jboss.metadata.ejb.jboss
Class JBossEnterpriseBeanMetaData

java.lang.Object
  extended by org.jboss.metadata.javaee.support.IdMetaDataImpl
      extended by org.jboss.metadata.javaee.support.NamedMetaData
          extended by org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
              extended by org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData
All Implemented Interfaces:
Serializable, Cloneable, IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>, Environment, RemoteEnvironment, IdMetaData, MappableMetaData
Direct Known Subclasses:
JBossConsumerBeanMetaData, JBossEntityBeanMetaData, JBossGenericBeanMetaData, JBossMessageDrivenBeanMetaData, JBossSessionBeanMetaData

public abstract class JBossEnterpriseBeanMetaData
extends NamedMetaDataWithDescriptionGroup
implements Environment, IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

enterprise-bean/{session,entity,message-driven} metadata

Version:
$Revision: 84989 $
Author:
Adrian Brock, Scott.Stark@jboss.org
See Also:
Serialized Form

Constructor Summary
JBossEnterpriseBeanMetaData()
          Create a new EnterpriseBeanMetaData.
 
Method Summary
 void checkValid()
           
 DefaultJndiBindingPolicy createPolicy(ClassLoader loader, Class<? extends DefaultJndiBindingPolicy> defaultPolicyClass)
          Create the DefaultJndiBindingPolicy from the bean metadata.
 Set<String> determineAllDepends()
          Get the depends.
 String determineConfigurationName()
          Determine the configuration name
 ContainerConfigurationMetaData determineContainerConfiguration()
          Get the container configuration
 String determineContainerName()
          Get the kernel name for the ejb container.
 InvokerBindingMetaData determineInvokerBinding(String invokerName)
          Determine an invoker binding
 InvokerBindingsMetaData determineInvokerBindings()
          Determine the invokers
abstract  String determineJndiName()
          Deprecated. Handled by Decorators, JBMETA-68
 String determineLocalJndiName()
          Deprecated. JBMETA-68
 String determineResolvedJndiName(String iface)
          Deprecated. JBMETA-68
 String determineResolvedJndiName(String iface, DefaultJndiBindingPolicy defaultPolicy)
          Deprecated. JBMETA-68
 AnnotatedEJBReferencesMetaData getAnnotatedEjbReferences()
          Get the ejbReferences.
 AnnotationsMetaData getAnnotations()
          Get the annotations.
 String getAopDomainName()
          Get the aopDomainName.
protected  JBossAssemblyDescriptorMetaData getAssemblyDescriptor()
          Get the assembly descriptor
 String getConfigurationName()
          Get the configurationName.
 String getContainerName()
          Get the kernel name for the ejb container.
 String getContainerObjectNameJndiName()
          Determine the container jndi name used in the object name.
 ContainerTransactionsMetaData getContainerTransactions()
          Get the container transactions
abstract  String getDefaultConfigurationName()
          Get the default configuration name
protected  String getDefaultInvokerJndiName()
          Determine the jndi name for invoker bindings that come from the container configuration
protected abstract  String getDefaultInvokerName()
          Get the default invokers
protected  InvokerBindingsMetaData getDefaultInvokers()
          Get the default invokers
 Set<String> getDepends()
          Get the depends.
 String getEjbClass()
           
 JBossMetaData getEjbJarMetaData()
           
 EJBLocalReferenceMetaData getEjbLocalReferenceByName(String name)
          Get by name
 EJBLocalReferencesMetaData getEjbLocalReferences()
          Get the ejbLocalReferences.
 String getEjbName()
          Get the ejbName.
 EJBReferenceMetaData getEjbReferenceByName(String name)
          Get by name
 EJBReferencesMetaData getEjbReferences()
          Get the ejbReferences.
 JBossEnterpriseBeansMetaData getEnterpriseBeansMetaData()
          Get the enterpriseBeansMetaData.
 EnvironmentEntriesMetaData getEnvironmentEntries()
          Get the environmentEntries.
 EnvironmentEntryMetaData getEnvironmentEntryByName(String name)
          Get by name
 ExcludeListMetaData getExcludeList()
          Get the exclude list
 String getGeneratedContainerName()
          Get the generated kernel name for the ejb container.
 IgnoreDependencyMetaData getIgnoreDependency()
          Get the ignoreDependency.
 InvokerBindingsMetaData getInvokerBindings()
          Get the invokers.
 IORSecurityConfigMetaData getIorSecurityConfig()
          Get the iorSecurityConfig.
 JBossMetaData getJBossMetaData()
          Get the jbossMetaData.
 JBossMetaData getJBossMetaDataWithCheck()
          Get the jbossMetaData.
 String getJndiBindingPolicy()
           
 Environment getJndiEnvironmentRefsGroup()
          Get the jndiEnvironmentRefsGroup.
 JndiRefsMetaData getJndiRefs()
          Get the jndiRefs.
 String getLocalJndiName()
          Get the localJndiName.
 String getMappedName()
           
 MessageDestinationReferenceMetaData getMessageDestinationReferenceByName(String name)
          Get by name
 MessageDestinationReferencesMetaData getMessageDestinationReferences()
          Get the messageDestinationReferences.
 MethodAttributesMetaData getMethodAttributes()
          Get the methodAttributes.
 MethodPermissionsMetaData getMethodPermissions()
          Get the methods permissions
 Set<String> getMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType)
          A somewhat tedious method that builds a Set of the roles that have been assigned permission to execute the indicated method.
 int getMethodTransactionTimeout(Method method)
          Get the transaction timeout for the method
 int getMethodTransactionTimeout(String methodName)
          Get the transaction timeout for the method
 javax.ejb.TransactionAttributeType getMethodTransactionType(Method m, MethodInterfaceType iface)
          Get the transaction type
 javax.ejb.TransactionAttributeType getMethodTransactionType(String methodName, Class<?>[] params, MethodInterfaceType iface)
          Get the method transaction type
 PersistenceContextReferenceMetaData getPersistenceContextReferenceByName(String name)
          Get by name
 PersistenceContextReferencesMetaData getPersistenceContextRefs()
          Get the persistenceContextRefs.
 PersistenceUnitReferenceMetaData getPersistenceUnitReferenceByName(String name)
          Get by name
 PersistenceUnitReferencesMetaData getPersistenceUnitRefs()
          Get the persistenceUnitRefs.
 PoolConfigMetaData getPoolConfig()
           
 LifecycleCallbacksMetaData getPostConstructs()
          Get the postConstructs.
 LifecycleCallbacksMetaData getPreDestroys()
          Get the preDestroys.
 ResourceEnvironmentReferenceMetaData getResourceEnvironmentReferenceByName(String name)
          Get by name
 ResourceEnvironmentReferencesMetaData getResourceEnvironmentReferences()
          Get the resourceEnvironmentReferences.
 ResourceReferenceMetaData getResourceReferenceByName(String name)
          Get by name
 ResourceReferencesMetaData getResourceReferences()
          Get the resourceReferences.
 String getSecurityDomain()
          Get the securityDomain.
 SecurityIdentityMetaData getSecurityIdentity()
          Get the securityIdentity.
 String getSecurityProxy()
          Get the securityProxy.
 SecurityRoleMetaData getSecurityRole(String roleName)
          Get a security role
 Set<String> getSecurityRolePrincipals(String roleName)
          Get a security role's principals
 SecurityRoleRefsMetaData getSecurityRoleRefs()
          Provies a common accessor that returns an empty security role refs.
 Map<String,Set<String>> getSecurityRolesPrincipalVersusRolesMap()
          Get the Principal versus roles map stored in the security roles
 ServiceReferenceMetaData getServiceReferenceByName(String name)
          Get by name
 ServiceReferencesMetaData getServiceReferences()
          Get the service references
 javax.ejb.TransactionManagementType getTransactionType()
           
 boolean hasMethodPermissions(String methodName, Class<?>[] params, MethodInterfaceType interfaceType)
          Check to see if there was a method-permission or exclude-list statement for the given method.
 boolean isBMT()
          Is this bean managed transactions
 boolean isCMT()
          Is this container managed transactions
 boolean isConsumer()
          Whether this is a consumer bean
 boolean isEntity()
          Whether this is an entity bean
 boolean isExceptionOnRollback()
          Get the exceptionOnRollback.
 boolean isGeneric()
           
 boolean isMessageDriven()
          Whether this is a message driven bean
 boolean isMethodReadOnly(Method method)
          Is this method a read-only method
 boolean isMethodReadOnly(String methodName)
          Is this method a read-only method
 boolean isService()
          Whether this is a service bean
 boolean isSession()
          Whether this is a session bean
 boolean isTimerPersistence()
          Get the timerPersistence.
 void merge(JBossEnterpriseBeanMetaData override, EnterpriseBeanMetaData original)
           
 void merge(JBossEnterpriseBeanMetaData override, EnterpriseBeanMetaData original, String overrideFile, String overridenFile, boolean mustOverride)
           
 void merge(JBossEnterpriseBeanMetaData override, JBossEnterpriseBeanMetaData original)
           
protected  void merge(JBossGenericBeanMetaData generic)
           
 void merge(NamedMetaData override, NamedMetaData original)
          Merge override + original into this
 JBossEnterpriseBeanMetaData newBean()
           
static JBossEnterpriseBeanMetaData newBean(EnterpriseBeanMetaData bean)
          Create the correct JBossEnterpriseBeanMetaData for the input standard bean metadata.
 void setAnnotations(AnnotationsMetaData annotations)
          Set the annotations.
 void setAopDomainName(String aopDomainName)
          Set the aopDomainName.
 void setConfigurationName(String configurationName)
          Set the configurationName.
 void setContainerName(String containerName)
           
 void setDepends(Set<String> depends)
          Set the depends.
 void setEjbClass(String ejbClass)
           
 void setEjbName(String ejbName)
          Set the ejbName.
 void setEnterpriseBeansMetaData(JBossEnterpriseBeansMetaData enterpriseBeansMetaData)
          Set the enterpriseBeansMetaData.
 void setEnvironmentRefsGroup(JBossEnvironmentRefsGroupMetaData env)
           
 void setExceptionOnRollback(boolean exceptionOnRollback)
          Set the exceptionOnRollback.
 void setGeneratedContainerName(String containerName)
           
 void setIgnoreDependency(IgnoreDependencyMetaData ignoreDependency)
          Set the ignoreDependency.
 void setInvokerBindings(InvokerBindingsMetaData invokers)
          Set the invokers.
 void setIorSecurityConfig(IORSecurityConfigMetaData iorSecurityConfig)
          Set the iorSecurityConfig.
 void setJndiBindingPolicy(String jndiBindingPolicy)
           
 void setJndiEnvironmentRefsGroup(Environment env)
           
 void setJndiRefs(JndiRefsMetaData jndiRefs)
          Set the jndiRefs.
 void setLocalJndiName(String localJndiName)
          Set the localJndiName.
 void setMappedName(String mappedName)
           
 void setMethodAttributes(MethodAttributesMetaData methodAttributes)
          Set the methodAttributes.
 void setPoolConfig(PoolConfigMetaData poolConfig)
           
 void setSecurityDomain(String securityDomain)
          Set the securityDomain.
 void setSecurityIdentity(SecurityIdentityMetaData securityIdentity)
          Set the securityIdentity.
 void setSecurityProxy(String securityProxy)
          Set the securityProxy.
 void setTimerPersistence(boolean timerPersistence)
          Set the timerPersistence.
 void setTransactionType(javax.ejb.TransactionManagementType transactionType)
           
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaDataWithDescriptionGroup
getDescriptionGroup, setDescriptionGroup
 
Methods inherited from class org.jboss.metadata.javaee.support.NamedMetaData
equals, getKey, getName, hashCode, setName, toString
 
Methods inherited from class org.jboss.metadata.javaee.support.IdMetaDataImpl
clone, getId, merge, merge, setId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metadata.common.ejb.IEnterpriseBeanMetaData
getDescriptionGroup, getId, setDescriptionGroup
 
Methods inherited from interface org.jboss.metadata.javaee.support.MappableMetaData
getKey
 

Constructor Detail

JBossEnterpriseBeanMetaData

public JBossEnterpriseBeanMetaData()
Create a new EnterpriseBeanMetaData.

Method Detail

newBean

public static JBossEnterpriseBeanMetaData newBean(EnterpriseBeanMetaData bean)
Create the correct JBossEnterpriseBeanMetaData for the input standard bean metadata.

Parameters:
bean - the standard bean metadata
Returns:
the corresponding jboss extenstion metadata

newBean

public JBossEnterpriseBeanMetaData newBean()
Returns:
returns a new instance of the same type

getEnterpriseBeansMetaData

public JBossEnterpriseBeansMetaData getEnterpriseBeansMetaData()
Get the enterpriseBeansMetaData.

Returns:
the enterpriseBeansMetaData.

setEnterpriseBeansMetaData

public void setEnterpriseBeansMetaData(JBossEnterpriseBeansMetaData enterpriseBeansMetaData)
Set the enterpriseBeansMetaData.

Specified by:
setEnterpriseBeansMetaData in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Parameters:
enterpriseBeansMetaData - the enterpriseBeansMetaData.

getJBossMetaData

public JBossMetaData getJBossMetaData()
Get the jbossMetaData.

Returns:
the jbossMetaData.

getJBossMetaDataWithCheck

public JBossMetaData getJBossMetaDataWithCheck()
Get the jbossMetaData.

Returns:
the jbossMetaData with check

getJndiEnvironmentRefsGroup

public Environment getJndiEnvironmentRefsGroup()
Get the jndiEnvironmentRefsGroup.

Specified by:
getJndiEnvironmentRefsGroup in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
the jndiEnvironmentRefsGroup.

setJndiEnvironmentRefsGroup

public void setJndiEnvironmentRefsGroup(Environment env)
Specified by:
setJndiEnvironmentRefsGroup in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

setEnvironmentRefsGroup

public void setEnvironmentRefsGroup(JBossEnvironmentRefsGroupMetaData env)

getEjbName

public String getEjbName()
Get the ejbName.

Specified by:
getEjbName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
the ejbName.

setEjbName

public void setEjbName(String ejbName)
Set the ejbName.

Specified by:
setEjbName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Parameters:
ejbName - the ejbName.
Throws:
IllegalArgumentException - for a null ejbName

getEjbClass

public String getEjbClass()
Specified by:
getEjbClass in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

getEjbJarMetaData

public JBossMetaData getEjbJarMetaData()
Specified by:
getEjbJarMetaData in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

getContainerTransactions

public ContainerTransactionsMetaData getContainerTransactions()
Get the container transactions

Specified by:
getContainerTransactions in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
the container transactions or null for no result

getMethodTransactionType

public javax.ejb.TransactionAttributeType getMethodTransactionType(String methodName,
                                                                   Class<?>[] params,
                                                                   MethodInterfaceType iface)
Get the method transaction type

Specified by:
getMethodTransactionType in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Parameters:
methodName - the method name
params - the parameters
iface - the interface type
Returns:
the method transaction type

getMethodTransactionType

public javax.ejb.TransactionAttributeType getMethodTransactionType(Method m,
                                                                   MethodInterfaceType iface)
Get the transaction type

Specified by:
getMethodTransactionType in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Parameters:
m - the method
iface - the interface type
Returns:
the transaction type

getExcludeList

public ExcludeListMetaData getExcludeList()
Get the exclude list

Specified by:
getExcludeList in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
the exclude list or null for no result

getMappedName

public String getMappedName()
Specified by:
getMappedName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

setEjbClass

public void setEjbClass(String ejbClass)
Specified by:
setEjbClass in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

setMappedName

public void setMappedName(String mappedName)
Specified by:
setMappedName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

isConsumer

public boolean isConsumer()
Whether this is a consumer bean

Returns:
true when a consumer bean

isService

public boolean isService()
Whether this is a service bean

Returns:
true when a service bean

isSession

public boolean isSession()
Whether this is a session bean

Specified by:
isSession in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
true when a session bean

isMessageDriven

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

Specified by:
isMessageDriven in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
true when a message driven bean

isEntity

public boolean isEntity()
Whether this is an entity bean

Specified by:
isEntity in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
true when an entity bean

isGeneric

public boolean isGeneric()

isCMT

public boolean isCMT()
Is this container managed transactions

Specified by:
isCMT in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
true when CMT

isBMT

public boolean isBMT()
Is this bean managed transactions

Specified by:
isBMT in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
true when BMT

getTransactionType

public javax.ejb.TransactionManagementType getTransactionType()
Specified by:
getTransactionType in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>

setTransactionType

public void setTransactionType(javax.ejb.TransactionManagementType transactionType)

getLocalJndiName

public String getLocalJndiName()
Get the localJndiName.

Returns:
the localJndiName.

setLocalJndiName

public void setLocalJndiName(String localJndiName)
Set the localJndiName.

Parameters:
localJndiName - the localJndiName.
Throws:
IllegalArgumentException - for a null localJndiName

determineLocalJndiName

@Deprecated
public String determineLocalJndiName()
Deprecated. JBMETA-68

Determine the localJndiName.

Returns:
the localJndiName.

determineJndiName

@Deprecated
public abstract String determineJndiName()
Deprecated. Handled by Decorators, JBMETA-68

Get the base jndi name for the bean if one exists. Not all ejbs have a jndi name notion.

Returns:
the base jndi name for the ejb it one exists, null otherwise.

determineResolvedJndiName

@Deprecated
public String determineResolvedJndiName(String iface)
Deprecated. JBMETA-68

Determine the jndi name for the proxy associated with iface. This calls #determineResolvedJndiName(String, null)

Parameters:
iface - - the fully qualified class name of the interface, or one of the KnownInterfaces. May be null in which case the base name as determined by getMappedName() or determineJndiName() is used.
Returns:
the resolved jndi name

determineResolvedJndiName

@Deprecated
public String determineResolvedJndiName(String iface,
                                                   DefaultJndiBindingPolicy defaultPolicy)
Deprecated. JBMETA-68

Determine the jndi name for the proxy associated with iface. This uses the bean DefaultJndiBindingPolicy. This will be one of in the following order: - getJndiBindingPolicy() the metadata policy - the argument defaultPolicy - BasicJndiBindingPolicy(base-jndi-name)

Parameters:
iface - - the fully qualified class name of the interface, or one of the KnownInterfaces. May be null in which case the base name as determined by getMappedName() or determineJndiName() is used.
defaultPolicy - - an optional DefaultJndiBindingPolicy to use if getJndiBindingPolicy() is null.
Returns:
the resolved jndi name

createPolicy

public DefaultJndiBindingPolicy createPolicy(ClassLoader loader,
                                             Class<? extends DefaultJndiBindingPolicy> defaultPolicyClass)
                                      throws Exception
Create the DefaultJndiBindingPolicy from the bean metadata.

Parameters:
loader - - the class loader used to load the policy class
defaultPolicyClass - - a fallback implementation to use if the bean has no policy set.
Returns:
the DefaultJndiBindingPolicy implementation
Throws:
Exception - on failure to load the policy class or instantiate it

getContainerObjectNameJndiName

public String getContainerObjectNameJndiName()
Determine the container jndi name used in the object name. This is really obsolete as there is no need for jmx names.

Returns:
the jndi name suitable for use in the object name

getContainerName

public String getContainerName()
Get the kernel name for the ejb container. This is the managed property version admin tools may use to control the name. Generally its not set and the server will set the name via the generatedContainerName non-managed property.

Returns:
containerName property value.
See Also:
setGeneratedContainerName(String)

setContainerName

public void setContainerName(String containerName)

getGeneratedContainerName

public String getGeneratedContainerName()
Get the generated kernel name for the ejb container. This is the non-managed property version that the server would use to set the name it generated when no containerName property existed.

Returns:
generatedContainerName property value.
See Also:
getContainerName()

setGeneratedContainerName

public void setGeneratedContainerName(String containerName)

determineContainerName

public String determineContainerName()
Get the kernel name for the ejb container. This is either the containerName managed property, or a runtime generated name set via the non-managed generatedContainerName property.

Returns:
the kernel name for the ejb container

isExceptionOnRollback

public boolean isExceptionOnRollback()
Get the exceptionOnRollback.

Returns:
the exceptionOnRollback.

setExceptionOnRollback

public void setExceptionOnRollback(boolean exceptionOnRollback)
Set the exceptionOnRollback.

Parameters:
exceptionOnRollback - the exceptionOnRollback.

isTimerPersistence

public boolean isTimerPersistence()
Get the timerPersistence.

Returns:
the timerPersistence.

setTimerPersistence

public void setTimerPersistence(boolean timerPersistence)
Set the timerPersistence.

Parameters:
timerPersistence - the timerPersistence.

getConfigurationName

public String getConfigurationName()
Get the configurationName.

Returns:
the configurationName.

setConfigurationName

public void setConfigurationName(String configurationName)
Set the configurationName.

Parameters:
configurationName - the configurationName.
Throws:
IllegalArgumentException - for a null configurationName

determineConfigurationName

public String determineConfigurationName()
Determine the configuration name

Returns:
the configuration name

determineContainerConfiguration

public ContainerConfigurationMetaData determineContainerConfiguration()
Get the container configuration

Returns:
the container configuration

setPoolConfig

public void setPoolConfig(PoolConfigMetaData poolConfig)

getDefaultConfigurationName

public abstract String getDefaultConfigurationName()
Get the default configuration name

Returns:
the default name

getSecurityProxy

public String getSecurityProxy()
Get the securityProxy.

Returns:
the securityProxy.

setSecurityProxy

public void setSecurityProxy(String securityProxy)
Set the securityProxy.

Parameters:
securityProxy - the securityProxy.
Throws:
IllegalArgumentException - for a null securityProxy

getSecurityDomain

public String getSecurityDomain()
Get the securityDomain.

Returns:
the securityDomain.

setSecurityDomain

public void setSecurityDomain(String securityDomain)
Set the securityDomain.

Parameters:
securityDomain - the securityDomain.
Throws:
IllegalArgumentException - for a null securityDomain

getDepends

public Set<String> getDepends()
Get the depends.

Returns:
the depends.

setDepends

public void setDepends(Set<String> depends)
Set the depends.

Parameters:
depends - the depends.
Throws:
IllegalArgumentException - for a null depends

determineAllDepends

public Set<String> determineAllDepends()
Get the depends.

Returns:
the depends.

getInvokerBindings

public InvokerBindingsMetaData getInvokerBindings()
Get the invokers.

Returns:
the invokers.

setInvokerBindings

public void setInvokerBindings(InvokerBindingsMetaData invokers)
Set the invokers.

Parameters:
invokers - the invokers.
Throws:
IllegalArgumentException - for a null invokers

determineInvokerBindings

public InvokerBindingsMetaData determineInvokerBindings()
Determine the invokers

Returns:
the invokers.

determineInvokerBinding

public InvokerBindingMetaData determineInvokerBinding(String invokerName)
Determine an invoker binding

Parameters:
invokerName - the invoker proxy binding name
Returns:
the invoke binding
Throws:
IllegalStateException - if there is no such binding

getDefaultInvokerJndiName

protected String getDefaultInvokerJndiName()
Determine the jndi name for invoker bindings that come from the container configuration

Returns:
the jndi name suitable for use on the default invoker

getDefaultInvokers

protected InvokerBindingsMetaData getDefaultInvokers()
Get the default invokers

Returns:
the default invokers

getDefaultInvokerName

protected abstract String getDefaultInvokerName()
Get the default invokers

Returns:
the default invokers

getEjbLocalReferenceByName

public EJBLocalReferenceMetaData getEjbLocalReferenceByName(String name)
Description copied from interface: Environment
Get by name

Specified by:
getEjbLocalReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getEjbLocalReferenceByName in interface Environment
Parameters:
name - the name
Returns:
the result or null if not found

getEjbLocalReferences

public EJBLocalReferencesMetaData getEjbLocalReferences()
Description copied from interface: Environment
Get the ejbLocalReferences.

Specified by:
getEjbLocalReferences in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getEjbLocalReferences in interface Environment
Returns:
the ejbLocalReferences.

getEjbReferenceByName

public EJBReferenceMetaData getEjbReferenceByName(String name)
Description copied from interface: RemoteEnvironment
Get by name

Specified by:
getEjbReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getEjbReferenceByName in interface RemoteEnvironment
Parameters:
name - the name
Returns:
the result or null if not found

getEjbReferences

public EJBReferencesMetaData getEjbReferences()
Description copied from interface: RemoteEnvironment
Get the ejbReferences.

Specified by:
getEjbReferences in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getEjbReferences in interface RemoteEnvironment
Returns:
the ejbReferences.

getAnnotatedEjbReferences

public AnnotatedEJBReferencesMetaData getAnnotatedEjbReferences()
Description copied from interface: RemoteEnvironment
Get the ejbReferences.

Specified by:
getAnnotatedEjbReferences in interface RemoteEnvironment
Returns:
the ejbReferences.

getEnvironmentEntries

public EnvironmentEntriesMetaData getEnvironmentEntries()
Description copied from interface: RemoteEnvironment
Get the environmentEntries.

Specified by:
getEnvironmentEntries in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getEnvironmentEntries in interface RemoteEnvironment
Returns:
the environmentEntries.

getEnvironmentEntryByName

public EnvironmentEntryMetaData getEnvironmentEntryByName(String name)
Description copied from interface: RemoteEnvironment
Get by name

Specified by:
getEnvironmentEntryByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getEnvironmentEntryByName in interface RemoteEnvironment
Parameters:
name - the name
Returns:
the result or null if not found

getMessageDestinationReferenceByName

public MessageDestinationReferenceMetaData getMessageDestinationReferenceByName(String name)
Description copied from interface: RemoteEnvironment
Get by name

Specified by:
getMessageDestinationReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getMessageDestinationReferenceByName in interface RemoteEnvironment
Parameters:
name - the name
Returns:
the result or null if not found

getMessageDestinationReferences

public MessageDestinationReferencesMetaData getMessageDestinationReferences()
Description copied from interface: RemoteEnvironment
Get the messageDestinationReferences.

Specified by:
getMessageDestinationReferences in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getMessageDestinationReferences in interface RemoteEnvironment
Returns:
the messageDestinationReferences.

getPersistenceContextReferenceByName

public PersistenceContextReferenceMetaData getPersistenceContextReferenceByName(String name)
Description copied from interface: Environment
Get by name

Specified by:
getPersistenceContextReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getPersistenceContextReferenceByName in interface Environment
Parameters:
name - the name
Returns:
the result or null if not found

getPersistenceContextRefs

public PersistenceContextReferencesMetaData getPersistenceContextRefs()
Description copied from interface: Environment
Get the persistenceContextRefs.

Specified by:
getPersistenceContextRefs in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getPersistenceContextRefs in interface Environment
Returns:
the persistenceContextRefs.

getPersistenceUnitReferenceByName

public PersistenceUnitReferenceMetaData getPersistenceUnitReferenceByName(String name)
Description copied from interface: RemoteEnvironment
Get by name

Specified by:
getPersistenceUnitReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getPersistenceUnitReferenceByName in interface RemoteEnvironment
Parameters:
name - the name
Returns:
the result or null if not found

getPersistenceUnitRefs

public PersistenceUnitReferencesMetaData getPersistenceUnitRefs()
Description copied from interface: RemoteEnvironment
Get the persistenceUnitRefs.

Specified by:
getPersistenceUnitRefs in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getPersistenceUnitRefs in interface RemoteEnvironment
Returns:
the persistenceUnitRefs.

getPoolConfig

public PoolConfigMetaData getPoolConfig()

getPostConstructs

public LifecycleCallbacksMetaData getPostConstructs()
Description copied from interface: RemoteEnvironment
Get the postConstructs.

Specified by:
getPostConstructs in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getPostConstructs in interface RemoteEnvironment
Returns:
the postConstructs.

getPreDestroys

public LifecycleCallbacksMetaData getPreDestroys()
Description copied from interface: RemoteEnvironment
Get the preDestroys.

Specified by:
getPreDestroys in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getPreDestroys in interface RemoteEnvironment
Returns:
the preDestroys.

getResourceEnvironmentReferenceByName

public ResourceEnvironmentReferenceMetaData getResourceEnvironmentReferenceByName(String name)
Description copied from interface: RemoteEnvironment
Get by name

Specified by:
getResourceEnvironmentReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getResourceEnvironmentReferenceByName in interface RemoteEnvironment
Parameters:
name - the name
Returns:
the result or null if not found

getResourceEnvironmentReferences

public ResourceEnvironmentReferencesMetaData getResourceEnvironmentReferences()
Description copied from interface: RemoteEnvironment
Get the resourceEnvironmentReferences.

Specified by:
getResourceEnvironmentReferences in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getResourceEnvironmentReferences in interface RemoteEnvironment
Returns:
the resourceEnvironmentReferences.

getResourceReferenceByName

public ResourceReferenceMetaData getResourceReferenceByName(String name)
Description copied from interface: RemoteEnvironment
Get by name

Specified by:
getResourceReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getResourceReferenceByName in interface RemoteEnvironment
Parameters:
name - the name
Returns:
the result or null if not found

getResourceReferences

public ResourceReferencesMetaData getResourceReferences()
Description copied from interface: RemoteEnvironment
Get the resourceReferences.

Specified by:
getResourceReferences in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getResourceReferences in interface RemoteEnvironment
Returns:
the resourceReferences.

getServiceReferenceByName

public ServiceReferenceMetaData getServiceReferenceByName(String name)
Description copied from interface: RemoteEnvironment
Get by name

Specified by:
getServiceReferenceByName in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getServiceReferenceByName in interface RemoteEnvironment
Parameters:
name - the name
Returns:
the result or null if not found

getServiceReferences

public ServiceReferencesMetaData getServiceReferences()
Description copied from interface: RemoteEnvironment
Get the service references

Specified by:
getServiceReferences in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Specified by:
getServiceReferences in interface RemoteEnvironment

getSecurityRoleRefs

public SecurityRoleRefsMetaData getSecurityRoleRefs()
Provies a common accessor that returns an empty security role refs. Subclasses that support security-role-refs must override.

Returns:
An empty security role refs.

getAnnotations

public AnnotationsMetaData getAnnotations()
Get the annotations.

Returns:
the annotations.

setAnnotations

public void setAnnotations(AnnotationsMetaData annotations)
Set the annotations.

Parameters:
annotations - the annotations.
Throws:
IllegalArgumentException - for a null annotations

getAopDomainName

public String getAopDomainName()
Get the aopDomainName.

Returns:
the aopDomainName.

setAopDomainName

public void setAopDomainName(String aopDomainName)
Set the aopDomainName.

Parameters:
aopDomainName - the aopDomainName.
Throws:
IllegalArgumentException - for a null aopDomainName

getJndiRefs

public JndiRefsMetaData getJndiRefs()
Get the jndiRefs.

Returns:
the jndiRefs.

setJndiRefs

public void setJndiRefs(JndiRefsMetaData jndiRefs)
Set the jndiRefs.

Parameters:
jndiRefs - the jndiRefs.
Throws:
IllegalArgumentException - for a null jndiRefs

getSecurityRole

public SecurityRoleMetaData getSecurityRole(String roleName)
Get a security role

Parameters:
roleName - the role name
Returns:
the security role or null if not found

getSecurityRolePrincipals

public Set<String> getSecurityRolePrincipals(String roleName)
Get a security role's principals

Parameters:
roleName - the role name
Returns:
the principals or null if not found

getSecurityRolesPrincipalVersusRolesMap

public Map<String,Set<String>> getSecurityRolesPrincipalVersusRolesMap()
Get the Principal versus roles map stored in the security roles

Returns:

getMethodPermissions

public MethodPermissionsMetaData getMethodPermissions()
Get the methods permissions

Specified by:
getMethodPermissions in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
the method permissions or null for no result

getMethodPermissions

public Set<String> getMethodPermissions(String methodName,
                                        Class<?>[] params,
                                        MethodInterfaceType interfaceType)
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
interfaceType - the interface type
Returns:
The Set for the application domain roles that caller principal's are to be validated against.

hasMethodPermissions

public boolean hasMethodPermissions(String methodName,
                                    Class<?>[] params,
                                    MethodInterfaceType interfaceType)
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
interfaceType - - the method interface type
Returns:
true if a matching method permission exists, false if no match

getIorSecurityConfig

public IORSecurityConfigMetaData getIorSecurityConfig()
Get the iorSecurityConfig.

Returns:
the iorSecurityConfig.

setIorSecurityConfig

public void setIorSecurityConfig(IORSecurityConfigMetaData iorSecurityConfig)
Set the iorSecurityConfig.

Parameters:
iorSecurityConfig - the iorSecurityConfig.
Throws:
IllegalArgumentException - for a null iorSecurityConfig

getIgnoreDependency

public IgnoreDependencyMetaData getIgnoreDependency()
Get the ignoreDependency.

Returns:
the ignoreDependency.

setIgnoreDependency

public void setIgnoreDependency(IgnoreDependencyMetaData ignoreDependency)
Set the ignoreDependency.

Parameters:
ignoreDependency - the ignoreDependency.
Throws:
IllegalArgumentException - for a null ignoreDependency

getMethodAttributes

public MethodAttributesMetaData getMethodAttributes()
Get the methodAttributes.

Returns:
the methodAttributes.

setMethodAttributes

public void setMethodAttributes(MethodAttributesMetaData methodAttributes)
Set the methodAttributes.

Parameters:
methodAttributes - the methodAttributes.
Throws:
IllegalArgumentException - for a null methodAttributes

isMethodReadOnly

public boolean isMethodReadOnly(String methodName)
Is this method a read-only method

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

isMethodReadOnly

public boolean isMethodReadOnly(Method method)
Is this method a read-only method

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

getMethodTransactionTimeout

public int getMethodTransactionTimeout(String methodName)
Get the transaction timeout for the method

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

getMethodTransactionTimeout

public int getMethodTransactionTimeout(Method method)
Get the transaction timeout for the method

Parameters:
method - the method
Returns:
the transaction timeout

getSecurityIdentity

public SecurityIdentityMetaData getSecurityIdentity()
Get the securityIdentity.

Specified by:
getSecurityIdentity in interface IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>
Returns:
the securityIdentity.

setSecurityIdentity

public void setSecurityIdentity(SecurityIdentityMetaData securityIdentity)
Set the securityIdentity.

Parameters:
securityIdentity - the securityIdentity.
Throws:
IllegalArgumentException - for a null securityIdentity

merge

public void merge(NamedMetaData override,
                  NamedMetaData original)
Description copied from class: NamedMetaData
Merge override + original into this

Overrides:
merge in class NamedMetaDataWithDescriptionGroup
Parameters:
override - data which overrides original
original - the original data

merge

public void merge(JBossEnterpriseBeanMetaData override,
                  EnterpriseBeanMetaData original)

merge

public void merge(JBossEnterpriseBeanMetaData override,
                  EnterpriseBeanMetaData original,
                  String overrideFile,
                  String overridenFile,
                  boolean mustOverride)

merge

public void merge(JBossEnterpriseBeanMetaData override,
                  JBossEnterpriseBeanMetaData original)

merge

protected void merge(JBossGenericBeanMetaData generic)

checkValid

public void checkValid()

getAssemblyDescriptor

protected JBossAssemblyDescriptorMetaData getAssemblyDescriptor()
Get the assembly descriptor

Returns:
the ejbJarMetaData.

getJndiBindingPolicy

public String getJndiBindingPolicy()

setJndiBindingPolicy

public void setJndiBindingPolicy(String jndiBindingPolicy)


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