public interface Registry
javax.inject.Inject must should be the preferred option to access artifact services like
ObjectStoreManager, ObjectSerializer, etc.
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
lookup(Class<T> objectType)
Looks up for a service within the artifact.
|
<T> Collection<T> |
lookupAll(Class<T> serviceType)
Looks up for a set of service within the artifact.
|
<T> Optional<T> |
lookupByName(String name)
Looks up for a service within the artifact by it's name.
|
<T> Optional<T> lookup(Class<T> objectType)
If there are multiple services registered then an exception will be raised. If that could be the case then
{@link #lookupAll(Class)} should be used instead.
T - the type of the serviceobjectType - the service type<T> Optional<T> lookupByName(String name)
T - the type of the servicename - the service identifier<T> Collection<T> lookupAll(Class<T> serviceType)
T - the type of the serviceserviceType - the service typeCopyright © 2017 MuleSoft, Inc.. All rights reserved.