1 22 package org.jboss.annotation.ejb; 23 24 import java.lang.annotation.Annotation ; 25 26 27 31 public class ServiceImpl implements Service 32 { 33 private String objectName = ""; 34 private String name = ""; 35 36 public ServiceImpl(Service service) 37 { 38 if (service != null) 39 { 40 objectName = service.objectName(); 41 name = service.name(); 42 } 43 } 44 45 public ServiceImpl(String objectName) 46 { 47 this.objectName = objectName; 48 } 49 50 public void setObjectName(String objectName) 51 { 52 this.objectName = objectName; 53 } 54 55 public void setName(String name) 56 { 57 this.name = name; 58 } 59 60 public String objectName() 61 { 62 return objectName; 63 } 64 65 public String name() 66 { 67 return name; 68 } 69 70 public Class <? extends Annotation > annotationType() 71 { 72 return null; 73 } 74 } 75 | Popular Tags |