|
|||||||||||
| 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. |
static Collection |
getObjects(Collection exprs)
|
static Collection |
getObjects(String expr)
Gets the set of JAC objects whose names match an expression. |
static Collection |
getObjects(String[] exprs)
|
| 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)
RepositoryReturn null if the name does not correspond to
any registered object or if logicalName is null.
Reverse operation is getName(Object).
getObject in class RepositorylogicalName - the key that allows to find the object
Repository.register(String,Object),
Repository.getName(Object)public static Collection getObjects(String expr)
expr - a regular expression
public static Collection getObjects(String[] exprs)
public static Collection getObjects(Collection exprs)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||