public interface CapabilityExtractor
Class that composes a Capable
Because actual capabilities might be defined across several modules (or even extensions!)
the actual extractors are fetched through SPI, using the standard ServiceLoader
contract.
Each implementation of this class has to aim to one and only one specific capability type. It's
this extractor's responsibility to ignore the capabilities which are outside of its domain
and to ignore any extension types which don't support the given capability| Modifier and Type | Method and Description |
|---|---|
Object |
extractCapability(org.mule.extension.introspection.declaration.DeclarationConstruct declarationConstruct,
Class<?> capableType,
org.mule.extension.introspection.declaration.HasCapabilities<? extends org.mule.extension.introspection.declaration.Construct> capableCallback)
Looks for a specific capability in the given
extensionType. |
Object extractCapability(org.mule.extension.introspection.declaration.DeclarationConstruct declarationConstruct, Class<?> capableType, org.mule.extension.introspection.declaration.HasCapabilities<? extends org.mule.extension.introspection.declaration.Construct> capableCallback)
extensionType.
and declares it into the given capableCallback. After doing such,
the found capability is returned (or null if not found)declarationConstruct - the construct that is being builtcapableType - the type of the Capable classcapableCallback - a HasCapabilities on which the Capable is to be registered.null if none foundCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.