org.jboss.metatype.api.types
Class MetaTypeFactory

java.lang.Object
  extended by org.jboss.metatype.api.types.MetaTypeFactory
Direct Known Subclasses:
DefaultMetaTypeFactory

public abstract class MetaTypeFactory
extends Object

MetaTypeFactory.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
MetaTypeFactory()
           
 
Method Summary
static MetaTypeFactory getInstance()
          Get the metatype factory
 MetaType resolve(String className, ClassLoader classLoader)
          Resolve a metatype
abstract  MetaType resolve(Type type)
          Resolve a metatype
abstract  MetaType resolve(org.jboss.reflect.spi.TypeInfo type)
          Resolve a metatype
abstract  void setBuilder(Class<?> clazz, MetaTypeBuilder builder)
          Set a meta type builder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaTypeFactory

public MetaTypeFactory()
Method Detail

getInstance

public static final MetaTypeFactory getInstance()
Get the metatype factory

Returns:
the instance

resolve

public abstract MetaType resolve(Type type)
Resolve a metatype

Parameters:
type - the type
Returns:
the metatype
Throws:
IllegalArgumentException - for a null type

resolve

public abstract MetaType resolve(org.jboss.reflect.spi.TypeInfo type)
Resolve a metatype

Parameters:
type - the type
Returns:
the metatype
Throws:
IllegalArgumentException - for a null type

resolve

public MetaType resolve(String className,
                        ClassLoader classLoader)
                 throws ClassNotFoundException
Resolve a metatype

Parameters:
className - the class name
classLoader - the classloader
Returns:
the metatype
Throws:
IllegalArgumentException - for a null className or classloader
ClassNotFoundException - when the class is not found

setBuilder

public abstract void setBuilder(Class<?> clazz,
                                MetaTypeBuilder builder)
Set a meta type builder

Parameters:
clazz - the class
builder - the builder


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