|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.kernel.ComponentRegistryImpl
class ComponentRegistryImpl
This is a simple implementation of ComponentRegistry used
to startup and configure the system and individual applications. It
can have any objects added to it, but components cannot be removed. This
implementation is not thread-safe.
| Constructor Summary | |
|---|---|
ComponentRegistryImpl()
Creates an empty instance of ComponentRegistryImpl. |
|
| Method Summary | ||
|---|---|---|
(package private) void |
addComponent(Object component)
Adds a component to the set of available components. |
|
|
getComponent(Class<T> type)
Returns a component from the registry, matched based on the given type. |
|
Iterator<Object> |
iterator()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ComponentRegistryImpl()
ComponentRegistryImpl.
| Method Detail |
|---|
public <T> T getComponent(Class<T> type)
getComponent in interface ComponentRegistryT - the type of the componenttype - the Class of the requested component
void addComponent(Object component)
component - the component to add to the registrypublic Iterator<Object> iterator()
iterator in interface Iterable<Object>
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||