|
JAC project AOPSYS CEDRIC & LIP6 labs |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.util.Repository | +--org.objectweb.jac.util.WeakRepository | +--org.objectweb.jac.core.NameRepository
Provides a naming repository within a running JAC system.
All the JAC objects are seamlessly registered by
NamingAC
when they are instantiated.
NamingAC
Field Summary | |
protected static NameRepository |
nameRepository
Store the sole instance of name repository. |
Fields inherited from class org.objectweb.jac.util.Repository |
names, objects, repository |
Constructor Summary | |
NameRepository()
The default constructor will set the nameRepository field to the right value. |
Method Summary | |
static Repository |
get()
Get the sole instance of name repository. |
Object |
getObject(String logicalName)
Return a registered object for a given logical name. |
Methods inherited from class org.objectweb.jac.util.Repository |
dump, getName, getNames, getObjects, getPrintableString, isRegistered, register, unregister, unregisterObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static NameRepository nameRepository
Constructor Detail |
public NameRepository()
Method Detail |
public static Repository get()
public Object getObject(String logicalName)
Repository
Return null
if the name does not correspond to
any registered object or if logicalName
is null.
Reverse operation is getName(Object)
.
getObject
in class Repository
logicalName
- the key that allows to find the object
Repository.register(String,Object)
,
Repository.getName(Object)
|
Contact JAC development team: Renaud Pawlak Lionel Seinturier Laurent Martelli |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |