1 25 26 package org.objectweb.easybeans.deployment.annotations.impl; 27 28 import java.lang.annotation.Annotation ; 29 30 import javax.ejb.ActivationConfigProperty ; 31 32 36 public class JActivationConfigProperty implements ActivationConfigProperty { 37 38 41 private String name = null; 42 43 46 private String value = null; 47 48 54 public JActivationConfigProperty(final String name, final String value) { 55 this.name = name; 56 this.value = value; 57 } 58 59 60 63 public String propertyName() { 64 return name; 65 } 66 67 70 public String propertyValue() { 71 return value; 72 } 73 74 77 public Class <? extends Annotation > annotationType() { 78 return ActivationConfigProperty .class; 79 } 80 81 84 @Override 85 public String toString() { 86 StringBuilder sb = new StringBuilder (); 87 sb.append(this.getClass().getName().substring(this.getClass().getPackage().getName().length() + 1)); 89 sb.append("[propertyName="); 91 sb.append(name); 92 93 sb.append(", propertyValue="); 95 sb.append(value); 96 97 sb.append("]"); 98 return sb.toString(); 99 } 100 } 101 | Popular Tags |