public interface AddonRegistry extends AddonView
Addon instances.| Modifier and Type | Method and Description |
|---|---|
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. |
<T> Imported<T> |
getServices(Class<T> clazz)
|
<T> Imported<T> |
getServices(String clazz)
Return an
Imported instance that can be used to obtain all currently available services with
Class.getName() matching the given name. |
long |
getVersion()
Return the current version of this
AddonRegistry, which is incremented on every addon PostStartup
and PreShutdown event for registered Addon instances. |
<T> Imported<T> getServices(Class<T> clazz)
Imported instance that can be used to obtain all currently available services of the given
Class type.Imported (Never null.)<T> Imported<T> getServices(String clazz)
Imported instance that can be used to obtain all currently available services with
Class.getName() matching the given name.Imported (Never 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.long getVersion()
AddonRegistry, which is incremented on every addon PostStartup
and PreShutdown event for registered Addon instances. (Starts at 0 and counts up.)Copyright © 2014 JBoss by Red Hat. All rights reserved.