Package org.analogweb.core
Class DefaultInvocation
- java.lang.Object
-
- org.analogweb.core.DefaultInvocation
-
- All Implemented Interfaces:
Invocation
,InvocationArguments
,PreparedInvocationArguments
public class DefaultInvocation extends Object implements Invocation, InvocationArguments
- Author:
- snowgoose
-
-
Constructor Summary
Constructors Constructor Description DefaultInvocation(Object invocationInstance, InvocationMetadata metadata, RequestContext context, ResponseContext responseContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>
asList()
InvocationArguments
getInvocationArguments()
Object
getInvocationInstance()
Get entry-point object instance.protected InvocationMetadata
getMetadata()
protected Map<Integer,Object>
getPreparedArgs()
protected RequestContext
getRequestContext()
protected ResponseContext
getResponseContext()
Object
invoke()
Invoke entry-point method.void
putInvocationArgument(int index, Object arg)
void
replace(Object newInvocationInstance)
-
-
-
Constructor Detail
-
DefaultInvocation
public DefaultInvocation(Object invocationInstance, InvocationMetadata metadata, RequestContext context, ResponseContext responseContext)
-
-
Method Detail
-
invoke
public Object invoke() throws InvocationFailureException
Description copied from interface:Invocation
Invoke entry-point method.- Specified by:
invoke
in interfaceInvocation
- Returns:
- result of method invocation.
- Throws:
InvocationFailureException
- See Also:
ApplicationProcessor
-
getInvocationInstance
public Object getInvocationInstance()
Description copied from interface:Invocation
Get entry-point object instance.- Specified by:
getInvocationInstance
in interfaceInvocation
- Returns:
- entry-point object instance.
-
putInvocationArgument
public void putInvocationArgument(int index, Object arg)
- Specified by:
putInvocationArgument
in interfaceInvocationArguments
- Parameters:
index
- index of argument.arg
- value of argument.
-
getMetadata
protected InvocationMetadata getMetadata()
-
getRequestContext
protected RequestContext getRequestContext()
-
getResponseContext
protected ResponseContext getResponseContext()
-
asList
public List<Object> asList()
- Specified by:
asList
in interfacePreparedInvocationArguments
-
replace
public void replace(Object newInvocationInstance)
- Specified by:
replace
in interfaceInvocationArguments
- Parameters:
newInvocationInstance
- instance of entry-point.
-
getInvocationArguments
public InvocationArguments getInvocationArguments()
Description copied from interface:Invocation
- Specified by:
getInvocationArguments
in interfaceInvocation
- Returns:
InvocationArguments
-
-