public <E> E createStub(final SPFPerson target, Class<E> serviceInterface, ClassLoader classLoader) {
    """
	Creates an invocation stub to send service invocation requests to a
	target {@link SPFPerson} performing method calls. The stub is created
	from a provided service interface, which must be annotated with
	{@link ServiceInterface} describing the service. The method returns an
	object implementing the aforementioned interface that can be used to
	perform method invocation.
	
	@param target
	- the person who the service invocation requests will be
	dispatched to.
	@param serviceInterface
	- the interface of the service.
	@param classLoader
	- the ClassLoader to load classes.
	@return an invocation stub to perform method calls.
    """
		return InvocationStub.from(serviceInterface, classLoader, new InvocationStub.Target() {

			@Override
			public void prepareArguments(Object[] arguments) throws ServiceInvocationException {
				mExecutionInterface.injectActivities(target.getIdentifier(), arguments);
			}

			@Override
			public InvocationResponse executeService(InvocationRequest request) throws ServiceInvocationException {
				return mExecutionInterface.executeService(target.getIdentifier(), request);
			}

		});
	}
public <E> E createStub(final SPFPerson target, Class<E> serviceInterface, ClassLoader classLoader) {
		return InvocationStub.from(serviceInterface, classLoader, new InvocationStub.Target() {

			@Override
			public void prepareArguments(Object[] arguments) throws ServiceInvocationException {
				mExecutionInterface.injectActivities(target.getIdentifier(), arguments);
			}

			@Override
			public InvocationResponse executeService(InvocationRequest request) throws ServiceInvocationException {
				return mExecutionInterface.executeService(target.getIdentifier(), request);
			}

		});
	}
public < E > E createStub ( final SPFPerson target , Class < E > serviceInterface , ClassLoader classLoader ) { return InvocationStub . from ( serviceInterface , classLoader , new InvocationStub . Target ( ) { @ Override public void prepareArguments ( Object [ ] arguments ) throws ServiceInvocationException { mExecutionInterface . injectActivities ( target . getIdentifier ( ) , arguments ) ; } @ Override public InvocationResponse executeService ( InvocationRequest request ) throws ServiceInvocationException { return mExecutionInterface . executeService ( target . getIdentifier ( ) , request ) ; } } ) ; }
Creates an invocation stub to send service invocation requests to a
target {@link SPFPerson} performing method calls. The stub is created
from a provided service interface, which must be annotated with
{@link ServiceInterface} describing the service. The method returns an
object implementing the aforementioned interface that can be used to
perform method invocation.

@param target
- the person who the service invocation requests will be
dispatched to.
@param serviceInterface
- the interface of the service.
@param classLoader
- the ClassLoader to load classes.
@return an invocation stub to perform method calls.
Creates an invocation stub to send service invocation requests to a target { @link SPFPerson } performing method calls . The stub is created from a provided service interface which must be annotated with { @link ServiceInterface } describing the service . The method returns an object implementing the aforementioned interface that can be used to perform method invocation .