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