org.codehaus.metaclass.introspector
Interface MetaClassAccessor
- All Known Implementing Classes:
- CachingMetaClassAccessor, DefaultMetaClassAccessor, WrapperMetaClassAccessor
- public interface MetaClassAccessor
This is the interface used to access MetaClass
ClassDescriptors for a particular class. Note that
the Accessor is passed another MetaClassAccessor that
it can use to load other auxilliar classes such as super
classes or interfaces. However there is no protection
against circular references so MetaClassAccessor
implementations must guard against such circumstances.
- Version:
- $Revision: 1.4 $ $Date: 2003/11/27 08:09:53 $
- Author:
- Peter Donald
getClassDescriptor
public ClassDescriptor getClassDescriptor(java.lang.String classname,
java.lang.ClassLoader classLoader,
MetaClassAccessor accessor)
throws MetaClassException
- Return a ClassDescriptor for specified class.
- Parameters:
classname
- the classname to get ClassDescriptor forclassLoader
- the classLoader to useaccessor
- the accessor to use to load auxilliary classes
- Returns:
- the newly created ClassDescriptor
- Throws:
MetaClassException
- if unable to create ClassDescriptor
Copyright © 2003-2004 Codehaus. All Rights Reserved.