public abstract class AbstractServiceFactory extends Object implements ServiceFactory
Constructor and Description |
---|
AbstractServiceFactory() |
Modifier and Type | Method and Description |
---|---|
<T> T |
createService(ClassLoader classLoader,
ServiceContext context,
Class<T> interfaceClass) |
List<Decorator> |
getDecorators() |
String |
getInterfaceClass() |
List<String> |
getInterfaceClasses() |
Set<Class<?>> |
getInterfaces() |
Object |
getMockService() |
String |
getServiceName() |
protected Set<Class<?>> |
guessInterfaceClasses() |
void |
init(ServiceContext serviceContext,
String serviceName) |
void |
setDecorators(List<Decorator> decorators) |
void |
setInterfaceClass(String interfaceClass) |
void |
setInterfaceClasses(List<String> interfaceClasses) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getService
public void init(ServiceContext serviceContext, String serviceName)
init
in interface ServiceFactory
public String getServiceName()
public <T> T createService(ClassLoader classLoader, ServiceContext context, Class<T> interfaceClass)
createService
in interface ServiceFactory
public Object getMockService()
getMockService
in interface ServiceFactory
public String getInterfaceClass()
public void setInterfaceClass(String interfaceClass)
public Set<Class<?>> getInterfaces()
getInterfaces
in interface ServiceFactory