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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CapabilityReference<T>build()Builds a capability reference recorder.CapabilityReference.ParentAttributeProvider<T>withGrandparentAttribute(org.jboss.as.controller.AttributeDefinition attribute)Specifies the attribute used to resolves the grandparent segment of the requirement.CapabilityReference.ParentPathProvider<T>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.CapabilityReference.GrandparentAttributeProvider<T>withGreatGrandparentAttribute(org.jboss.as.controller.AttributeDefinition attribute)Specifies the attribute used to resolves the great-grandparent segment of the requirement.CapabilityReference.GrandparentPathProvider<T>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.CapabilityReference.Builder<T>withParentAttribute(org.jboss.as.controller.AttributeDefinition attribute)Specifies the attribute used to resolves the parent segment of the requirement.CapabilityReference.Builder<T>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, wait
-
Methods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference.GrandparentPathProvider
withGrandparentPath
-
Methods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference.GreatGrandparentPathProvider
withGreatGrandparentPath
-
Methods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference.ParentPathProvider
withParentPath
-
-
-
-
Method Detail
-
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
public CapabilityReference<T> build()
Description copied from interface:CapabilityReference.BuilderBuilds a capability reference recorder.- Specified by:
buildin interfaceCapabilityReference.Builder<T>- Returns:
- a capability reference recorder
-
-