/** * Add the passed lifecycle dependencies to the context * * @param context the context * @param depends the dependencies */ private void addDependencies(ServiceControllerContext context, Collection<ObjectName> depends) { DependencyInfo info = context.getDependencyInfo(); for (ObjectName other : depends) { info.addIDependOn(new LifecycleDependencyItem(context.getName(), other.getCanonicalName(), ControllerState.CREATE)); info.addIDependOn(new LifecycleDependencyItem(context.getName(), other.getCanonicalName(), ControllerState.START)); } }
/** * Add the passed lifecycle dependencies to the context * * @param context the context * @param depends the dependencies */ private void addDependencies(ServiceControllerContext context, Collection<ObjectName> depends) { DependencyInfo info = context.getDependencyInfo(); for (ObjectName other : depends) { info.addIDependOn(new LifecycleDependencyItem(context.getName(), other.getCanonicalName(), ControllerState.CREATE)); info.addIDependOn(new LifecycleDependencyItem(context.getName(), other.getCanonicalName(), ControllerState.START)); } }
public void visit(ServiceMetaDataVisitor visitor) { ServiceControllerContext context = visitor.getControllerContext(); Object name = context.getName(); List<String> list = dependencies; try { List<ObjectName> names = getObjectNames(); list = new ArrayList<String>(names.size()); for (ObjectName objectName : names) list.add(objectName.getCanonicalName()); } catch (MalformedObjectNameException ignored) { } for (String other : list) { // TODO visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CONFIGURED)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START)); } visitor.visit(this); } }
public void visit(ServiceMetaDataVisitor visitor) { ServiceControllerContext context = visitor.getControllerContext(); Object name = context.getName(); List<String> list = dependencies; try { List<ObjectName> names = getObjectNames(); list = new ArrayList<String>(names.size()); for (ObjectName objectName : names) list.add(objectName.getCanonicalName()); } catch (MalformedObjectNameException ignored) { } for (String other : list) { // TODO visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CONFIGURED)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START)); } visitor.visit(this); } }
public void visit(ServiceMetaDataVisitor visitor) { ServiceControllerContext context = visitor.getControllerContext(); Object name = context.getName(); Object other = dependency; try { other = getObjectName().getCanonicalName(); } catch (MalformedObjectNameException ignored) { } // TODO visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CONFIGURED)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START)); visitor.visit(this); } }
public void visit(ServiceMetaDataVisitor visitor) { ServiceControllerContext context = visitor.getControllerContext(); Object name = context.getName(); Object other = iDependOn; try { other = getIDependOnObjectName().getCanonicalName(); } catch (MalformedObjectNameException ignored) { } visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START)); visitor.visit(this); } }
public void visit(ServiceMetaDataVisitor visitor) { ServiceControllerContext context = visitor.getControllerContext(); Object name = context.getName(); Object other = iDependOn; try { other = getIDependOnObjectName().getCanonicalName(); } catch (MalformedObjectNameException ignored) { } visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START)); visitor.visit(this); } }
public void visit(ServiceMetaDataVisitor visitor) { ServiceControllerContext context = visitor.getControllerContext(); Object name = context.getName(); Object other = dependency; try { other = getObjectName().getCanonicalName(); } catch (MalformedObjectNameException ignored) { } // TODO visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CONFIGURED)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.CREATE)); visitor.addDependency(new LifecycleDependencyItem(name, other, ControllerState.START)); visitor.visit(this); } }