public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } }));
public void resultAvailable(ICService result) { testService(testcases, result) .addResultListener(new DefaultResultListener<Void>() { public void resultAvailable(Void result) { // Test with provided service proxy. SServiceProvider.getService(agent, ICService.class) .addResultListener(new DefaultResultListener<ICService>() { public void resultAvailable(ICService result) { testService(testcases, result) .addResultListener(new DefaultResultListener<Void>() { public void resultAvailable(Void result) { agent.getComponentFeature(IArgumentsResultsFeature.class).getResults().put("testresults", new Testcase(testcases.size(), (TestReport[])testcases.toArray(new TestReport[testcases.size()]))); // killAgent(); ret.setResult(null); } }); } }); } }); } });
.addResultListener(new DefaultResultListener<IExternalAccess>() .addResultListener(new DefaultResultListener<IComponentManagementService>() .addResultListener(new DefaultResultListener<IComponentManagementService>() .addResultListener(new DefaultResultListener<IComponentIdentifier>() .addResultListener(new DefaultResultListener<IComponentIdentifier>() lcms.createComponent("user", "jadex.micro.testcases.semiautomatic.remoteservice.UserAgent.class", null, new DefaultResultListener<Collection<Tuple2<String, Object>>>()
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } }));
public void resultAvailable(final IComponentManagementService cms) { cms.getComponentDescriptions().addResultListener( new DefaultResultListener<IComponentDescription[]>() { public void resultAvailable(IComponentDescription[] descs) { for(int i=0; i<descs.length; i++) { System.out.println("Found: "+descs[i]); } } }); } });
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) { super.exceptionOccurred(exception); } } });
public void resultAvailable(Object result) { IAService ser = (IAService)result; ser.test().addResultListener(new DefaultResultListener<Void>() { public void resultAvailable(Void result) { TestReport tr = new TestReport("#2", "Required service test."); if(reqinter.getCnt()==1) { tr.setSucceeded(true); } else { tr.setReason("Wrong interceptor count: "+reqinter.getCnt()); } testresults.add(tr); ret.setResult(null); } }); } });
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } });
public void resultAvailable(IComponentManagementService result) { final IComponentManagementService cms = (IComponentManagementService)result; cms.getExternalAccess(cid).addResultListener(new DefaultResultListener<IExternalAccess>() { public void resultAvailable(final IExternalAccess exta) { jcc.getClassLoader(exta.getModel().getResourceIdentifier()) .addResultListener(new SwingDefaultResultListener<ClassLoader>() { public void customResultAvailable(ClassLoader cl) { final Object clid = exta.getModel().getProperty(IAbstractViewerPanel.PROPERTY_VIEWERCLASS, cl); viewables.put(cid, clid==null? Boolean.FALSE: Boolean.TRUE); // System.out.println("isVis first res: "+viewables.get(cid)); node.refresh(false); } }); } public void exceptionOccurred(Exception exception) { // Happens e.g. when remote classes not locally available. // exception.printStackTrace(); } }); } });
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) { super.exceptionOccurred(exception); } } }));
.createResultListener(new DefaultResultListener<List<IResourceIdentifier>>() agent.getComponentFeature(IExecutionFeature.class).createResultListener(new DefaultResultListener<IExternalAccess[]>()
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) { super.exceptionOccurred(exception); } } });
rs.getChatters().addResultListener(new DefaultResultListener<Map<String, IComponentIdentifier>>() .addResultListener(new DefaultResultListener<IChatService>()
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } });
SServiceProvider.getService(exta, IComponentManagementService.class, RequiredServiceInfo.SCOPE_PLATFORM).addResultListener(new DefaultResultListener()
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) { super.exceptionOccurred(exception); } } });
public void resultAvailable(IAwarenessManagementService ms) { ms.addAwarenessInfo(info).addResultListener(new DefaultResultListener<Boolean>(getMicroAgent().getLogger()) { public void resultAvailable(Boolean result) { // nothing to do } public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } }); }
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } });
public void resultAvailable(IAwarenessManagementService ms) { ms.addAwarenessInfo(info).addResultListener(new DefaultResultListener<Boolean>(getMicroAgent().getLogger()) { public void resultAvailable(Boolean result) { // nothing to do } public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } }); }
public void exceptionOccurred(Exception exception) { if(!(exception instanceof ComponentTerminatedException)) super.exceptionOccurred(exception); } });