/*
* Copyright (C) The Spice Group. All rights reserved.
*
* This software is published under the terms of the Spice
* Software License version 1.1, a copy of which has been included
* with this distribution in the LICENSE.txt file.
*/
package org.codehaus.dna.tools.verifier;
import org.codehaus.metaclass.introspector.MetaClassAccessor;
import org.codehaus.metaclass.introspector.MetaClassException;
import org.codehaus.metaclass.model.Attribute;
import org.codehaus.metaclass.model.ClassDescriptor;
import org.codehaus.metaclass.model.FieldDescriptor;
import org.codehaus.metaclass.model.MethodDescriptor;
/**
*
* @author Peter Donald
* @version $Revision: 1.1 $ $Date: 2004/04/18 20:13:44 $
*/
class SimpleAccessor
implements MetaClassAccessor
{
public ClassDescriptor getClassDescriptor( final String classname,
final ClassLoader classLoader,
final MetaClassAccessor accessor )
throws MetaClassException
{
final Attribute[] attributes = new Attribute[]
{
new Attribute( "dna.component" ),
};
return new ClassDescriptor( classname,
attributes,
attributes,
FieldDescriptor.EMPTY_SET,
MethodDescriptor.EMPTY_SET );
}
}