org.apache.commons.clazz.bean
Class BeanClazzLoader
java.lang.Object
org.apache.commons.clazz.ClazzLoader
org.apache.commons.clazz.bean.BeanClazzLoader
- public class BeanClazzLoader
- extends org.apache.commons.clazz.ClazzLoader
- Version:
- $Id: BeanClazzLoader.java,v 1.6 2004/02/19 23:58:38 scolebourne Exp $
- Author:
- Dmitri Plotnikov
|
Constructor Summary |
BeanClazzLoader(org.apache.commons.clazz.ModelClazzLoader modelClazzLoader)
|
|
Method Summary |
org.apache.commons.clazz.Clazz |
defineClazz(String name,
Class clazzType,
Class instanceClass)
Defines a new Clazz with the supplied name. |
org.apache.commons.clazz.Clazz |
getClazzForName(String clazzName)
BeanClazzLoader does not cache clazzes, its parent, BeanGroupClazzLoader,
is responsible for caching |
String |
getClazzName(Object instance)
Returns the clazz name for the supplied instance. |
boolean |
isMember(Object instance)
Returns true iff this loader has or can construct a Clazz for the
supplied instance. |
| Methods inherited from class org.apache.commons.clazz.ClazzLoader |
enableLogging, getClazz, getModel, getModelClazzLoader, isLoggingEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanClazzLoader
public BeanClazzLoader(org.apache.commons.clazz.ModelClazzLoader modelClazzLoader)
isMember
public boolean isMember(Object instance)
- Description copied from class:
org.apache.commons.clazz.ClazzLoader
- Returns true iff this loader has or can construct a Clazz for the
supplied instance.
- See Also:
ClazzLoader.isMember(Object)
getClazzName
public String getClazzName(Object instance)
- Description copied from class:
org.apache.commons.clazz.ClazzLoader
- Returns the clazz name for the supplied instance. Returns
null if it cannot produce a clazz name for the instance.
getClazzForName
public org.apache.commons.clazz.Clazz getClazzForName(String clazzName)
- BeanClazzLoader does not cache clazzes, its parent, BeanGroupClazzLoader,
is responsible for caching
defineClazz
public org.apache.commons.clazz.Clazz defineClazz(String name,
Class clazzType,
Class instanceClass)
- Description copied from class:
org.apache.commons.clazz.ClazzLoader
- Defines a new Clazz with the supplied name. If it cannot define a
clazz of the supplied type or if it cannot define clazzes at all, returns
null.
- Parameters:
name - the name of the clazz, should be unique within the scope of
the top-level ClazzLoaderclazzType - the Class of the Clazz that this method needs to
produce.instanceClass - the Class of the instances the new Clazz will be
able to create using the newInstance() method.
- Returns:
- Clazz
- See Also:
ClazzLoader.defineClazz(String, Class, Class)
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.