public class DefaultInvocation extends Object implements Invocation, InvocationArguments
Invocation
のデフォルトの実装です。Constructor and Description |
---|
DefaultInvocation(Object invocationInstance,
InvocationMetadata metadata,
RequestContext context,
ResponseContext responseContext) |
Modifier and Type | Method and Description |
---|---|
List<Object> |
asList()
実行時に必要なパラメータのリストのビューを取得します。
|
InvocationArguments |
getInvocationArguments()
エントリポイントの実行時に指定される
InvocationArguments
を取得します。 |
Object |
getInvocationInstance()
エントリポイントとして実行されるインスタンスを返します。
|
protected InvocationMetadata |
getMetadata() |
protected Map<Integer,Object> |
getPreparedArgs()
エンドポイントとなるメソッドに適用される引数を取得します。
キーは引数の索引であり、値は引数となるインスタンスです。 |
protected RequestContext |
getRequestContext() |
protected ResponseContext |
getResponseContext() |
Object |
invoke()
リクエストされたエンドポイントとなるメソッドを実行します。
ApplicationProcessor により評価された内容を保持した状態で実行されます。 |
void |
putInvocationArgument(int index,
Object arg)
エンドポイントとなるメソッドの引数に適用される値を設定します。
|
void |
replace(Object newInvocationInstance)
エンドポイントとなるインスタンスを任意のオブジェクトに置き換えます。
|
public DefaultInvocation(Object invocationInstance, InvocationMetadata metadata, RequestContext context, ResponseContext responseContext)
public Object invoke() throws InvocationFailureException
Invocation
ApplicationProcessor
により評価された内容を保持した状態で実行されます。invoke
in interface Invocation
InvocationFailureException
ApplicationProcessor
public Object getInvocationInstance()
Invocation
getInvocationInstance
in interface Invocation
protected Map<Integer,Object> getPreparedArgs()
Map
public void putInvocationArgument(int index, Object arg)
InvocationArguments
putInvocationArgument
in interface InvocationArguments
index
- メソッドの引数に一致する(0から始まる)索引arg
- エンドポイントとなるメソッドの引数として適用する値protected InvocationMetadata getMetadata()
protected RequestContext getRequestContext()
protected ResponseContext getResponseContext()
public List<Object> asList()
PreparedInvocationArguments
asList
in interface PreparedInvocationArguments
public void replace(Object newInvocationInstance)
InvocationArguments
replace
in interface InvocationArguments
newInvocationInstance
- エンドポイントとなるメソッドを持つインスタンスpublic InvocationArguments getInvocationArguments()
Invocation
InvocationArguments
を取得します。getInvocationArguments
in interface Invocation
InvocationArguments
Copyright © 2014 Analog Web Framework Development Team. All Rights Reserved.