proyal      02/05/22 13:21:44

  Modified:    component/src/java/org/apache/avalon/excalibur/component
                        Tag: ECM_LOGENABLED DefaultRoleManager.java
  Log:
   * If a class name for a hint is not found in our list of hints atttempt
     to consult our parent role manager
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +11 -2     
jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/DefaultRoleManager.java
  
  Index: DefaultRoleManager.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/DefaultRoleManager.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- DefaultRoleManager.java   18 May 2002 06:14:35 -0000      1.1.2.2
  +++ DefaultRoleManager.java   22 May 2002 20:21:44 -0000      1.1.2.3
  @@ -21,7 +21,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Ricardo Rocha</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo Pati</a>
  - * @version CVS $Revision: 1.1.2.2 $ $Date: 2002/05/18 06:14:35 $
  + * @version CVS $Revision: 1.1.2.3 $ $Date: 2002/05/22 20:21:44 $
    * @since 4.0
    */
   public class DefaultRoleManager
  @@ -147,7 +147,16 @@
               getLogger().debug( "looking up classname for hint " + shorthand 
);
           }
   
  -        return (String)hintMap.get( shorthand );
  +        final String s = ( String ) hintMap.get( shorthand );
  +
  +        if( s == null && null != m_parent )
  +        {
  +            return m_parent.getDefaultClassNameForHint( role, shorthand );
  +        }
  +        else
  +        {
  +            return s;
  +        }
       }
   
       /**
  
  
  

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

Reply via email to