1 17 package org.alfresco.repo.service; 18 19 import org.springframework.beans.factory.FactoryBean; 20 21 26 public class ServiceDescriptorAdvisorFactory implements FactoryBean 27 { 28 29 private String namespace; 30 private String description; 31 private Class interfaceClass; 32 33 34 37 public Object getObject() throws Exception 38 { 39 return new ServiceDescriptorAdvisor(namespace, description, interfaceClass); 40 } 41 42 45 public Class getObjectType() 46 { 47 return ServiceDescriptorAdvisor.class; 49 } 50 51 54 public boolean isSingleton() 55 { 56 return false; 58 } 59 60 63 public void setNamespace(String namespace) 64 { 65 this.namespace = namespace; 66 } 67 68 71 public void setDescription(String description) 72 { 73 this.description = description; 74 } 75 76 79 public void setInterface(Class interfaceClass) 80 { 81 this.interfaceClass = interfaceClass; 82 } 83 84 } 85 | Popular Tags |