org.jboss.weld.util.reflection.instantiation
Interface Instantiator

All Known Implementing Classes:
ReflectionFactoryInstantiator, UnsafeInstantiator

public interface Instantiator

An interface for instantiating classes using non-portable reflection methods

Author:
Nicklas Karlsson, Ales Justin

Method Summary
<T> T
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
 

Method Detail

isAvailable

boolean isAvailable()
Used for checking if this particular instantiation method is available in the environment

Returns:
true if available, false otherwise

instantiate

<T> T instantiate(Class<T> clazz)
Create a new instance of a class

Type Parameters:
T - The type of the class
Parameters:
clazz - The class
Returns:
The created instance


Copyright © 2013 Seam Framework. All Rights Reserved.