01: /*
02: * Copyright (C) The Spice Group. All rights reserved.
03: *
04: * This software is published under the terms of the Spice
05: * Software License version 1.1, a copy of which has been included
06: * with this distribution in the LICENSE.txt file.
07: */
08: package org.codehaus.dna.tools.verifier;
09:
10: import org.codehaus.metaclass.introspector.MetaClassAccessor;
11: import org.codehaus.metaclass.introspector.MetaClassException;
12: import org.codehaus.metaclass.model.Attribute;
13: import org.codehaus.metaclass.model.ClassDescriptor;
14: import org.codehaus.metaclass.model.FieldDescriptor;
15: import org.codehaus.metaclass.model.MethodDescriptor;
16:
17: /**
18: *
19: * @author Peter Donald
20: * @version $Revision: 1.1 $ $Date: 2004/04/18 20:13:44 $
21: */
22: class SimpleAccessor implements MetaClassAccessor {
23: public ClassDescriptor getClassDescriptor(final String classname,
24: final ClassLoader classLoader,
25: final MetaClassAccessor accessor) throws MetaClassException {
26: final Attribute[] attributes = new Attribute[] { new Attribute(
27: "dna.component"), };
28: return new ClassDescriptor(classname, attributes, attributes,
29: FieldDescriptor.EMPTY_SET, MethodDescriptor.EMPTY_SET);
30: }
31: }
|