KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > dna > tools > verifier > SimpleAccessor


1 /*
2  * Copyright (C) The Spice Group. All rights reserved.
3  *
4  * This software is published under the terms of the Spice
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.dna.tools.verifier;
9
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
23     implements MetaClassAccessor
24 {
25     public ClassDescriptor getClassDescriptor( final String JavaDoc classname,
26                                                final ClassLoader JavaDoc classLoader,
27                                                final MetaClassAccessor accessor )
28         throws MetaClassException
29     {
30         final Attribute[] attributes = new Attribute[]
31         {
32             new Attribute( "dna.component" ),
33         };
34         return new ClassDescriptor( classname,
35                                     attributes,
36                                     attributes,
37                                     FieldDescriptor.EMPTY_SET,
38                                     MethodDescriptor.EMPTY_SET );
39     }
40 }
41
Popular Tags