org.jboss.weld.util.reflection.instantiation
Class ReflectionFactoryInstantiator
java.lang.Object
org.jboss.weld.util.reflection.instantiation.ReflectionFactoryInstantiator
- All Implemented Interfaces:
- Instantiator
public class ReflectionFactoryInstantiator
- extends Object
- implements Instantiator
A instantiator for sun.reflect.ReflectionFactory
- Author:
- Nicklas Karlsson, Ales Justin
Method Summary |
|
instantiate(Class<T> clazz)
Create a new instance of a class |
boolean |
isAvailable()
Used for checking if this particular instantiation method is available in the environment |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionFactoryInstantiator
public ReflectionFactoryInstantiator()
isAvailable
public boolean isAvailable()
- Description copied from interface:
Instantiator
- Used for checking if this particular instantiation method is available in the environment
- Specified by:
isAvailable
in interface Instantiator
- Returns:
- true if available, false otherwise
instantiate
public <T> T instantiate(Class<T> clazz)
- Description copied from interface:
Instantiator
- Create a new instance of a class
- Specified by:
instantiate
in interface Instantiator
- Type Parameters:
T
- The type of the class- Parameters:
clazz
- The class
- Returns:
- The created instance
Copyright © 2013 Seam Framework. All Rights Reserved.