org.jboss.metadata.ejb.jboss
Class JBossMessageDrivenBeanMetaData

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
                  extended by org.jboss.metadata.ejb.jboss.JBossMessageDrivenBeanMetaData
All Implemented Interfaces:
Serializable, Cloneable, IEnterpriseBeanMetaData<JBossAssemblyDescriptorMetaData,JBossEnterpriseBeansMetaData,JBossEnterpriseBeanMetaData,JBossMetaData>, ITimeoutTarget, Environment, RemoteEnvironment, IdMetaData, MappableMetaData
Direct Known Subclasses:
JBoss50MessageDrivenBeanMetaData, JBoss51MessageDrivenBeanMetaData, JBossMessageDrivenBeanGenericWrapper

public class JBossMessageDrivenBeanMetaData
extends JBossEnterpriseBeanMetaData
implements ITimeoutTarget

MessageDrivenBeanMetaData.

Version:
$Revision: 1.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
JBossMessageDrivenBeanMetaData()
          Create a new MessageDrivenBeanMetaData.
 
Method Summary
 String determineJndiName()
          Deprecated. JBMETA-68
 String getAcknowledgeMode()
          Get the acknowledgeMode.
 ActivationConfigMetaData getActivationConfig()
          Get the activationConfig.
 AroundInvokesMetaData getAroundInvokes()
          Get the aroundInvokes.
 ActivationConfigMetaData getDefaultActivationConfig()
          Deprecated. 
 String getDefaultConfigurationName()
          Get the default configuration name
protected  String getDefaultInvokerJndiName()
          Determine the jndi name for invoker bindings that come from the container configuration
protected  String getDefaultInvokerName()
          Get the default invokers
 String getDestinationJndiName()
          Get the destinationJndiName.
 SecurityIdentityMetaData getEjbTimeoutIdentity()
          Get the ejbTimeoutIdentity.
 String getMdbClientId()
          Get the mdbClientId.
 String getMdbPassword()
          Get the mdbPassword.
 String getMdbSubscriptionId()
          Get the mdbSubscriptionId.
 String getMdbUser()
          Get the mdbUser.
 String getMessageDestinationLink()
          Get the messageDestinationLink.
 String getMessageDestinationType()
          Get the messageDestinationType.
 String getMessageSelector()
          Get the messageSelector.
 String getMessagingType()
          Get the messagingType.
 String getResourceAdapterName()
          Get the resourceAdapterName.
 SubscriptionDurability getSubscriptionDurability()
          Get the subscriptionDurability.
 NamedMethodMetaData getTimeoutMethod()
          Get the timeoutMethod.
 boolean isCreateDestination()
          Is create destination
 boolean isJMS()
          Is this JMS
 boolean isMessageDriven()
          Whether this is a message driven bean
 void merge(JBossEnterpriseBeanMetaData override, EnterpriseBeanMetaData original, String overridenFile, String overrideFile, boolean mustOverride)
           
 void merge(JBossEnterpriseBeanMetaData overrideEjb, JBossEnterpriseBeanMetaData originalEjb)
           
protected  void merge(JBossGenericBeanMetaData generic)
           
 void setAcknowledgeMode(String acknowledgeMode)
          Set the acknowledgeMode.
 void setActivationConfig(ActivationConfigMetaData activationConfig)
          Set the activationConfig.
 void setAroundInvokes(AroundInvokesMetaData aroundInvokes)
          Set the aroundInvokes.
 void setCreateDestination(boolean createDestination)
          Set the create destination
 void setDefaultActivationConfig(ActivationConfigMetaData defaultActivationConfig)
          Deprecated. 
 void setDestinationJndiName(String destinationJndiName)
          Set the destinationJndiName.
 void setEjbTimeoutIdentity(SecurityIdentityMetaData ejbTimeoutIdentity)
          Set the ejbTimeoutIdentity.
 void setMdbClientId(String mdbClientId)
          Set the mdbClientId.
 void setMdbPassword(String mdbPassword)
          Set the mdbPassword.
 void setMdbSubscriptionId(String mdbSubscriptionId)
          Set the mdbSubscriptionId.
 void setMdbUser(String mdbUser)
          Set the mdbUser.
 void setMessageDestinationLink(String messageDestinationLink)
          Set the messageDestinationLink.
 void setMessageDestinationType(String messageDestinationType)
          Set the messageDestinationType.
 void setMessageDrivenDestination(MessageDrivenDestinationMetaData mdd)
           
 void setMessageSelector(String messageSelector)
          Set the messageSelector.
 void setMessagingType(String messagingType)
          Set the messagingType.
 void setResourceAdapterName(String resourceAdapterName)
          Set the resourceAdapterName.
 void setSubscriptionDurability(SubscriptionDurability subscriptionDurability)
          Set the subscriptionDurability.
 void setTimeoutMethod(NamedMethodMetaData timeoutMethod)
          Set the timeoutMethod.
 
