@ServiceComponent private IInternalAccess access; @ServiceComponent private IExternalAccess extAcc; @ServiceComponent private IExecutionFeature exeFeat; @ServiceComponent private IPojoComponentFeature pojoFeat; @ServiceComponent private ProviderAgent pojo;
@ServiceComponent protected IInternalAccess agent; @ServiceComponent private IRequiredServicesFeature requiredServicesFeature;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected CalculateAgent agent;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected HelplineAgent agent;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected IBDIXAgentFeature agent;
@ServiceComponent protected IInternalAccess component;
/** * */ @Service public class AService implements IAService { @ServiceComponent protected IInternalAccess comp; @ServiceIdentifier protected IServiceIdentifier sid; /** The test string. */ protected long wait = (long)(Math.random()*1000); /** The invocation counter. */ protected int cnt; /** * Test method. */ public IFuture<String> test() { System.out.println("invoked service: "+sid.getProviderId()+" cnt="+(++cnt)+" wait="+wait); comp.waitForDelay(wait).get(); return new Future<String>(sid.toString()); } }
/** * */ @Service public class AService implements IAService { @ServiceComponent protected IInternalAccess comp; @ServiceIdentifier protected IServiceIdentifier sid; /** The test string. */ protected long wait = (long)(Math.random()*1000); /** The invocation counter. */ protected int cnt; /** * Test method. */ public IFuture<String> test() { System.out.println("invoked service: "+sid.getProviderId()+" cnt="+(++cnt)+" wait="+wait); comp.getComponentFeature(IExecutionFeature.class).waitForDelay(wait).get(); return new Future<String>(sid.toString()); } }
@ServiceComponent protected IInternalAccess comp;
public class ProviderAgent implements IExampleService @ServiceComponent protected IInternalAccess agent;
public class BAgent implements IBService @ServiceComponent protected IInternalAccess agent;
@ServiceComponent protected PojoInjectionAgent pojo;