|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.component.Lookup
This class provides a singleton interface to the component subsystem. This class should be used by any client that needs a reference to a component
Copyright 2002 Sapient
Field Summary | |
private ComponentKeeper |
componentKeeper
Reference to the component keeper. |
private static Lookup |
INSTANCE
Single statically instantiated instance of lookup. |
Constructor Summary | |
private |
Lookup()
Private constructor to ensure singleton. |
Method Summary | |
Component |
fetchComponent(String logicalComponentName)
Fetches a reference to a component. |
ComponentKeeper |
getComponentKeeper()
Gets the ComponentKeeper for the system. |
static Lookup |
getInstance()
Static factory method for getting a reference to the singleton Lookup . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ComponentKeeper componentKeeper
private static final Lookup INSTANCE
Constructor Detail |
private Lookup()
Method Detail |
public Component fetchComponent(String logicalComponentName)
Fetches a reference to a component. Delegates to the system's
ComponentKeeper
. If the ComponentKeeper
has
not been created yet, it calls the BootStrapper
to get it.
logicalComponentName
- the name of the component
public ComponentKeeper getComponentKeeper()
ComponentKeeper
for the system.
ComponentKeeper
public static Lookup getInstance()
Static factory method for getting a reference to the singleton
Lookup
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |