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/containerkit/src/java/org/apache/excalibur/containerkit/verifier MetaDataVerifier.java
Date Sun, 23 Jun 2002 07:25:22 GMT
donaldp     2002/06/23 00:25:22

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/verifier
                        MetaDataVerifier.java
  Log:
  Allow services that are Composable/Serviceable to have 0 dependencies. This is to support
adapting objects easily.
  
  Revision  Changes    Path
  1.2       +5 -14     jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/verifier/MetaDataVerifier.java
  
  Index: MetaDataVerifier.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/verifier/MetaDataVerifier.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MetaDataVerifier.java	18 Jun 2002 07:38:47 -0000	1.1
  +++ MetaDataVerifier.java	23 Jun 2002 07:25:22 -0000	1.2
  @@ -145,19 +145,10 @@
           throws VerifyException
       {
           final int count = component.getDependencies().length;
  -        if( Composable.class.isAssignableFrom( clazz ) ||
  -            Serviceable.class.isAssignableFrom( clazz ) )
  -        {
  -            if( 0 == count )
  -            {
  -                final String message =
  -                    REZ.getString( "metadata.nodeclare-deps.error",
  -                                   component.getName(),
  -                                   component.getClassname() );
  -                throw new VerifyException( message );
  -            }
  -        }
  -        else
  +        final boolean aquiresServices =
  +            Composable.class.isAssignableFrom( clazz ) ||
  +            Serviceable.class.isAssignableFrom( clazz );
  +        if( !aquiresServices )
           {
               if( 0 != count )
               {
  
  
  

--
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