public abstract class RuleServiceInstantiationFactoryHelper extends Object
| Constructor and Description |
|---|
RuleServiceInstantiationFactoryHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getInterfaceForInstantiationStrategy(RulesInstantiationStrategy instantiationStrategy,
Class<?> serviceClass)
Returns service class for instantiation strategy according to after interceptors of methods in service class of
service specified as the argument.
|
static Class<?> |
getInterfaceForService(RulesInstantiationStrategy instantiationStrategy,
Class<?> serviceClass) |
static Set<Method> |
getMethodsWithReturnTypeNeedsChange(Class<?> serviceClass)
Look through all methods of the specified class in order to find all methods annotated by
ServiceCallAfterInterceptor. |
static Set<Method> |
getMethodsWithServiceExtraMethodAnnotation(Class<?> serviceClass)
Look through all methods of the specified class in order to find all methods annotated by
ServiceExtraMethod. |
static boolean |
hasMethodsWithReturnTypeNeedsChange(Class<?> serviceClass)
Look through all methods (skip methods for variations) of the specified class in order to find all methods
annotated by
ServiceCallAfterInterceptor. |
static boolean |
hasMethodsWithServiceExtraMethodAnnotation(Class<?> serviceClass)
Look through all methods of the specified class in order to find all methods annotated by
ServiceExtraMethod. |
static Class<?> |
processInterface(RulesInstantiationStrategy instantiationStrategy,
Class<?> serviceClass,
boolean skipServiceExtraMethodAnnotation) |
public RuleServiceInstantiationFactoryHelper()
public static Class<?> getInterfaceForInstantiationStrategy(RulesInstantiationStrategy instantiationStrategy, Class<?> serviceClass)
instantiationStrategy - instantiation strategy where returned interfaces will be set.serviceClass - Interface for service, which will be used for service class creation.Exceptionpublic static Class<?> getInterfaceForService(RulesInstantiationStrategy instantiationStrategy, Class<?> serviceClass)
public static Class<?> processInterface(RulesInstantiationStrategy instantiationStrategy, Class<?> serviceClass, boolean skipServiceExtraMethodAnnotation)
public static boolean hasMethodsWithReturnTypeNeedsChange(Class<?> serviceClass)
ServiceCallAfterInterceptor.serviceClass - Class to be analyzed.public static boolean hasMethodsWithServiceExtraMethodAnnotation(Class<?> serviceClass)
ServiceExtraMethod.serviceClass - Class to be analyzed.public static Set<Method> getMethodsWithReturnTypeNeedsChange(Class<?> serviceClass)
ServiceCallAfterInterceptor.serviceClass - Class to be analyzed.public static Set<Method> getMethodsWithServiceExtraMethodAnnotation(Class<?> serviceClass)
ServiceExtraMethod.serviceClass - Class to be analyzed.Copyright © 2004–2019 OpenL Tablets. All rights reserved.