public class GoalDelegationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The agent.
|
protected java.util.Map<java.lang.String,java.lang.String> |
goalnames
The goal name.
|
protected java.lang.Class<?> |
type
The type.
|
Constructor and Description |
---|
GoalDelegationHandler(jadex.bridge.IInternalAccess agent,
java.util.Map<java.lang.String,java.lang.String> goalnames,
java.lang.Class<?> type)
Create a new service wrapper invocation handler.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
createServiceImplementation(jadex.bridge.IInternalAccess agent,
java.lang.Class<?> type,
java.lang.String[] methodnames,
java.lang.String[] goalnames)
Create a wrapper service implementation based on a published goal.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Called when a wrapper method is invoked.
|
protected jadex.bridge.IInternalAccess agent
protected java.util.Map<java.lang.String,java.lang.String> goalnames
protected java.lang.Class<?> type
public GoalDelegationHandler(jadex.bridge.IInternalAccess agent, java.util.Map<java.lang.String,java.lang.String> goalnames, java.lang.Class<?> type)
agent
- The internal access of the agent.public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public static java.lang.Object createServiceImplementation(jadex.bridge.IInternalAccess agent, java.lang.Class<?> type, java.lang.String[] methodnames, java.lang.String[] goalnames)