public interface DescribingContext
Extension
and its DescriberPostProcessors
Once the Describer finishes applying its logic,
it will propagate this context through all the found
DescriberPostProcessors, which means that any
side effects applied by any of the before mentioned will be visible by the next ones.| Modifier and Type | Method and Description |
|---|---|
<T> T |
getCheckedParameter(String key,
Class<T> expectedType)
Obtains the custom parameter registered under
key
and verifies that (if not null) is of type expectedType. |
Map<String,Object> |
getCustomParameters()
A
Map to hold custom parameters that implementations of
Describer and DescriberPostProcessor might
want to share with each other |
DeclarationDescriptor |
getDeclarationDescriptor()
The
DeclarationDescriptor in which
the extension is being described into |
DeclarationDescriptor getDeclarationDescriptor()
DeclarationDescriptor in which
the extension is being described intonull DeclarationDescriptorMap<String,Object> getCustomParameters()
Map to hold custom parameters that implementations of
Describer and DescriberPostProcessor might
want to share with each othernull map. Not be assumed thread-safe<T> T getCheckedParameter(String key, Class<T> expectedType)
key
and verifies that (if not null) is of type expectedType.
If the obtained value if not an instance of such type, an
IllegalArgumentException is thrown. If no value is
registered under that key, then it simply returns
nullT - generic type of the expected valuekey - the key under which the wanted value is registeredexpectedType - the type of the expected valueexpectedType or nullCopyright © 2015 MuleSoft, Inc.. All rights reserved.