avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/container/src/java/org/apache/excalibur/container/legacy LegacyComponentManager.java
Date Fri, 08 Nov 2002 02:44:42 GMT
donaldp     2002/11/07 18:44:42

  Modified:    container/src/java/org/apache/excalibur/container/legacy
                        LegacyComponentManager.java
  Log:
  Remove unused ctor
  
  Revision  Changes    Path
  1.10      +6 -20     jakarta-avalon-excalibur/container/src/java/org/apache/excalibur/container/legacy/LegacyComponentManager.java
  
  Index: LegacyComponentManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/container/src/java/org/apache/excalibur/container/legacy/LegacyComponentManager.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- LegacyComponentManager.java	7 Nov 2002 05:18:31 -0000	1.9
  +++ LegacyComponentManager.java	8 Nov 2002 02:44:42 -0000	1.10
  @@ -90,7 +90,8 @@
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    */
  -public final class LegacyComponentManager implements ComponentManager
  +public final class LegacyComponentManager
  +    implements ComponentManager
   {
       private final ComponentProxyGenerator m_proxyGen;
       private final ServiceManager m_manager;
  @@ -103,27 +104,12 @@
        */
       public LegacyComponentManager( final ServiceManager manager )
       {
  -        this( new ComponentProxyGenerator(), manager );
  -    }
  -
  -    /**
  -     * Initialize the LegacyComponentManager with the ServiceManager
  -     * being wrapped and the specified ComponentProxyGenerator.
  -     */
  -    public LegacyComponentManager( final ComponentProxyGenerator generator,
  -                                   final ServiceManager manager )
  -    {
  -        if( null == generator )
  -        {
  -            throw new NullPointerException( "generator" );
  -        }
  -
           if( null == manager )
           {
               throw new NullPointerException( "manager" );
           }
   
  -        m_proxyGen = generator;
  +        m_proxyGen = new ComponentProxyGenerator();
           m_manager = manager;
           m_map = new HashMap();
       }
  @@ -131,7 +117,7 @@
       /**
        * Checks to see if we have a component by a role name
        */
  -    public boolean hasComponent( String role )
  +    public boolean hasComponent( final String role )
       {
           return m_manager.hasService( role );
       }
  @@ -176,7 +162,7 @@
                   component = m_proxyGen.getProxy( interfaceName, service );
               }
           }
  -        catch( ComponentException ce )
  +        catch( final ComponentException ce )
           {
               throw ce;
           }
  @@ -196,7 +182,7 @@
       /**
        * Release a used component
        */
  -    public void release( Component component )
  +    public void release( final Component component )
       {
           Object service = null;
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message