Class CapabilityReference.DefaultBuilder<T>
java.lang.Object
org.wildfly.subsystem.resource.capability.CapabilityReference.DefaultBuilder<T>
- All Implemented Interfaces:
CapabilityReference.Builder<T>,CapabilityReference.GrandparentAttributeProvider<T>,CapabilityReference.GrandparentPathProvider<T>,CapabilityReference.GreatGrandparentAttributeProvider<T>,CapabilityReference.GreatGrandparentPathProvider<T>,CapabilityReference.ParentAttributeProvider<T>,CapabilityReference.ParentPathProvider<T>
- Direct Known Subclasses:
CapabilityReferenceRecorder.DefaultBuilder
- Enclosing interface:
- CapabilityReference<T>
public static class CapabilityReference.DefaultBuilder<T>
extends Object
implements CapabilityReference.GreatGrandparentPathProvider<T>, CapabilityReference.GrandparentPathProvider<T>, CapabilityReference.ParentPathProvider<T>, CapabilityReference.Builder<T>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a capability reference recorder.withGrandparentAttribute(org.jboss.as.controller.AttributeDefinition attribute) Specifies the attribute used to resolves the grandparent segment of the requirement.withGrandparentPath(org.jboss.as.controller.PathElement path, Function<org.jboss.as.controller.PathAddress, org.jboss.as.controller.PathElement> resolver) Specifies the path and resolver for the grandparent segment of the requirement.withGreatGrandparentAttribute(org.jboss.as.controller.AttributeDefinition attribute) Specifies the attribute used to resolves the great-grandparent segment of the requirement.withGreatGrandparentPath(org.jboss.as.controller.PathElement path, Function<org.jboss.as.controller.PathAddress, org.jboss.as.controller.PathElement> resolver) Specifies the path and resolver for the great-grandparent segment of the requirement.withParentAttribute(org.jboss.as.controller.AttributeDefinition attribute) Specifies the attribute used to resolves the parent segment of the requirement.withParentPath(org.jboss.as.controller.PathElement path, Function<org.jboss.as.controller.PathAddress, org.jboss.as.controller.PathElement> resolver) Specifies the path and resolver for the parent segment of the requirement.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference.GrandparentPathProvider
withGrandparentPathMethods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference.GreatGrandparentPathProvider
withGreatGrandparentPathMethods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference.ParentPathProvider
withParentPath
-
Method Details
-
withGreatGrandparentAttribute
public CapabilityReference.GrandparentAttributeProvider<T> withGreatGrandparentAttribute(org.jboss.as.controller.AttributeDefinition attribute) Description copied from interface:CapabilityReference.GreatGrandparentAttributeProviderSpecifies the attribute used to resolves the great-grandparent segment of the requirement.- Specified by:
withGreatGrandparentAttributein interfaceCapabilityReference.GreatGrandparentAttributeProvider<T>- Parameters:
attribute- the attribute used to resolve the parent segment of the requirement.- Returns:
- a reference to this builder
-
withGrandparentAttribute
public CapabilityReference.ParentAttributeProvider<T> withGrandparentAttribute(org.jboss.as.controller.AttributeDefinition attribute) Description copied from interface:CapabilityReference.GrandparentAttributeProviderSpecifies the attribute used to resolves the grandparent segment of the requirement.- Specified by:
withGrandparentAttributein interfaceCapabilityReference.GrandparentAttributeProvider<T>- Parameters:
attribute- the attribute used to resolve the parent segment of the requirement.- Returns:
- a reference to this builder
-
withParentAttribute
public CapabilityReference.Builder<T> withParentAttribute(org.jboss.as.controller.AttributeDefinition attribute) Description copied from interface:CapabilityReference.ParentAttributeProviderSpecifies the attribute used to resolves the parent segment of the requirement.- Specified by:
withParentAttributein interfaceCapabilityReference.ParentAttributeProvider<T>- Parameters:
attribute- the attribute used to resolve the parent segment of the requirement.- Returns:
- a reference to this builder
-
withGreatGrandparentPath
public CapabilityReference.GrandparentPathProvider<T> withGreatGrandparentPath(org.jboss.as.controller.PathElement path, Function<org.jboss.as.controller.PathAddress, org.jboss.as.controller.PathElement> resolver) Description copied from interface:CapabilityReference.GreatGrandparentPathProviderSpecifies the path and resolver for the great-grandparent segment of the requirement.- Specified by:
withGreatGrandparentPathin interfaceCapabilityReference.GreatGrandparentPathProvider<T>- Parameters:
path- a path element used to construct the capability name pattern for this referenceresolver- a path resolver- Returns:
- a reference to this builder
-
withGrandparentPath
public CapabilityReference.ParentPathProvider<T> withGrandparentPath(org.jboss.as.controller.PathElement path, Function<org.jboss.as.controller.PathAddress, org.jboss.as.controller.PathElement> resolver) Description copied from interface:CapabilityReference.GrandparentPathProviderSpecifies the path and resolver for the grandparent segment of the requirement.- Specified by:
withGrandparentPathin interfaceCapabilityReference.GrandparentPathProvider<T>- Parameters:
path- a path element used to construct the capability name pattern for this referenceresolver- a path resolver- Returns:
- a reference to this builder
-
withParentPath
public CapabilityReference.Builder<T> withParentPath(org.jboss.as.controller.PathElement path, Function<org.jboss.as.controller.PathAddress, org.jboss.as.controller.PathElement> resolver) Description copied from interface:CapabilityReference.ParentPathProviderSpecifies the path and resolver for the parent segment of the requirement.- Specified by:
withParentPathin interfaceCapabilityReference.ParentPathProvider<T>- Parameters:
path- a path element used to construct the capability name pattern for this referenceresolver- a path resolver- Returns:
- a reference to this builder
-
build
Description copied from interface:CapabilityReference.BuilderBuilds a capability reference recorder.- Specified by:
buildin interfaceCapabilityReference.Builder<T>- Returns:
- a capability reference recorder
-