/** * @param identityObject * The identifying object that makes the Node unique */ protected static ComponentId syntheticComponentId(String className, Object identityObject, ComponentId namespace) { String name = className + "_" + System.identityHashCode(identityObject); return ComponentId.fromString(name).nestInNamespace(namespace); }
public static ComponentId configProviderId(ComponentId filterId) { return ComponentId.fromString("filterConfig").nestInNamespace(filterId); } }
private ComponentId toGlobalComponentId(ComponentId searcherId) { return searcherId.nestInNamespace(getComponentId()); }
static ComponentId configProviderId(ComponentId filterId) { return ComponentId.fromString("filterConfig").nestInNamespace(filterId); }
public BundleInstantiationSpecification nestInNamespace(ComponentId namespace) { return new BundleInstantiationSpecification(id.nestInNamespace(namespace), classId, bundle); }
private static ComponentId createId(String sessionName) { return ComponentId.fromString(sessionName).nestInNamespace( ComponentId.fromString("MbusClient")); }
@Override public ComponentId getGlobalComponentId() { return model.getComponentId().nestInNamespace(namespace()); }
public ComponentId getGlobalComponentId() { return getComponentId().nestInNamespace( getParentProvider().getComponentId()); } }
public ComponentSpecification nestInNamespace(ComponentId namespace) { ComponentId newNameSpace = (getNamespace() == null) ? namespace : getNamespace().nestInNamespace(namespace); return new ComponentSpecification(getName(), getVersionSpecification(), newNameSpace); }
public ComponentId nestInNamespace(ComponentId namespace) { if (namespace == null) { return this; } else { ComponentId newNamespace = getNamespace() == null ? namespace : getNamespace().nestInNamespace(namespace); return new ComponentId(getName(), getVersion(), newNamespace); } }
public void addMbusServer(ComponentId chainId) { ComponentId serviceId = chainId.nestInNamespace(ComponentId.fromString("MbusServer")); addComponent( new Component<>(new ComponentModel(new BundleInstantiationSpecification( serviceId, ComponentSpecification.fromString(MbusServerProvider.class.getName()), null)))); }
public ServletProvider(SimpleComponent servletToProvide, String bindingPath, Map<String, String> servletConfig) { super(new ComponentModel( new BundleInstantiationSpecification(servletToProvide.getComponentId().nestInNamespace(SERVLET_PROVIDER_NAMESPACE), ComponentSpecification.fromString(CLASS), ComponentSpecification.fromString(BUNDLE))), bindingPath); inject(servletToProvide); addChild(servletToProvide); this.servletConfig = servletConfig; }