Methods inherited from class org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData
checkValid, createPolicy, determineAllDepends, determineConfigurationName, determineContainerConfiguration, determineContainerName, determineInvokerBinding, determineInvokerBindings, determineLocalJndiName, determineResolvedJndiName, determineResolvedJndiName, getAnnotatedEjbReferences, getAnnotations, getAopDomainName, getAssemblyDescriptor, getConfigurationName, getContainerName, getContainerObjectNameJndiName, getContainerTransactions, getDefaultInvokers, getDepends, getEjbClass, getEjbJarMetaData, getEjbLocalReferenceByName, getEjbLocalReferences, getEjbName, getEjbReferenceByName, getEjbReferences, getEnterpriseBeansMetaData, getEnvironmentEntries, getEnvironmentEntryByName, getExcludeList, getGeneratedContainerName, getIgnoreDependency, getInvokerBindings, getIorSecurityConfig, getJBossMetaData, getJBossMetaDataWithCheck, getJndiBindingPolicy, getJndiEnvironmentRefsGroup, getJndiRefs, getLocalJndiName, getMappedName, getMessageDestinationReferenceByName, getMessageDestinationReferences, getMethodAttributes, getMethodPermissions, getMethodPermissions, getMethodTransactionTimeout, getMethodTransactionTimeout, getMethodTransactionType, getMethodTransactionType, getPersistenceContextReferenceByName, getPersistenceContextRefs, getPersistenceUnitReferenceByName, getPersistenceUnitRefs, getPoolConfig, getPostConstructs, getPreDestroys, getResourceEnvironmentReferenceByName, getResourceEnvironmentReferences, getResourceReferenceByName, getResourceReferences, getSecurityDomain, getSecurityIdentity, getSecurityProxy, getSecurityRole, getSecurityRolePrincipals, getSecurityRoleRefs, getSecurityRolesPrincipalVersusRolesMap, getServiceReferenceByName, getServiceReferences, getTransactionType, hasMethodPermissions, isBMT, isCMT, isConsumer, isEntity, isExceptionOnRollback, isGeneric, isMethodReadOnly, isMethodReadOnly, isService, isSession, isTimerPersistence, merge, merge, newBean, newBean, setAnnotations, setAopDomainName, setConfigurationName, setContainerName, setDepends, setEjbClass, setEjbName, setEnterpriseBeansMetaData, setEnvironmentRefsGroup, setExceptionOnRollback, setGeneratedContainerName, setIgnoreDependency, setInvokerBindings, setIorSecurityConfig, setJndiBindingPolicy, setJndiEnvironmentRefsGroup, setJndiRefs, setLocalJndiName, setMappedName, setMethodAttributes, setPoolConfig, setSecurityDomain, setSecurityIdentity, setSecurityProxy, setTimerPersistence, setTransactionType
 
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

JBossMessageDrivenBeanMetaData

public JBossMessageDrivenBeanMetaData()
Create a new MessageDrivenBeanMetaData.

Method Detail

isMessageDriven

public boolean isMessageDriven()
Description copied from class: JBossEnterpriseBeanMetaData
Whether this is a message driven bean

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

getMessagingType

public String getMessagingType()
Get the messagingType.

Returns:
the messagingType.

isJMS

public boolean isJMS()
Is this JMS

Returns:
true for jms

setMessagingType

public void setMessagingType(String messagingType)
Set the messagingType.

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

getTimeoutMethod

public NamedMethodMetaData getTimeoutMethod()
Get the timeoutMethod.

Specified by:
getTimeoutMethod in interface ITimeoutTarget
Returns:
the timeoutMethod.

setTimeoutMethod

public void setTimeoutMethod(NamedMethodMetaData timeoutMethod)
Set the timeoutMethod.

Specified by:
setTimeoutMethod in interface ITimeoutTarget
Parameters:
timeoutMethod - the timeoutMethod.
Throws:
IllegalArgumentException - for a null timeoutMethod

getMessageDestinationType

public String getMessageDestinationType()
Get the messageDestinationType.

Returns:
the messageDestinationType.

setMessageDestinationType

public void setMessageDestinationType(String messageDestinationType)
Set the messageDestinationType.

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

getAroundInvokes

public AroundInvokesMetaData getAroundInvokes()
Get the aroundInvokes.

Returns:
the aroundInvokes.

setAroundInvokes

public void setAroundInvokes(AroundInvokesMetaData aroundInvokes)
Set the aroundInvokes.

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

getMessageDestinationLink

public String getMessageDestinationLink()
Get the messageDestinationLink.

Returns:
the messageDestinationLink.

setMessageDestinationLink

public void setMessageDestinationLink(String messageDestinationLink)
Set the messageDestinationLink.

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

getActivationConfig

public ActivationConfigMetaData getActivationConfig()
Get the activationConfig.

Returns:
the activationConfig.

setActivationConfig

public void setActivationConfig(ActivationConfigMetaData activationConfig)
Set the activationConfig.

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

getMessageSelector

public String getMessageSelector()
Get the messageSelector.

Returns:
the messageSelector.

