public abstract class AbstractAnnotationServiceLoader extends Object implements AnnotationServiceLoader
Constructor and Description |
---|
AbstractAnnotationServiceLoader() |
Modifier and Type | Method and Description |
---|---|
protected abstract List<String> |
getClassNames() |
protected Object |
getServiceInstance(Class<?> clazz) |
void |
loadService(Class<?> clazz,
Annotation annotation,
ServiceRegistry serviceRegistry)
从AnnotationClassAction接入,新增注解服务
|
void |
loadService(ServiceRegistry serviceRegistry,
ClassLoader classLoader)
载入服务
|
void |
removeService(ServiceRegistry serviceRegistry,
ClassLoader classLoader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConfigPath
public void loadService(ServiceRegistry serviceRegistry, ClassLoader classLoader) throws ServiceLoadException
loadService
in interface ServiceLoader
ServiceLoadException
public void loadService(Class<?> clazz, Annotation annotation, ServiceRegistry serviceRegistry)
loadService
in interface AnnotationServiceLoader
clazz
- annotation
- serviceRegistry
- public void removeService(ServiceRegistry serviceRegistry, ClassLoader classLoader)
removeService
in interface ServiceLoader
Copyright © 2006–2018 TinyGroup. All rights reserved.