public interface ObjectProvider extends AnnotatedObject
Lifecycle interfaces.PROPERTY_NAME| Modifier and Type | Method and Description |
|---|---|
void |
configure(ObjectProviderConfiguration objectProviderConfiguration)
Method to be called to prepare the
ObjectProvider. |
Optional<Object> |
getObject(String name)
Finds an object by name
|
Optional<Object> |
getObjectByType(Class<?> objectType)
Finds an object by type
|
<T> Map<String,T> |
getObjectsByType(Class<T> type)
Finds all objects matching the given type
|
Optional<Boolean> |
isObjectSingleton(String name) |
getAnnotation, getAnnotations, getLocation, setAnnotationsvoid configure(ObjectProviderConfiguration objectProviderConfiguration)
ObjectProvider. It is expected that the provider is ready to be used after calling
this method.
This method will be invoke before Initialisable.initialise() if the implementation implements that interface.objectProviderConfiguration - configuration for the provider.Optional<Object> getObject(String name)
name - the object nameOptional<Object> getObjectByType(Class<?> objectType)
objectType - the object type.ObjectProvider implementation.<T> Map<String,T> getObjectsByType(Class<T> type)
T - type parameter for the objecttype - the object type class objectCopyright © 2017 MuleSoft, Inc.. All rights reserved.