setMessageSelector

public void setMessageSelector(String messageSelector)
Set the messageSelector.

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

getAcknowledgeMode

public String getAcknowledgeMode()
Get the acknowledgeMode.

Returns:
the acknowledgeMode.

setAcknowledgeMode

public void setAcknowledgeMode(String acknowledgeMode)
Set the acknowledgeMode.

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

getSubscriptionDurability

public SubscriptionDurability getSubscriptionDurability()
Get the subscriptionDurability.

Returns:
the subscriptionDurability.

setSubscriptionDurability

public void setSubscriptionDurability(SubscriptionDurability subscriptionDurability)
Set the subscriptionDurability.

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

setMessageDrivenDestination

public void setMessageDrivenDestination(MessageDrivenDestinationMetaData mdd)

getDefaultConfigurationName

public String getDefaultConfigurationName()
Description copied from class: JBossEnterpriseBeanMetaData
Get the default configuration name

Specified by:
getDefaultConfigurationName in class JBossEnterpriseBeanMetaData
Returns:
the default name

getDefaultInvokerName

protected String getDefaultInvokerName()
Description copied from class: JBossEnterpriseBeanMetaData
Get the default invokers

Specified by:
getDefaultInvokerName in class JBossEnterpriseBeanMetaData
Returns:
the default invokers

getDefaultInvokerJndiName

protected String getDefaultInvokerJndiName()
Description copied from class: JBossEnterpriseBeanMetaData
Determine the jndi name for invoker bindings that come from the container configuration

Overrides:
getDefaultInvokerJndiName in class JBossEnterpriseBeanMetaData
Returns:
the jndi name suitable for use on the default invoker

determineJndiName

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

Description copied from class: JBossEnterpriseBeanMetaData
Get the base jndi name for the bean if one exists. Not all ejbs have a jndi name notion.

Specified by:
determineJndiName in class JBossEnterpriseBeanMetaData
Returns:
the base jndi name for the ejb it one exists, null otherwise.

getDestinationJndiName

public String getDestinationJndiName()
Get the destinationJndiName.

Returns:
the destinationJndiName.

setDestinationJndiName

public void setDestinationJndiName(String destinationJndiName)
Set the destinationJndiName.

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

getMdbUser

public String getMdbUser()
Get the mdbUser.

Returns:
the mdbUser.

setMdbUser

public void setMdbUser(String mdbUser)
Set the mdbUser.

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

getMdbPassword

public String getMdbPassword()
Get the mdbPassword.

Returns:
the mdbPassword.

setMdbPassword

public void setMdbPassword(String mdbPassword)
Set the mdbPassword.

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

getMdbClientId

public String getMdbClientId()
Get the mdbClientId.

Returns:
the mdbClientId.

setMdbClientId

public void setMdbClientId(String mdbClientId)
Set the mdbClientId.

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

getResourceAdapterName

public String getResourceAdapterName()
Get the resourceAdapterName.

Returns:
the resourceAdapterName.

setResourceAdapterName

public void setResourceAdapterName(String resourceAdapterName)
Set the resourceAdapterName.

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

getMdbSubscriptionId

public String getMdbSubscriptionId()
Get the mdbSubscriptionId.

Returns:
the mdbSubscriptionId.

setMdbSubscriptionId

public void setMdbSubscriptionId(String mdbSubscriptionId)
Set the mdbSubscriptionId.

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

getDefaultActivationConfig

@Deprecated
public ActivationConfigMetaData getDefaultActivationConfig()
Deprecated. 

Get the defaultActivationConfig.

Returns:
the defaultActivationConfig.

setDefaultActivationConfig

@Deprecated
public void setDefaultActivationConfig(ActivationConfigMetaData defaultActivationConfig)
Deprecated. 

Set the defaultActivationConfig.

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

getEjbTimeoutIdentity

public SecurityIdentityMetaData getEjbTimeoutIdentity()
Get the ejbTimeoutIdentity.

Returns:
the ejbTimeoutIdentity.

setEjbTimeoutIdentity

public void setEjbTimeoutIdentity(SecurityIdentityMetaData ejbTimeoutIdentity)
Set the ejbTimeoutIdentity.

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

isCreateDestination

public boolean isCreateDestination()
Is create destination

Returns:
createDestination == true

setCreateDestination

public void setCreateDestination(boolean createDestination)
Set the create destination

Parameters:
createDestination -

merge

public void merge(JBossEnterpriseBeanMetaData override,
                  EnterpriseBeanMetaData original,
                  String overridenFile,
                  String overrideFile,
                  boolean mustOverride)
Overrides:
merge in class JBossEnterpriseBeanMetaData

merge

public void merge(JBossEnterpriseBeanMetaData overrideEjb,
                  JBossEnterpriseBeanMetaData originalEjb)
Overrides:
merge in class JBossEnterpriseBeanMetaData

merge

protected void merge(JBossGenericBeanMetaData generic)
Overrides:
merge in class JBossEnterpriseBeanMetaData


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