public final class ExternalEntryPointHelper extends Object
| Constructor and Description |
|---|
ExternalEntryPointHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
getConsolidatedNameBlacklist(List<String> predefinedNameBlacklist,
Method method,
boolean scanEntryPointAnnotation)
Based on the input for scanning annotations, look for @ExternalEntryPoint and get the specific name black list elements.
|
static Set<Class<?>> |
getConsolidatedTypeBlacklist(List<Class<?>> predefinedTypeBlacklist,
Method method,
boolean scanEntryPointAnnotation)
Based on the input for scanning annotations, look for @ExternalEntryPoint and get the specific type black list elements.
|
static String |
getEntryPointDecoratedName(Method method,
boolean scanEntryPointAnnotation)
Based on the input for scanning annotations, look for @ExternalEntryPoint and get the decorated name from it, if any.
|
static List<EntryPointParameter> |
getInternalEntryPointParametersRecursively(Class<?> parameterType,
Set<Class<?>> typeBlacklist,
Set<String> nameBlacklist,
int maxDeepLevel)
Deeply finds all the attributes of the supplied class
|
static boolean |
isAnEntryPoint(Method method,
boolean scanEntryPointAnnotation)
Returns whether the supplied method is an Entry Point or not.
|
static boolean |
isSimpleRequestParameter(Class<?> parameterType)
Finds out if the supplied type is a simple element
(primitive/wrapper, an primitive/wrapper array or a Collection instance)
|
public static boolean isAnEntryPoint(Method method, boolean scanEntryPointAnnotation)
method - Method to be scannedscanEntryPointAnnotation - Does it has annotationpublic static List<EntryPointParameter> getInternalEntryPointParametersRecursively(Class<?> parameterType, Set<Class<?>> typeBlacklist, Set<String> nameBlacklist, int maxDeepLevel)
parameterType - Type of parametertypeBlacklist - blackList by typenameBlacklist - blackList by namemaxDeepLevel - How deep should algorithm go in the objectpublic static boolean isSimpleRequestParameter(Class<?> parameterType)
parameterType - Check if this class is simple parameterpublic static String getEntryPointDecoratedName(Method method, boolean scanEntryPointAnnotation)
method - Method to get name from it.scanEntryPointAnnotation - if should scan annotationspublic static Set<Class<?>> getConsolidatedTypeBlacklist(List<Class<?>> predefinedTypeBlacklist, Method method, boolean scanEntryPointAnnotation)
predefinedTypeBlacklist - predefined black listmethod - method to get the black listscanEntryPointAnnotation - should scan annotationspublic static Set<String> getConsolidatedNameBlacklist(List<String> predefinedNameBlacklist, Method method, boolean scanEntryPointAnnotation)
predefinedNameBlacklist - predefined black listmethod - method to get the black listscanEntryPointAnnotation - should scan annotationsCopyright © 2015. All rights reserved.