/** * Get the parent component of a component. * @param cid The component identifier. * @return The parent component identifier. */ public IComponentIdentifier getParentIdentifier(CreationInfo ci) { IComponentIdentifier rt = root.getComponentIdentifier(); IComponentIdentifier ret = ci==null? rt: ci.getParent()==null? rt: ci.getParent(); // System.out.println("parent id: "+ret); return ret; }
/** * Get the parent component of a component. * @param cid The component identifier. * @return The parent component identifier. */ public IComponentIdentifier getParentIdentifier(CreationInfo ci) { IComponentIdentifier ret = ci!=null && ci.getParent()!=null ? ci.getParent() : agent.getComponentIdentifier(); // System.out.println("parent id: "+ret); return ret; }
/** * Get the parent component of a component. * @param cid The component identifier. * @return The parent component identifier. */ public IComponentIdentifier getParentIdentifier(CreationInfo ci) { IComponentIdentifier rt = root.getComponentIdentifier(); IComponentIdentifier ret = ci==null? rt: ci.getParent()==null? rt: ci.getParent(); // System.out.println("parent id: "+ret); return ret; }
/** * Get the parent component of a component. * @param cid The component identifier. * @return The parent component identifier. */ public IComponentIdentifier getParentIdentifier(CreationInfo ci) { IComponentIdentifier rt = root.getComponentIdentifier(); IComponentIdentifier ret = ci==null? rt: ci.getParent()==null? rt: ci.getParent(); // System.out.println("parent id: "+ret); return ret; }
if(cinfo.getParent()!=null)
/** * Create a new creation info. */ public CreationInfo(CreationInfo info) { if(info!=null) { this.config = info.getConfiguration(); this.args = info.getArguments(); this.parent = info.getParent(); this.suspend = info.getSuspend(); this.master = info.getMaster(); this.daemon = info.getDaemon(); this.autoshutdown = info.getAutoShutdown(); this.monitoring = info.getMonitoring(); this.synchronous = info.getSynchronous(); this.imports = info.getImports(); this.bindings = info.getRequiredServiceBindings(); this.rid = info.getResourceIdentifier(); this.localtype = info.getLocalType(); } }
/** * Create a new creation info. */ public CreationInfo(CreationInfo info) { if(info!=null) { this.config = info.getConfiguration(); this.args = info.getArguments(); this.parent = info.getParent(); this.suspend = info.getSuspend(); this.master = info.getMaster(); this.daemon = info.getDaemon(); this.autoshutdown = info.getAutoShutdown(); this.monitoring = info.getMonitoring(); this.synchronous = info.getSynchronous(); this.imports = info.getImports(); this.bindings = info.getRequiredServiceBindings(); this.pinfos = info.getProvidedServiceInfos(); this.rid = info.getResourceIdentifier(); this.localtype = info.getLocalType(); } }
if(cinfo.getParent()!=null)