public class DefaultDelegateFactory extends Object implements DelegateFactory
DelegateFactory)のデフォルト実装クラス。
本実装では、与えられた委譲対象クラスのインスタンスをClass.newInstance()により生成する。
DispatchHandler.setDelegateFactory(DelegateFactory)に本クラスを設定することで、
5u14までのDispatchHandlerと全く同じ動作となる。| Constructor and Description |
|---|
DefaultDelegateFactory() |
public Object create(Class<?> clazz) throws InstantiationException, IllegalAccessException
DelegateFactorycreate in interface DelegateFactoryclazz - ディスパッチ対象となるクラスInstantiationException - インスタンス生成に失敗した場合IllegalAccessException - クラスまたはコンストラクタにアクセスできない場合Copyright © 2020. All rights reserved.