@Instantiator(value=STANDARD) public class MagicInstantiator<T> extends java.lang.Object implements ObjectInstantiator<T>
MagicAccessorImpl
which prevents
its children to be verified by the class loader构造器和说明 |
---|
MagicInstantiator(java.lang.Class<T> type) |
限定符和类型 | 方法和说明 |
---|---|
ObjectInstantiator<T> |
getInstantiator()
Get the underlying instantiator.
|
T |
newInstance()
Returns a new instance of an object.
|
public MagicInstantiator(java.lang.Class<T> type)
public ObjectInstantiator<T> getInstantiator()
MagicInstantiator
is a wrapper around another object
which implements ObjectInstantiator
interface.
This method exposes that instantiator.public T newInstance()
ObjectInstantiator
newInstance
在接口中 ObjectInstantiator<T>