cvs commit: spice/sandbox/metaclass/src/java/org/realityforge/metaclass/introspector MetaClassRegistry.java
Peter Donald <[email protected]>
| Newsgroups | gmane.comp.java.spice.cvs |
|---|---|
| Message-ID | <[email protected]> |
donaldp 03/10/27 22:14:17
Added: sandbox/metaclass/src/java/org/realityforge/metaclass/introspector
MetaClassRegistry.java
Log:
Add in initial cut at registry interface
Revision Changes Path
1.1 spice/sandbox/metaclass/src/java/org/realityforge/metaclass/introspector/MetaClassRegistry.java
Index: MetaClassRegistry.java
===================================================================
/*
* 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.realityforge.metaclass.introspector;
import org.realityforge.metaclass.model.ClassDescriptor;
/**
* Implementations of this class are responsible for loading and
* caching the {@link ClassDescriptor}
* objects for corresponding java classes.
*
* @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
* @version $Revision: 1.1 $ $Date: 2003/10/28 06:14:17 $
*/
public interface MetaClassRegistry
{
/**
* Return a ClassDescriptor for specified class.
*
* @param classname the classname to get ClassDescriptor for
* @param classLoader the classLoader to use
* @return the newly created ClassDescriptor
* @throws MetaClassException if unable to create ClassDescriptor
*/
ClassDescriptor getClassDescriptor( String classname,
ClassLoader classLoader )
throws MetaClassException;
/**
* Register a ClassDescriptor associated with specified classLoader.
*
* @param descriptor the descriptor
* @param classLoader the classloader
*/
void registerDescriptor( ClassDescriptor descriptor,
ClassLoader classLoader );
}
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/