mcconnell 2003/09/05 22:39:09 Modified: merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl DefaultTypeRepository.java Resources.properties Log: Add an i18n message for a TypeNotFound exception. Revision Changes Path 1.2 +7 -3 avalon-sandbox/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/DefaultTypeRepository.java Index: DefaultTypeRepository.java =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/DefaultTypeRepository.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- DefaultTypeRepository.java 31 Aug 2003 14:30:39 -0000 1.1 +++ DefaultTypeRepository.java 6 Sep 2003 05:39:08 -0000 1.2 @@ -275,7 +275,9 @@ Type type = (Type) m_types.get( classname ); if( type == null ) { - throw new TypeUnknownException( classname ); + final String error = + REZ.getString( "type.repository.unknown-type", classname ); + throw new TypeUnknownException( error ); } return type; @@ -361,7 +363,9 @@ } else { - throw new TypeUnknownException( classname ); + final String error = + REZ.getString( "type.repository.unknown-type", classname ); + throw new TypeUnknownException( error ); } } } 1.2 +1 -0 avalon-sandbox/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/Resources.properties Index: Resources.properties =================================================================== RCS file: /home/cvs/avalon-sandbox/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/Resources.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Resources.properties 31 Aug 2003 14:30:40 -0000 1.1 +++ Resources.properties 6 Sep 2003 05:39:08 -0000 1.2 @@ -49,6 +49,7 @@ type.repository.bootstrap.error=bootstrap: {0} type.repository.count=type install count: {0} type.repository.addition=registered [type:{0}/{1}]. +type.repository.unknown-type=Unable to locate a component type descriptor for the component class [{0}] in the classloader. Please verify that the component classname is correct and that a component type descriptor is included in a jar file available within the container classloader. #Scanner
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]