jadex.application.runtime.impl
Class CompositeServiceInvocationInterceptor

java.lang.Object
  extended by jadex.application.runtime.impl.CompositeServiceInvocationInterceptor
All Implemented Interfaces:
IServiceInvocationInterceptor

public class CompositeServiceInvocationInterceptor
extends Object
implements IServiceInvocationInterceptor

The composite (or application) service invocation handler is responsible for service calls on composite services. These service calls are directed towards a service implementation of a contained component type. It has to lookup or search for a fitting


Field Summary
protected  IComponentIdentifier cid
          The static component id (if any).
protected  String componenttype
          The component type.
protected  Future creating
          A future of a component currently being created (if any).
protected  IApplicationExternalAccess ea
          The external access.
 
Constructor Summary
CompositeServiceInvocationInterceptor(IApplicationExternalAccess ea, String componenttype, Class servicetype, IComponentIdentifier cid)
          Create a new invocation handler.
 
Method Summary
static IInternalService createServiceProxy(Class servicetype, String componenttype, IApplicationExternalAccess ea, ClassLoader classloader, IComponentIdentifier cid)
          Create a new composite (application) service proxy.
 void execute(ServiceInvocationContext sic)
          Execute the command.
 String getComponentType()
          Get the componenttype.
 IApplicationExternalAccess getExternalAccess()
          Get the ea.
static MultiCollection getInterceptors()
          Get the standard interceptors for composite service proxies;
protected  void invokeServiceMethod(IInternalAccess ia, IComponentIdentifier cid, ServiceInvocationContext sic, Future ret)
          Invoke the service method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ea

protected IApplicationExternalAccess ea
The external access.


componenttype

protected String componenttype
The component type.


cid

protected IComponentIdentifier cid
The static component id (if any).


creating

protected Future creating
A future of a component currently being created (if any).

Constructor Detail

CompositeServiceInvocationInterceptor

public CompositeServiceInvocationInterceptor(IApplicationExternalAccess ea,
                                             String componenttype,
                                             Class servicetype,
                                             IComponentIdentifier cid)
Create a new invocation handler.

Method Detail

execute

public void execute(ServiceInvocationContext sic)
Execute the command.

Specified by:
execute in interface IServiceInvocationInterceptor
Parameters:
args - The argument(s) for the call.

invokeServiceMethod

protected void invokeServiceMethod(IInternalAccess ia,
                                   IComponentIdentifier cid,
                                   ServiceInvocationContext sic,
                                   Future ret)
Invoke the service method.


getExternalAccess

public IApplicationExternalAccess getExternalAccess()
Get the ea.

Returns:
the ea.

getComponentType

public String getComponentType()
Get the componenttype.

Returns:
the componenttype.

getInterceptors

public static MultiCollection getInterceptors()
Get the standard interceptors for composite service proxies;


createServiceProxy

public static IInternalService createServiceProxy(Class servicetype,
                                                  String componenttype,
                                                  IApplicationExternalAccess ea,
                                                  ClassLoader classloader,
                                                  IComponentIdentifier cid)
Create a new composite (application) service proxy.



Copyright © 2010. All Rights Reserved.