avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon-sandbox/merlin/meta-spi/src/java/org/apache/avalon/meta/model Profile.java
Date Wed, 18 Jun 2003 11:24:41 GMT
mcconnell    2003/06/18 04:24:41

  Modified:    merlin/meta-spi/src/java/org/apache/avalon/meta/model
                        Profile.java
  Log:
  Improved action policy handling.
  
  Revision  Changes    Path
  1.7       +19 -1     avalon-sandbox/merlin/meta-spi/src/java/org/apache/avalon/meta/model/Profile.java
  
  Index: Profile.java
  ===================================================================
  RCS file: /home/cvs/avalon-sandbox/merlin/meta-spi/src/java/org/apache/avalon/meta/model/Profile.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Profile.java	12 Jun 2003 18:56:20 -0000	1.6
  +++ Profile.java	18 Jun 2003 11:24:41 -0000	1.7
  @@ -149,6 +149,7 @@
       public static final String PARAMETERS_KEY = "urn:meta:profile.parameters"; 
       public static final String CONFIGURATION_KEY = "urn:meta:profile.configuration"; 
       public static final String CONTEXT_KEY = "urn:meta:profile.context"; 
  +    public static final String ACTIVATION_KEY = "urn:meta:profile.activation"; 
   
       /**
        * The name of the component profile. This is an
  @@ -205,6 +206,7 @@
           setContext( context );
           setParameters( context );
           setConfiguration( context );
  +        setActivationPolicy( context );
       }
   
       //--------------------------------------------------------------------------
  @@ -343,6 +345,22 @@
           buffer.append( "\n  parameters: " + getParameters() );
           buffer.append( "\n\n" );
           return buffer.toString();
  +    }
  +
  +    private void setActivationPolicy( Context context )
  +    {
  +        try
  +        {
  +            Boolean value = (Boolean) context.get( ACTIVATION_KEY );
  +            if(( value != null ) && value.booleanValue() )
  +            {
  +                m_activation = true;
  +            }
  +        }
  +        catch( ContextException e )
  +        {
  +            // ignore
  +        }
       }
   
       public void setActivationPolicy( boolean value )
  
  
  

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


Mime
View raw message