Class ComplexResource
java.lang.Object
org.jboss.as.controller.registry.ResourceProvider.ResourceProviderRegistry
org.jboss.as.controller.registry.DelegatingResource
org.jboss.as.clustering.controller.ComplexResource
- All Implemented Interfaces:
Cloneable,Function<String,,ChildResourceProvider> org.jboss.as.controller.registry.Resource
public class ComplexResource
extends org.jboss.as.controller.registry.DelegatingResource
implements Function<String,ChildResourceProvider>
A generic
Resource decorator augmented to support additional runtime children.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jboss.as.controller.registry.DelegatingResource
org.jboss.as.controller.registry.DelegatingResource.ResourceDelegateProviderNested classes/interfaces inherited from interface org.jboss.as.controller.registry.Resource
org.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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionComplexResource(org.jboss.as.controller.registry.Resource resource, Map<String, ChildResourceProvider> providers) Constructs a new resource.protectedComplexResource(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. -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.as.controller.registry.Resourceclone()org.jboss.as.controller.registry.ResourcegetChild(org.jboss.as.controller.PathElement path) Set<org.jboss.as.controller.registry.Resource.ResourceEntry>getChildren(String childType) getChildrenNames(String childType) booleanhasChild(org.jboss.as.controller.PathElement path) booleanhasChildren(String childType) org.jboss.as.controller.registry.Resourcenavigate(org.jboss.as.controller.PathAddress address) org.jboss.as.controller.registry.ResourcerequireChild(org.jboss.as.controller.PathElement path) Methods inherited from class org.jboss.as.controller.registry.DelegatingResource
getModel, getOrderedChildTypes, isModelDefined, isProxy, isRuntime, registerChild, registerChild, registerResourceProvider, removeChild, writeModelMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.registry.Resource
shallowCopy
-
Constructor Details
-
ComplexResource
public ComplexResource(org.jboss.as.controller.registry.Resource resource, Map<String, ChildResourceProvider> providers) Constructs a new resource.- Parameters:
resource- the concrete resourceproviders- a set of providers for specific child types
-
ComplexResource
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.- Parameters:
resource- the concrete resourceproviders- a set of providers for specific child typesfactory- a function used to clone this resource
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<String,ChildResourceProvider>
-
clone
public org.jboss.as.controller.registry.Resource clone()- Specified by:
clonein interfaceorg.jboss.as.controller.registry.Resource- Overrides:
clonein classorg.jboss.as.controller.registry.DelegatingResource
-
getChild
public org.jboss.as.controller.registry.Resource getChild(org.jboss.as.controller.PathElement path) - Specified by:
getChildin interfaceorg.jboss.as.controller.registry.Resource- Overrides:
getChildin classorg.jboss.as.controller.registry.DelegatingResource
-
getChildren
- Specified by:
getChildrenin interfaceorg.jboss.as.controller.registry.Resource- Overrides:
getChildrenin classorg.jboss.as.controller.registry.DelegatingResource
-
getChildrenNames
- Specified by:
getChildrenNamesin interfaceorg.jboss.as.controller.registry.Resource- Overrides:
getChildrenNamesin classorg.jboss.as.controller.registry.DelegatingResource
-
getChildTypes
- Specified by:
getChildTypesin interfaceorg.jboss.as.controller.registry.Resource- Overrides:
getChildTypesin classorg.jboss.as.controller.registry.DelegatingResource
-
hasChild
public boolean hasChild(org.jboss.as.controller.PathElement path) - Specified by:
hasChildin interfaceorg.jboss.as.controller.registry.Resource- Overrides:
hasChildin classorg.jboss.as.controller.registry.DelegatingResource
-
hasChildren
- Specified by:
hasChildrenin interfaceorg.jboss.as.controller.registry.Resource- Overrides:
hasChildrenin classorg.jboss.as.controller.registry.DelegatingResource
-
requireChild
public org.jboss.as.controller.registry.Resource requireChild(org.jboss.as.controller.PathElement path) - Specified by:
requireChildin interfaceorg.jboss.as.controller.registry.Resource- Overrides:
requireChildin classorg.jboss.as.controller.registry.DelegatingResource
-