cziegeler    2004/04/15 05:51:30

  Modified:    fortress/container-impl/src/java/org/apache/avalon/fortress/impl
                        DefaultECMContainer.java
  Log:
  Make default proxy type overwritable
  
  Revision  Changes    Path
  1.7       +9 -1      
avalon-excalibur/fortress/container-impl/src/java/org/apache/avalon/fortress/impl/DefaultECMContainer.java
  
  Index: DefaultECMContainer.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-excalibur/fortress/container-impl/src/java/org/apache/avalon/fortress/impl/DefaultECMContainer.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DefaultECMContainer.java  5 Apr 2004 12:30:33 -0000       1.6
  +++ DefaultECMContainer.java  15 Apr 2004 12:51:30 -0000      1.7
  @@ -128,7 +128,7 @@
        */
       public void configure( Configuration conf ) 
       throws ConfigurationException {
  -        this.interpretProxy( conf.getAttribute("proxy-type", "none") );
  +        this.interpretProxy( conf.getAttribute("proxy-type", 
this.getDefaultProxyType()) );
   
           final Configuration[] elements = conf.getChildren();
           for ( int i = 0; i < elements.length; i++ )
  @@ -423,4 +423,12 @@
           }
       }
           
  +    /**
  +     * Return the default proxy type.
  +     * This method can be overwritten in subclasses to provide a different
  +     * default proxy type.
  +     */
  +    protected String getDefaultProxyType() {
  +        return "none";
  +    }
   }
  
  
  

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

Reply via email to