public interface DescribingContext
ExtensionModel| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(String key,
Object value)
Adds a custom parameter registered under
key |
ExtensionDeclarer |
getExtensionDeclarer()
The
ExtensionDeclarer in which
the extension is being described into |
<T> T |
getParameter(String key,
Class<T> expectedType)
Obtains the custom parameter registered under
key
and verifies that (if not null) is of type expectedType. |
ExtensionDeclarer getExtensionDeclarer()
ExtensionDeclarer in which
the extension is being described intonull ExtensionDeclarervoid addParameter(String key, Object value)
keykey - the key under which the value is to be registeredvalue - the custom parameter valueIllegalArgumentException - if key or value are null<T> T getParameter(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 © 2016 MuleSoft, Inc.. All rights reserved.