public interface ComponentService
Modifier and Type | Method and Description |
---|---|
<T> T |
getComponent(java.lang.Class<T> clazz)
Returns a registered component by its class.
|
java.lang.Object |
getComponent(java.lang.String name)
Returns a registered component by its name.
|
<T> T |
getComponent(java.lang.String name,
java.lang.Class<T> clazz)
Returns a registered component by its name and class.
|
<T> java.util.List<T> |
getComponents(java.lang.Class<T> clazz)
Returns a list of all registered components which are instances of the
specified class.
|
java.lang.Object getComponent(java.lang.String name)
name
- the component name<T> T getComponent(java.lang.String name, java.lang.Class<T> clazz)
T
- the component classname
- the component nameclazz
- the component classjava.lang.ClassCastException
- if the component with the specified name does not correspond
to the specified class<T> T getComponent(java.lang.Class<T> clazz)
T
- the component classclazz
- the component class<T> java.util.List<T> getComponents(java.lang.Class<T> clazz)
T
- the component classclazz
- the component nameCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.