public class ComplexResource extends org.jboss.as.controller.registry.DelegatingResource implements Function<String,ChildResourceProvider>
Resource decorator augmented to support additional runtime children.org.jboss.as.controller.registry.DelegatingResource.ResourceDelegateProviderorg.jboss.as.controller.registry.Resource.Factory, org.jboss.as.controller.registry.Resource.NoSuchResourceException, org.jboss.as.controller.registry.Resource.ResourceEntry, org.jboss.as.controller.registry.Resource.Tools| Modifier | Constructor and Description |
|---|---|
|
ComplexResource(org.jboss.as.controller.registry.Resource resource,
Map<String,ChildResourceProvider> providers)
Constructs a new resource.
|
protected |
ComplexResource(org.jboss.as.controller.registry.Resource resource,
Map<String,ChildResourceProvider> providers,
BiFunction<org.jboss.as.controller.registry.Resource,Map<String,ChildResourceProvider>,org.jboss.as.controller.registry.Resource> factory)
Constructs a new resource.
|
| Modifier and Type | Method and Description |
|---|---|
ChildResourceProvider |
apply(String childType) |
org.jboss.as.controller.registry.Resource |
clone() |
org.jboss.as.controller.registry.Resource |
getChild(org.jboss.as.controller.PathElement path) |
Set<org.jboss.as.controller.registry.Resource.ResourceEntry> |
getChildren(String childType) |
Set<String> |
getChildrenNames(String childType) |
Set<String> |
getChildTypes() |
boolean |
hasChild(org.jboss.as.controller.PathElement path) |
boolean |
hasChildren(String childType) |
org.jboss.as.controller.registry.Resource |
navigate(org.jboss.as.controller.PathAddress address) |
org.jboss.as.controller.registry.Resource |
requireChild(org.jboss.as.controller.PathElement path) |
getModel, getOrderedChildTypes, isModelDefined, isProxy, isRuntime, registerChild, registerChild, registerResourceProvider, removeChild, writeModelpublic ComplexResource(org.jboss.as.controller.registry.Resource resource,
Map<String,ChildResourceProvider> providers)
resource - the concrete resourceproviders - a set of providers for specific child typesprotected ComplexResource(org.jboss.as.controller.registry.Resource resource,
Map<String,ChildResourceProvider> providers,
BiFunction<org.jboss.as.controller.registry.Resource,Map<String,ChildResourceProvider>,org.jboss.as.controller.registry.Resource> factory)
resource - the concrete resourceproviders - a set of providers for specific child typesfactory - a function used to clone this resourcepublic ChildResourceProvider apply(String childType)
apply in interface Function<String,ChildResourceProvider>public org.jboss.as.controller.registry.Resource clone()
clone in interface org.jboss.as.controller.registry.Resourceclone in class org.jboss.as.controller.registry.DelegatingResourcepublic org.jboss.as.controller.registry.Resource getChild(org.jboss.as.controller.PathElement path)
getChild in interface org.jboss.as.controller.registry.ResourcegetChild in class org.jboss.as.controller.registry.DelegatingResourcepublic Set<org.jboss.as.controller.registry.Resource.ResourceEntry> getChildren(String childType)
getChildren in interface org.jboss.as.controller.registry.ResourcegetChildren in class org.jboss.as.controller.registry.DelegatingResourcepublic Set<String> getChildrenNames(String childType)
getChildrenNames in interface org.jboss.as.controller.registry.ResourcegetChildrenNames in class org.jboss.as.controller.registry.DelegatingResourcepublic Set<String> getChildTypes()
getChildTypes in interface org.jboss.as.controller.registry.ResourcegetChildTypes in class org.jboss.as.controller.registry.DelegatingResourcepublic boolean hasChild(org.jboss.as.controller.PathElement path)
hasChild in interface org.jboss.as.controller.registry.ResourcehasChild in class org.jboss.as.controller.registry.DelegatingResourcepublic boolean hasChildren(String childType)
hasChildren in interface org.jboss.as.controller.registry.ResourcehasChildren in class org.jboss.as.controller.registry.DelegatingResourcepublic org.jboss.as.controller.registry.Resource navigate(org.jboss.as.controller.PathAddress address)
navigate in interface org.jboss.as.controller.registry.Resourcenavigate in class org.jboss.as.controller.registry.DelegatingResourcepublic org.jboss.as.controller.registry.Resource requireChild(org.jboss.as.controller.PathElement path)
requireChild in interface org.jboss.as.controller.registry.ResourcerequireChild in class org.jboss.as.controller.registry.DelegatingResourceCopyright © 2021 JBoss by Red Hat. All rights reserved.