public interface ServiceRegistry
ExportedInstance types.| Modifier and Type | Method and Description |
|---|---|
<T> ExportedInstance<T> |
getExportedInstance(Class<T> type)
Get an instance of any currently available service of the given
Class type. |
<T> ExportedInstance<T> |
getExportedInstance(String type)
Get an instance of any currently available service types with
Class.getName() matching the given name. |
<T> Set<ExportedInstance<T>> |
getExportedInstances(Class<T> clazz)
Get the set of currently available services of the given
Class type. |
<T> Set<ExportedInstance<T>> |
getExportedInstances(String clazz)
Get the set of currently available services types with
Class.getName() matching the given name. |
Set<Class<?>> |
getExportedTypes()
Get a
Set of all currently available service types. |
<T> Set<Class<T>> |
getExportedTypes(Class<T> type)
Get a
Set of currently available service types for which Class.isAssignableFrom(Class) returns
true. |
boolean |
hasService(Class<?> clazz)
|
boolean |
hasService(String clazz)
Return
true if a type with the given name is registered as an service, otherwise return
false. |
<T> Set<ExportedInstance<T>> getExportedInstances(Class<T> clazz)
Class type. Return Collections.EMPTY_SET
if no matching services are found.Set of ExportedInstance objects (Never null.)<T> Set<ExportedInstance<T>> getExportedInstances(String clazz)
Class.getName() matching the given name. Return
Collections.EMPTY_SET if no matching services are found.Set of ExportedInstance objects (Never null.)<T> ExportedInstance<T> getExportedInstance(Class<T> type)
Class type. Return null if no
matching service can be found.ExportedInstance (May be null.)<T> ExportedInstance<T> getExportedInstance(String type)
Class.getName() matching the given name.
Return null if no matching service can be found.ExportedInstance (May be null.)Set<Class<?>> getExportedTypes()
Set of all currently available service types.<T> Set<Class<T>> getExportedTypes(Class<T> type)
Set of currently available service types for which Class.isAssignableFrom(Class) returns
true.boolean hasService(Class<?> clazz)
boolean hasService(String clazz)
true if a type with the given name is registered as an service, otherwise return
false.Copyright © 2014 JBoss by Red Hat. All rights reserved.