public abstract class AbstractAnnotatedTransformerArgumentResolver extends Object implements TransformerArgumentResolver, Disposable
Modifier and Type | Field and Description |
---|---|
static String[] |
ignoredPackages |
protected Log |
logger
logger used by this class
|
PHASE_NAME
Constructor and Description |
---|
AbstractAnnotatedTransformerArgumentResolver() |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
createArgument(Class<?> annotatedType,
MuleContext muleContext)
If the resolver cannot locate the required object of type
getArgumentClass() this method will be invoked
an instance of the object. |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
protected boolean |
findAnnotation(Class annotatedType) |
protected abstract String |
getAnnotationsPackageName()
This resolver scans a class for annotations in this package.
|
protected abstract Class<?> |
getArgumentClass()
The object type that this resolver will discover or create
|
Set<Class> |
getMatchingClasses() |
Set<Class> |
getNonMatchingClasses() |
protected boolean |
isNonMatching(DataType source,
DataType result) |
<T> T |
resolve(Class<T> type,
DataType source,
DataType result,
MuleContext context) |
public static final String[] ignoredPackages
protected final transient Log logger
public AbstractAnnotatedTransformerArgumentResolver()
public <T> T resolve(Class<T> type, DataType source, DataType result, MuleContext context) throws Exception
resolve
in interface TransformerArgumentResolver
Exception
protected boolean findAnnotation(Class annotatedType) throws IOException
IOException
public void dispose()
Disposable
dispose
in interface Disposable
protected abstract Class<?> getArgumentClass()
protected abstract Object createArgument(Class<?> annotatedType, MuleContext muleContext) throws Exception
getArgumentClass()
this method will be invoked
an instance of the object.annotatedType
- the annotated object that was matchedmuleContext
- the current Mule context.Exception
- if the object cannot be createdprotected abstract String getAnnotationsPackageName()
findAnnotation(Class)
method and search based on your own criteriaCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.