Package com.sun.corba.ee.impl.resolver
Class FileResolverImpl
- java.lang.Object
-
- com.sun.corba.ee.impl.resolver.FileResolverImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Filefileprivate longfileModifiedprivate ORBorbprivate java.util.PropertiessavedProps
-
Constructor Summary
Constructors Constructor Description FileResolverImpl(ORB orb, java.io.File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheck()Checks the lastModified() timestamp of the file and optionally re-reads the Properties object from the file if newer.java.util.Set<java.lang.String>list()Return the entire collection of names that are currently bound by this resolver.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
-
orb
private ORB orb
-
file
private java.io.File file
-
savedProps
private java.util.Properties savedProps
-
fileModified
private long fileModified
-
-
Constructor Detail
-
FileResolverImpl
public FileResolverImpl(ORB orb, java.io.File file)
-
-
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.
-
check
private void check()
Checks the lastModified() timestamp of the file and optionally re-reads the Properties object from the file if newer.
-
-