FileDocCategorySizeDatePackage
ConsumerImpl.javaAPI DocJBoss 4.2.12691Fri Jul 13 20:54:02 BST 2007org.jboss.annotation.ejb

ConsumerImpl

public class ConsumerImpl extends Object implements Consumer
version
$Revision: 60233 $
author
William DeCoste

Fields Summary
private String
name
private HashMap
activationConfig
Constructors Summary
public ConsumerImpl(Consumer consumer)

   
     
   
      if (consumer != null)
      {
         name = consumer.name();
         if (consumer.activationConfig() != null)
         {
            for (ActivationConfigProperty prop : consumer.activationConfig())
            {
               activationConfig.put(prop.propertyName(), prop);
            }
         }
      }
   
Methods Summary
public javax.ejb.ActivationConfigProperty[]activationConfig()

      ActivationConfigProperty[] result = new ActivationConfigProperty[activationConfig.size()];
      int i = 0;
      for (Iterator<ActivationConfigProperty> it = activationConfig.values().iterator() ; it.hasNext() ; )
      {
         result[i++] = it.next(); 
      }
      return result;
   
public voidaddActivationConfig(javax.ejb.ActivationConfigProperty config)

      activationConfig.put(config.propertyName(), config);
   
public java.lang.ClassannotationType()

      return null;
   
public java.lang.Stringname()

      return name;
   
public voidsetName(java.lang.String name)

      this.name = name;