@Override public Resource requireChild(PathElement element) { return delegate.requireChild(element); }
/** * @param element * @return * @see org.jboss.as.controller.registry.Resource#requireChild(org.jboss.as.controller.PathElement) */ public Resource requireChild(PathElement element) { return delegate.requireChild(element); }
@Override public Resource requireChild(PathElement element) { return delegate.requireChild(element); }
@Override public Resource requireChild(final PathElement element) { if (BatchJobExecutionResourceDefinition.EXECUTION.equals(element.getKey())) { if (hasJobExecution(element.getValue())) { return PlaceholderResource.INSTANCE; } throw new NoSuchResourceException(element); } return delegate.requireChild(element); }
static Resource getOrCreate(final Resource parent, final PathAddress address) { Resource current = parent; for (final PathElement element : address) { synchronized (current) { if (current.hasChild(element)) { current = current.requireChild(element); } else { final Resource resource = Resource.Factory.create(); current.registerChild(element, resource); current = resource; } } } return current; }
@Override public Resource requireChild(final PathElement element) { if (BALANCER.equals(element.getKey())) { if (getChildrenNames(BALANCER).contains(element.getValue())) { return new ModClusterBalancerResource(element.getValue(), name); } throw new NoSuchResourceException(element); } return delegate.requireChild(element); }
@Override public Resource requireChild(PathElement element) { return resource.requireChild(element); }
@Override public Resource requireChild(PathElement element) { return delegate.requireChild(element); }
@Override public Resource requireChild(PathElement element) { Resource resource = delegate.requireChild(element); if (resource != null) { return new ProtectedModelResource(resource); } return null; }
@Override public Resource requireChild(PathElement element) { Resource resource = delegate.requireChild(element); if (resource != null) { return new ProtectedModelResource<Resource>(resource); } return null; }
@Override public Resource requireChild(PathElement element) { Resource resource = delegate.requireChild(element); if (resource != null) { return new ProtectedModelResource<Resource>(resource); } return null; }
@Override public Resource requireChild(PathElement element) { if (ModelConstants.BUNDLE.equals(element.getKey())) { if (hasBundle(element)) { return OSGiBundleResource.INSTANCE; } throw new NoSuchResourceException(element); } else { return delegate.requireChild(element); } }
@Override public Resource requireChild(PathElement element) { if (ModelConstants.BUNDLE.equals(element.getKey())) { if (hasBundle(element)) { return OSGiBundleResource.INSTANCE; } throw new NoSuchResourceException(element); } else { return delegate.requireChild(element); } }
static Resource getOrCreate(final Resource parent, final PathElement element) { synchronized(parent) { if(parent.hasChild(element)) { return parent.requireChild(element); } else { final Resource resource = Resource.Factory.create(); parent.registerChild(element, resource); return resource; } } }
@Override public Resource requireChild(final PathElement element) { if (LogFileResourceDefinition.NAME.equals(element.getKey())) { if (hasReadableFile(element.getValue())) { return PlaceholderResource.INSTANCE; } throw new NoSuchResourceException(element); } return delegate.requireChild(element); }
@Override public Resource requireChild(final PathElement element) { if (BatchJobExecutionResourceDefinition.EXECUTION.equals(element.getKey())) { if (hasJobExecution(element.getValue())) { return PlaceholderResource.INSTANCE; } throw new NoSuchResourceException(element); } return delegate.requireChild(element); }
/** * TODO this is a temporary hack into internals until DeploymentUnit exposes a proper Resource-based API */ private static Resource getOrCreateResource(final Resource parent, final PathElement element) { synchronized (parent) { if (parent.hasChild(element)) { return parent.requireChild(element); } else { final Resource resource = Resource.Factory.create(); parent.registerChild(element, resource); return resource; } } }
@Override public Resource requireChild(final PathElement element) { if (BALANCER.equals(element.getKey())) { if (getChildrenNames(BALANCER).contains(element.getValue())) { return new ModClusterBalancerResource(element.getValue(), name); } throw new NoSuchResourceException(element); } return delegate.requireChild(element); }
@Override public Resource requireChild(final PathElement element) { if (BALANCER.equals(element.getKey())) { if (getChildrenNames(BALANCER).contains(element.getValue())) { return new ModClusterBalancerResource(element.getValue(), name); } throw new NoSuchResourceException(element); } return delegate.requireChild(element); }
private static Resource requireChild(final Resource resource, final PathElement childPath, final PathAddress fullAddress) { if (resource.hasChild(childPath)) { return resource.requireChild(childPath); } else { PathAddress missing = PathAddress.EMPTY_ADDRESS; for (PathElement search : fullAddress) { missing = missing.append(search); if (search.equals(childPath)) { break; } } throw ControllerLogger.ROOT_LOGGER.managementResourceNotFound(missing); } }