Class CapabilityReferenceRecorder.DefaultBuilder<T>
- java.lang.Object
-
- org.wildfly.subsystem.resource.capability.CapabilityReferenceRecorder.DefaultBuilder<T>
-
- All Implemented Interfaces:
CapabilityReferenceRecorder.Builder<T>,CapabilityReferenceRecorder.GrandparentAttributeProvider<T>,CapabilityReferenceRecorder.GrandparentPathProvider<T>,CapabilityReferenceRecorder.GreatGrandparentAttributeProvider<T>,CapabilityReferenceRecorder.GreatGrandparentPathProvider<T>,CapabilityReferenceRecorder.ParentAttributeProvider<T>,CapabilityReferenceRecorder.ParentPathProvider<T>
- Enclosing interface:
- CapabilityReferenceRecorder<T>
public static class CapabilityReferenceRecorder.DefaultBuilder<T> extends Object implements CapabilityReferenceRecorder.GreatGrandparentPathProvider<T>, CapabilityReferenceRecorder.GrandparentPathProvider<T>, CapabilityReferenceRecorder.ParentPathProvider<T>, CapabilityReferenceRecorder.Builder<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CapabilityReferenceRecorder<T>build()Builds a capability reference recorder.CapabilityReferenceRecorder.ParentAttributeProvider<T>withGrandparentAttribute(AttributeDefinition attribute)Specifies the attribute used to resolves the grandparent segment of the requirement.CapabilityReferenceRecorder.ParentPathProvider<T>withGrandparentPath(PathElement path, Function<PathAddress,PathElement> resolver)Specifies the path and resolver for the grandparent segment of the requirement.CapabilityReferenceRecorder.GrandparentAttributeProvider<T>withGreatGrandparentAttribute(AttributeDefinition attribute)Specifies the attribute used to resolves the great-grandparent segment of the requirement.CapabilityReferenceRecorder.GrandparentPathProvider<T>withGreatGrandparentPath(PathElement path, Function<PathAddress,PathElement> resolver)Specifies the path and resolver for the great-grandparent segment of the requirement.CapabilityReferenceRecorder.Builder<T>withParentAttribute(AttributeDefinition attribute)Specifies the attribute used to resolves the parent segment of the requirement.CapabilityReferenceRecorder.Builder<T>withParentPath(PathElement path, Function<PathAddress,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.CapabilityReferenceRecorder.GrandparentPathProvider
withGrandparentPath
-
Methods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReferenceRecorder.GreatGrandparentPathProvider
withGreatGrandparentPath
-
Methods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReferenceRecorder.ParentPathProvider
withParentPath
-
-
-
-
Method Detail
-
withGreatGrandparentAttribute
public CapabilityReferenceRecorder.GrandparentAttributeProvider<T> withGreatGrandparentAttribute(AttributeDefinition attribute)
Description copied from interface:CapabilityReferenceRecorder.GreatGrandparentAttributeProviderSpecifies the attribute used to resolves the great-grandparent segment of the requirement.- Specified by:
withGreatGrandparentAttributein interfaceCapabilityReferenceRecorder.GreatGrandparentAttributeProvider<T>- Parameters:
attribute- the attribute used to resolve the parent segment of the requirement.- Returns:
- a reference to this builder
-
withGrandparentAttribute
public CapabilityReferenceRecorder.ParentAttributeProvider<T> withGrandparentAttribute(AttributeDefinition attribute)
Description copied from interface:CapabilityReferenceRecorder.GrandparentAttributeProviderSpecifies the attribute used to resolves the grandparent segment of the requirement.- Specified by:
withGrandparentAttributein interfaceCapabilityReferenceRecorder.GrandparentAttributeProvider<T>- Parameters:
attribute- the attribute used to resolve the parent segment of the requirement.- Returns:
- a reference to this builder
-
withParentAttribute
public CapabilityReferenceRecorder.Builder<T> withParentAttribute(AttributeDefinition attribute)
Description copied from interface:CapabilityReferenceRecorder.ParentAttributeProviderSpecifies the attribute used to resolves the parent segment of the requirement.- Specified by:
withParentAttributein interfaceCapabilityReferenceRecorder.ParentAttributeProvider<T>- Parameters:
attribute- the attribute used to resolve the parent segment of the requirement.- Returns:
- a reference to this builder
-
withGreatGrandparentPath
public CapabilityReferenceRecorder.GrandparentPathProvider<T> withGreatGrandparentPath(PathElement path, Function<PathAddress,PathElement> resolver)
Description copied from interface:CapabilityReferenceRecorder.GreatGrandparentPathProviderSpecifies the path and resolver for the great-grandparent segment of the requirement.- Specified by:
withGreatGrandparentPathin interfaceCapabilityReferenceRecorder.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 CapabilityReferenceRecorder.ParentPathProvider<T> withGrandparentPath(PathElement path, Function<PathAddress,PathElement> resolver)
Description copied from interface:CapabilityReferenceRecorder.GrandparentPathProviderSpecifies the path and resolver for the grandparent segment of the requirement.- Specified by:
withGrandparentPathin interfaceCapabilityReferenceRecorder.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 CapabilityReferenceRecorder.Builder<T> withParentPath(PathElement path, Function<PathAddress,PathElement> resolver)
Description copied from interface:CapabilityReferenceRecorder.ParentPathProviderSpecifies the path and resolver for the parent segment of the requirement.- Specified by:
withParentPathin interfaceCapabilityReferenceRecorder.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 CapabilityReferenceRecorder<T> build()
Description copied from interface:CapabilityReferenceRecorder.BuilderBuilds a capability reference recorder.- Specified by:
buildin interfaceCapabilityReferenceRecorder.Builder<T>- Returns:
- a capability reference recorder
-
-