public abstract class AbstractAnnotatedTransformerArgumentResolver extends Object implements TransformerArgumentResolver, Disposable
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ignoredPackages |
protected org.apache.commons.logging.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() |
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(org.mule.api.metadata.DataType source,
org.mule.api.metadata.DataType result) |
<T> T |
resolve(Class<T> type,
org.mule.api.metadata.DataType source,
org.mule.api.metadata.DataType result,
MuleContext context) |
public static final String[] ignoredPackages
protected final transient org.apache.commons.logging.Log logger
public AbstractAnnotatedTransformerArgumentResolver()
public <T> T resolve(Class<T> type, org.mule.api.metadata.DataType source, org.mule.api.metadata.DataType result, MuleContext context) throws Exception
resolve in interface TransformerArgumentResolverExceptionprotected boolean findAnnotation(Class annotatedType) throws IOException
IOExceptionprotected boolean isNonMatching(org.mule.api.metadata.DataType source, org.mule.api.metadata.DataType result)
public void dispose()
dispose in interface Disposableprotected 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.