T - the type of configuration instances returnedpublic interface ConfigurationInstanceProvider<T>
Configuration
model.
Instances are provided through the
get(OperationContext, ConfigurationInstanceRegistrationCallback) method.
When that method is invoked, it's up to each implementation
to return a brand new instance or one which has already been returned before.
Each implementation is free to determine when and how to do that. However,
each time a new instance is returned, it is a responsibility
of this provider to register that instance with a given
ConfigurationInstanceRegistrationCallback| Modifier and Type | Method and Description |
|---|---|
T |
get(OperationContext operationContext,
ConfigurationInstanceRegistrationCallback registrationCallback)
Returns a configuration instance to serve the given
operationContext. |
Configuration |
getConfiguration()
The
Configuration model for which this provider
creates instances that realize it. |
String |
getName()
The name under which this provider was registered
|
T get(OperationContext operationContext, ConfigurationInstanceRegistrationCallback registrationCallback)
operationContext. This method may return an
instance already returned in the past or a brand new one.
In the latter case, implementations must register
that new instance by calling the
ConfigurationInstanceRegistrationCallback.registerNewConfigurationInstance(ConfigurationInstanceProvider, Object)
on the provided registrationCallbackoperationContext - a OperationContextregistrationCallback - a ConfigurationInstanceRegistrationCallbackConfiguration getConfiguration()
Configuration model for which this provider
creates instances that realize it.ConfigurationCopyright © 2015 MuleSoft, Inc.. All rights reserved.