Package com.sun.corba.ee.impl.resolver
Class LocalResolverImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.resolver.LocalResolverImpl
-
- All Implemented Interfaces:
LocalResolver,Resolver
public class LocalResolverImpl extends java.lang.Object implements LocalResolver
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.concurrent.locks.Locklock(package private) java.util.concurrent.ConcurrentHashMap<java.lang.String,org.glassfish.pfl.basic.func.NullaryFunction<Object>>nameToClosure
-
Constructor Summary
Constructors Constructor Description LocalResolverImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>list()Return the entire collection of names that are currently bound by this resolver.voidregister(java.lang.String name, org.glassfish.pfl.basic.func.NullaryFunction<Object> closure)Register the Closure with the given name.Objectresolve(java.lang.String name)Look up the name using this resolver and return the CORBA object reference bound to this name, if any.
-
-
-
Field Detail
-
nameToClosure
java.util.concurrent.ConcurrentHashMap<java.lang.String,org.glassfish.pfl.basic.func.NullaryFunction<Object>> nameToClosure
-
lock
final java.util.concurrent.locks.Lock lock
-
-
Method Detail
-
resolve
public Object resolve(java.lang.String name)
Description copied from interface:ResolverLook up the name using this resolver and return the CORBA object reference bound to this name, if any.
-
list
public java.util.Set<java.lang.String> list()
Description copied from interface:ResolverReturn the entire collection of names that are currently bound by this resolver. Resulting collection contains only strings for which resolve does not return null. Some resolvers may not support this method, in which case they return an empty set.
-
register
public void register(java.lang.String name, org.glassfish.pfl.basic.func.NullaryFunction<Object> closure)Description copied from interface:LocalResolverRegister the Closure with the given name.- Specified by:
registerin interfaceLocalResolver- Parameters:
name- name of Closure to registerclosure- supplier of CORBA object
-
-