1 17 package org.alfresco.repo.service; 18 19 import java.util.Collection ; 20 21 import org.alfresco.service.ServiceDescriptor; 22 import org.alfresco.service.cmr.repository.StoreRef; 23 import org.alfresco.service.namespace.QName; 24 25 26 31 public class BeanServiceDescriptor 32 implements ServiceDescriptor 33 { 34 private QName serviceName; 36 37 private String description; 39 40 private Class interfaceClass; 42 43 Collection <String > protocols = null; 45 46 Collection <StoreRef> stores = null; 48 49 50 BeanServiceDescriptor(QName serviceName, ServiceDescriptorMetaData metaData, StoreRedirector redirector) 51 { 52 this.serviceName = serviceName; 53 this.interfaceClass = metaData.getInterface(); 54 this.description = metaData.getDescription(); 55 56 if (redirector != null) 57 { 58 protocols = redirector.getSupportedStoreProtocols(); 59 stores = redirector.getSupportedStores(); 60 } 61 } 62 63 66 public QName getQualifiedName() 67 { 68 return serviceName; 69 } 70 71 74 public String getDescription() 75 { 76 return description; 77 } 78 79 82 public Class getInterface() 83 { 84 return interfaceClass; 85 } 86 87 90 public Collection <String > getSupportedStoreProtocols() 91 { 92 return protocols; 93 } 94 95 98 public Collection <StoreRef> getSupportedStores() 99 { 100 return stores; 101 } 102 103 } 104 | Popular Tags |