1 28 29 package com.caucho.jca.cfg; 30 31 import com.caucho.config.ConfigException; 32 import com.caucho.log.Log; 33 import com.caucho.util.L10N; 34 35 import java.util.ArrayList ; 36 import java.util.logging.Logger ; 37 38 41 public class MessageListenerConfig extends ObjectConfig { 42 private static final L10N L = new L10N(MessageListenerConfig.class); 43 private static final Logger log = Log.open(MessageListenerConfig.class); 44 45 private Class _type; 46 private Class _activationSpecClass; 47 48 51 public void setMessagelistenerType(Class type) 52 { 53 _type = type; 54 } 55 56 59 public Class getMessageListenerType() 60 { 61 return _type; 62 } 63 64 67 public Class getActivationSpecClass() 68 { 69 return _activationSpecClass; 70 } 71 72 75 public ActivationSpecConfig createActivationspec() 76 { 77 return new ActivationSpecConfig(); 78 } 79 80 public class ActivationSpecConfig { 81 private ArrayList <ConfigPropertyConfig> _requiredProperties = 82 new ArrayList <ConfigPropertyConfig>(); 83 84 87 public void setActivationspecClass(Class type) 88 throws ConfigException 89 { 90 _activationSpecClass = type; 91 92 setType(type); 93 } 94 95 98 public void addRequiredConfigProperty(ConfigPropertyConfig cfg) 99 { 100 _requiredProperties.add(cfg); 101 } 102 } 103 } 104 | Popular Tags |