FileDocCategorySizeDatePackage
MessageDrivenImpl.javaAPI DocJBoss 4.2.13457Fri Jul 13 20:53:44 BST 2007org.jboss.ejb

MessageDrivenImpl

public class MessageDrivenImpl extends Object implements javax.ejb.MessageDriven
// *
author
William DeCoste
version
$Revision: 63408 $

Fields Summary
private String
name
private String
mn
private String
desc
private Class
listenerInterface
private HashMap
activationConfigProperties
Constructors Summary
public MessageDrivenImpl(String name, javax.ejb.ActivationConfigProperty[] activationConfigProperties)


       
   
      this.name = name;
      for (ActivationConfigProperty property : activationConfigProperties)
      {
         this.activationConfigProperties.put(property.propertyName(), property);
      }
   
Methods Summary
public javax.ejb.ActivationConfigProperty[]activationConfig()

      ActivationConfigProperty[] properties = new ActivationConfigProperty[activationConfigProperties.size()];
      activationConfigProperties.values().toArray(properties);
      return properties;
   
public java.lang.ClassannotationType()

      return javax.ejb.MessageDriven.class;
   
public java.lang.Stringdescription()

 return desc;
public java.lang.StringmappedName()

 return mn;
public voidmerge(javax.ejb.MessageDriven annotation)

   
      if (name.length() == 0)
         name = annotation.name();
      
      if (mn.length() == 0)
         mn = annotation.mappedName();
      
      if (desc.length() == 0)
         desc = annotation.description();
       
      Class messageListenerInterface = annotation.messageListenerInterface();
      if (messageListenerInterface != null && !messageListenerInterface.getName().equals(Object.class.getName()))
         listenerInterface = annotation.messageListenerInterface();
      
      for (ActivationConfigProperty property : annotation.activationConfig())
      {
         if (!activationConfigProperties.containsKey(property.propertyName()))
         {
            activationConfigProperties.put(property.propertyName(), property);
         }
      }
   
public java.lang.ClassmessageListenerInterface()

 return listenerInterface;
public java.lang.Stringname()

      return name;
   
public voidsetDescription(java.lang.String desc)

 this.desc = desc; 
public voidsetMappedName(java.lang.String mn)

 this.mn = mn; 
public voidsetMessageListenerInterface(java.lang.Class clazz)

 this.listenerInterface = clazz;