geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacek Laskowski <jacek.laskow...@hp.com>
Subject Re: cvs commit: incubator-geronimo/modules/core/src/test/org/apache/geronimo/naming/ger GerContextTest.java GerRootContextTest.java
Date Wed, 14 Jan 2004 08:52:18 GMT
djencks@apache.org wrote:
> djencks     2004/01/14 00:28:33
> 
>   Modified:    modules/core/src/java/org/apache/geronimo/naming/java
>                         ReadOnlyContext.java
>   Added:       modules/core/src/java/org/apache/geronimo/naming/ger
>                         GerContext.java GerContextManager.java
>                         GerRootContext.java gerURLContextFactory.java
>                modules/core/src/test/org/apache/geronimo/naming/ger
>                         GerContextTest.java GerRootContextTest.java
>   Log:
>   Global in-vm non-read only jndi context with nonstandard bind/unbind methods (They
create/delete subcontexts as needed)
>   
>   Revision  Changes    Path
>   1.1                  incubator-geronimo/modules/core/src/java/org/apache/geronimo/naming/ger/GerContext.java
[...]
>   public class GerContext extends ReadOnlyContext {
[...]
>       public synchronized Object lookup(String name) throws NamingException {
>           return super.lookup(name);
>       }
>   
>       public Object lookup(Name name) throws NamingException {
>           return super.lookup(name);
>       }
>   
>       public synchronized Object lookupLink(String name) throws NamingException {
>           return super.lookupLink(name);
>       }
>   
>       public synchronized Name composeName(Name name, Name prefix) throws NamingException
{
>           return super.composeName(name, prefix);
>       }
>   
>       public synchronized String composeName(String name, String prefix) throws NamingException
{
>           return super.composeName(name, prefix);
>       }
>   
>       public synchronized NamingEnumeration list(String name) throws NamingException
{
>           return super.list(name);
>       }
>   
>       public synchronized NamingEnumeration listBindings(String name) throws NamingException
{
>           return super.listBindings(name);
>       }
>   
>       public synchronized Object lookupLink(Name name) throws NamingException {
>           return super.lookupLink(name);
>       }
>   
>       public synchronized NamingEnumeration list(Name name) throws NamingException {
>           return super.list(name);
>       }
>   
>       public synchronized NamingEnumeration listBindings(Name name) throws NamingException
{
>           return super.listBindings(name);
>       }

I'm a little confused with the change. Why are the methods if they do 
nothing but pass a request along to its non-abstract superclass 
(ReadOnlyContext class)?

Jacek


Mime
View raw message