public void customResultAvailable(IComponentManagementService rcms) { rcms.getParent(cid).addResultListener(new DelegationResultListener<IComponentIdentifier>(ret)); } });
public void customResultAvailable(IComponentManagementService rcms) { rcms.getParent(cid).addResultListener(createResultListener(new DelegationResultListener<IComponentIdentifier>(ret))); } }));
public void customResultAvailable(final IComponentManagementService cms) { cms.getParent((IComponentIdentifier)provider.getId()).addResultListener( new ExceptionDelegationResultListener<IComponentIdentifier, Collection<IExternalAccess>>(ret) { public void customResultAvailable(final IComponentIdentifier cid) { getChildExternalAccesses(cid, provider, info, binding) .addResultListener(new DelegationResultListener<Collection<IExternalAccess>>(ret)); } }); } });
public void customResultAvailable(final IComponentManagementService cms) { cms.getParent((IComponentIdentifier)provider.getComponentIdentifier()).addResultListener( new ExceptionDelegationResultListener<IComponentIdentifier, Collection<IExternalAccess>>(ret) { public void customResultAvailable(final IComponentIdentifier cid) { getChildExternalAccesses(cid, provider, info, binding) .addResultListener(new DelegationResultListener<Collection<IExternalAccess>>(ret)); } }); } });
/** * The plan body. */ public void body() { IComponentManagementService cms = (IComponentManagementService)getServiceContainer().getRequiredService("cms").get(this); IComponentIdentifier root = getScope().getComponentIdentifier(); boolean foundroot = false; while(!foundroot) { IComponentIdentifier parent = (IComponentIdentifier)cms.getParent(root).get(this); if(parent==null) foundroot = true; else root = parent; } cms.resumeComponent(root).get(this); cms.destroyComponent(root); } }