Vinay Chandran wrote:
Steve, Here's the patch as an attachment. Regards, Vinay
Thanks - patch is applied. Have also update corresponding classes (Scanner) in the composition package.
Cheers, Steve.
--- Stephen McConnell <[EMAIL PROTECTED]> wrote:
Vinay wrote:=== message truncated ===
Patch toorg.apache.avalon.assembly.engine.impl.DefaultTypeRepository
to enable verification of presence of lifecycle extension interface(s) declared within theextension
descriptor.Vinay:
Can you re-send the patch as an attachement ?
Steve.
=====================================================Regards, Vinay
64a65to
import
org.apache.avalon.meta.info.ExtensionDescriptor; 194c195 < } ---
}198c199
< "Unexpected error while attempting
tobuild a type from the clas sname: " ---
"Unexpected error while attempting
)
build a type from the clas sname: " 378a380,381
//verify existence of lifecyle extensionclasses
Class[]
lifecycleExtensions=getExtensionClasses(type); 403c406 < list.add( getServiceClass( services[i] ) ); ---
list.add( getServiceClass( service
the
); 455a459,496
/**
* Return the set of lifecycle extension
classes provided by the given t ype
* @param type the component type
* @return an array of classes represnting
type
lifecycle extension inter faces provided by the type
*/
private Class[] getExtensionClasses( Type
extensions.length;)
{type.getExtensions();
ArrayList list = new ArrayList();
ExtensionDescriptor[] extensions =
for( int i = 0; i <
extensioni++ )
{
ExtensionDescriptor
= extensions[i];
list.add( getExtensionClass(extension ) );
}Class[0] );
return (Class[]) list.toArray( new
}provided by the type.
/**
* Returns the lifecycle extension class
* @param extension the lifecycle extensiontype
* @return the class implementing theextension type
* @exception TypeRuntimeException if aclassloader error occurs
*/
private Class getExtensionClass(
ExtensionDescriptor extension ) throws TypeRuntimeException
{
final String classname =
extension.getReference().getClassname() ;
trym_classloader.loadClass( classname );
{
return
} catch( Throwable e )
{
final String error =
"Could not
load lifecycle extension clas s of type: "
__________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Stephen J. McConnell mailto:[EMAIL PROTECTED] http://www.osm.net
Sent via James running under Merlin as an NT service. http://avalon.apache.org/sandbox/merlin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
