proyal      2002/12/03 19:00:28

  Modified:    fortress/src/java/org/apache/excalibur/fortress/lookup
                        FortressServiceManager.java
  Log:
  Patch from Christopher Kohlhaas <[EMAIL PROTECTED]>
  
  The lookup-method consulted the parent ServiceManager if the Service was not
  found while the hasService didn't. I just added a call to
  m_parent.hasService
  
  Revision  Changes    Path
  1.26      +9 -2      
jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/lookup/FortressServiceManager.java
  
  Index: FortressServiceManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/fortress/src/java/org/apache/excalibur/fortress/lookup/FortressServiceManager.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- FortressServiceManager.java       9 Nov 2002 23:38:39 -0000       1.25
  +++ FortressServiceManager.java       4 Dec 2002 03:00:28 -0000       1.26
  @@ -141,7 +141,14 @@
   
       public boolean hasService( final String key )
       {
  -        return m_container.has( key, null );
  +        if( m_container.has( key, null ) )
  +        {
  +            return true;
  +        }
  +        else
  +        {
  +            return null != m_parent ? m_parent.hasService( key ) : false;
  +        }
       }
   
       public void release( final Object component )
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to