/** * Test if agent is a buyer. */ public static boolean isBuyer(IExternalAccess agent) { return agent.getModel().getName().indexOf("Buyer")!=-1; } }
/** * Test if agent is a buyer. */ public static boolean isBuyer(IExternalAccess agent) { return agent.getModel().getName().indexOf("Buyer")!=-1; } }
public void customResultAvailable(IExternalAccess ea) { // System.err.println("Model class loader: "+ea.getModel().getName()+", "+ea.getModel().getClassLoader()); // classloadercache.put(ci.getParent(), ea.getModel().getClassLoader()); ret.setResult(ea.getModel().getResourceIdentifier()); } });
public void customResultAvailable(IExternalAccess ea) { // System.err.println("Model class loader: "+ea.getModel().getName()+", "+ea.getModel().getClassLoader()); // classloadercache.put(ci.getParent(), ea.getModel().getClassLoader()); ret.setResult(ea.getModel().getResourceIdentifier()); } }));
public void customResultAvailable(IExternalAccess ea) { // System.err.println("Model class loader: "+ea.getModel().getName()+", "+ea.getModel().getClassLoader()); // classloadercache.put(ci.getParent(), ea.getModel().getClassLoader()); ret.setResult(ea.getModel().getResourceIdentifier()); } public void exceptionOccurred(Exception exception)
public void customResultAvailable(IExternalAccess ea) { // System.err.println("Model class loader: "+ea.getModel().getName()+", "+ea.getModel().getClassLoader()); // classloadercache.put(ci.getParent(), ea.getModel().getClassLoader()); ret.setResult(ea.getModel().getResourceIdentifier()); } public void exceptionOccurred(Exception exception)
/** * Get the resource identifier. */ public IFuture<ClassLoader> getClassLoader(IResourceIdentifier rid) { return libservice.getClassLoader(rid==null? getJCCAccess().getModel().getResourceIdentifier(): rid); }
/** * Get the resource identifier. */ public IFuture<ClassLoader> getClassLoader(IResourceIdentifier rid) { return libservice.getClassLoader(rid==null? getJCCAccess().getModel().getResourceIdentifier(): rid); }
List<String> bps = Arrays.asList(access.getModel().getBreakpoints());
if(componenttype==null && fullname!=null) SubcomponentTypeInfo[] atypes = exta.getModel().getSubcomponentTypes(); for(int i=0; i<atypes.length; i++)
assert fut.isDone(); jcc.getClassLoader(component.getModel().getResourceIdentifier()) .addResultListener(new ExceptionDelegationResultListener<ClassLoader, Void>(ret)
public IFuture<IExtensionInstance> execute(IInternalAccess ia) { IFuture<IExtensionInstance> ret; try { Class<AbstractEnvironmentSpace> clazz = SReflect.findClass(spacetype.getClassName(), access.getModel().getAllImports(), ia.getClassLoader()); AbstractEnvironmentSpace space = clazz.newInstance(); space.setInitData(ia, MEnvSpaceInstance.this, fetcher); ret = new Future<IExtensionInstance>(space); } catch(Exception e) { ret = new Future<IExtensionInstance>(e); } return ret; } });
throw new RuntimeException("Proxyable object has no remote interfaces: "+target); Object tcid = target instanceof IExternalAccess? (Object)((IExternalAccess)target).getModel().getFullName(): target.getClass(); ProxyInfo pi = (ProxyInfo)proxyinfos.get(tcid); if(pi==null)
throw new RuntimeException("Proxyable object has no remote interfaces: "+target); Object tcid = target instanceof IExternalAccess? (Object)((IExternalAccess)target).getModel().getFullName(): target.getClass(); ProxyInfo pi = (ProxyInfo)proxyinfos.get(tcid); if(pi==null)
public void customResultAvailable(ILibraryService result) { libservice = result; // ClassLoader cl = ((ILibraryService)result).getClassLoader(); // todo: what about dynamic plugin loading? // ClassLoader cl = controlcenter.getJCCAccess().getModel().getClassLoader(); libservice.getClassLoader(controlcenter.getJCCAccess().getModel().getResourceIdentifier()) .addResultListener(new SwingExceptionDelegationResultListener<ClassLoader, Void>(ret) { public void customResultAvailable(ClassLoader cl) { CounterResultListener<IControlCenterPlugin> crl = new CounterResultListener<IControlCenterPlugin>(plugin_classes.length, new SwingDelegationResultListener<Void>(ret)); for(int i=0; i<plugin_classes.length; i++) { addPlugin(plugin_classes[i], cl).addResultListener(crl); } } }); } });
public void customResultAvailable(ILibraryService result) { libservice = result; // ClassLoader cl = ((ILibraryService)result).getClassLoader(); // todo: what about dynamic plugin loading? // ClassLoader cl = controlcenter.getJCCAccess().getModel().getClassLoader(); libservice.getClassLoader(controlcenter.getJCCAccess().getModel().getResourceIdentifier()) .addResultListener(new SwingExceptionDelegationResultListener<ClassLoader, Void>(ret) { public void customResultAvailable(ClassLoader cl) { CounterResultListener<IControlCenterPlugin> crl = new CounterResultListener<IControlCenterPlugin>(plugin_classes.length, new SwingDelegationResultListener<Void>(ret)); for(int i=0; i<plugin_classes.length; i++) { addPlugin(plugin_classes[i], cl).addResultListener(crl); } } }); } });
ResourceInfo rinfo = getResourceInfo(bgimagefn, getSpace().getExternalAccess().getModel().getAllImports(), cl); Image image = ImageIO.read(rinfo.getInputStream()); rinfo.getInputStream().close();
ResourceInfo rinfo = getResourceInfo(bgimagefn, getSpace().getExternalAccess().getModel().getAllImports(), cl); Image image = ImageIO.read(rinfo.getInputStream()); rinfo.getInputStream().close();
ResourceInfo rinfo = getResourceInfo(bgimagefn, getSpace().getExternalAccess().getModel().getAllImports(), cl); Image image = ImageIO.read(rinfo.getInputStream()); rinfo.getInputStream().close();
interceptors[i].getValue(), ea.getModel().getAllImports(), ia.getFetcher(), ia.getClassLoader()); handler.addServiceInterceptor(interceptor);