public interface ServiceRegistry
ServiceLoader directly are the ability to inject a different
lookup mechanism and to facilitate testing.
Notice that in future versions of Mule this interface might me moved to
a new higher level mule-api artifact| Modifier and Type | Method and Description |
|---|---|
<T> Collection<T> |
lookupProviders(Class<T> providerClass)
Searches for implementations of a particular service class
|
<T> Collection<T> |
lookupProviders(Class<T> providerClass,
ClassLoader loader)
Searches for implementations of a particular service class
using the given class loader.
|
<T> Collection<T> lookupProviders(Class<T> providerClass, ClassLoader loader)
providerClass - a Classobject indicating the
class or interface of the service providers being detected.loader - the class loader to be used to load
provider-configuration files and instantiate provider classes,
or null if the system class loader (or, failing that
the bootstrap class loader) is to be used.Collection that yields provider objects
for the given service, in some arbitrary order.<T> Collection<T> lookupProviders(Class<T> providerClass)
providerClass - a Classobject indicating the
class or interface of the service providers being detected.Collection that yields provider objects for the given service, in some arbitrary order.Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.