站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

StdInstantiatorStrategy (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.objenesis.strategy
Class StdInstantiatorStrategy

java.lang.Object
  extended by org.objenesis.strategy.BaseInstantiatorStrategy
      extended by org.objenesis.strategy.StdInstantiatorStrategy
All Implemented Interfaces:
InstantiatorStrategy

public class StdInstantiatorStrategy
extends BaseInstantiatorStrategy

Guess the best instantiator for a given class. The instantiator will instantiate the class without calling any constructor. Currently, the selection doesn't depend on the class. It relies on the

However, instantiators are stateful and so dedicated to their class.

See Also:
ObjectInstantiator

Field Summary
 
Fields inherited from class org.objenesis.strategy.BaseInstantiatorStrategy
GNU, JROCKIT, JVM_NAME, SUN, VENDOR, VENDOR_VERSION, VM_INFO, VM_VERSION
 
Constructor Summary
StdInstantiatorStrategy()
           
 
Method Summary
 ObjectInstantiator newInstantiatorOf(Class type)
          Return an ObjectInstantiator allowing to create instance without any constructor being called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdInstantiatorStrategy

public StdInstantiatorStrategy()
Method Detail

newInstantiatorOf

public ObjectInstantiator newInstantiatorOf(Class type)
Return an ObjectInstantiator allowing to create instance without any constructor being called.

Parameters:
type - Class to instantiate
Returns:
The ObjectInstantiator for the class


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.