JBoss Reflection 2.2.1.SP1

org.jboss.reflect.spi
Interface MutableTypeInfoFactory

All Superinterfaces:
TypeInfoFactory
All Known Implementing Classes:
JavassistAnnotationHelper, JavassistTypeInfoFactory, JavassistTypeInfoFactoryImpl

public interface MutableTypeInfoFactory
extends TypeInfoFactory

A MutableTypeInfoFactory

Version:
$Revision: 1.1 $
Author:
Stale W. Pedersen

Method Summary
 MutableClassInfo createNewMutableClass(String name)
          Creates a new MutableClass.
 MutableClassInfo createNewMutableClass(String name, ClassInfo superClass)
          Creates a new MutableClass.
 MutableClassInfo createNewMutableInterface(String name)
          Creates a new mutable interface.
 MutableClassInfo createNewMutableInterface(String name, ClassInfo superClass)
          Creates a new mutable interface.
 MutableClassInfo getMutable(String name, ClassLoader cl)
          Gets the information for a MutableClass.
 
Methods inherited from interface org.jboss.reflect.spi.TypeInfoFactory
getTypeInfo, getTypeInfo, getTypeInfo
 

Method Detail

createNewMutableClass

MutableClassInfo createNewMutableClass(String name)
Creates a new MutableClass.

Parameters:
name - the name of the class to be created
Returns:
the created class

createNewMutableClass

MutableClassInfo createNewMutableClass(String name,
                                       ClassInfo superClass)
Creates a new MutableClass.

Parameters:
name - the name of the class to be created
superClass - the super class of the class to be created
Returns:
the created class

createNewMutableInterface

MutableClassInfo createNewMutableInterface(String name)
Creates a new mutable interface.

Parameters:
name - the name of the interface to be created
Returns:
the created interface

createNewMutableInterface

MutableClassInfo createNewMutableInterface(String name,
                                           ClassInfo superClass)
Creates a new mutable interface.

Parameters:
name - the name of the interface to be created
superClass - the super type of the interface to be created
Returns:
the created interface

getMutable

MutableClassInfo getMutable(String name,
                            ClassLoader cl)
Gets the information for a MutableClass. Note that this will not put the MutableClass in any cache.

Parameters:
name - the name of the class to be retrieved
cl - the ClassLoader that should be used to retrieve the class. Note that, if cl is null, the default ClassLoader will be used.
Returns:
the MutableClassInfo representation of the queried class

JBoss Reflection 2.2.1.SP1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.