Class FilesystemStyleComponentDescriptor
- All Implemented Interfaces:
ComponentDescriptor
ComponentDescriptor implementation inspired by filesystem structures. Components are represented as
"directories" with properties as "files" and references as "symbolic links". This creates a clear hierarchical
representation with explicit paths to show component relationships.
Each component is assigned a path in the virtual filesystem. References to components that have already been
described are represented as symbolic links, indicated with the -> /path/to/component syntax, preventing
infinite recursion in circular references.
Example output:
/ ├── systemComponent/ │ ├── _ref: 123512 │ ├── _type: EventProcessor │ ├── name: my-processor │ └── configuration/ │ ├── _ref: 123513 │ ├── _type: ProcessorConfiguration │ ├── batchSize: 100 │ └── processor -> /systemComponent
- Since:
- 5.0.0
- Author:
- Mateusz Nowak
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newFilesystemComponentDescriptoras the root of the hierarchy. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Provides the description ofthis ComponentDescriptor.voiddescribeProperty(String name, @Nullable Boolean value) Describe the givenvaluewiththisdescriptor for the givenname.voiddescribeProperty(String name, @Nullable Long value) Describe the givenvaluewiththisdescriptor for the givenname.voiddescribeProperty(String name, @Nullable Object object) Describe the givenobjectwiththisdescriptor for the givenname.voiddescribeProperty(String name, @Nullable String value) Describe the givenvaluewiththisdescriptor for the givenname.voiddescribeProperty(String name, @Nullable Collection<?> collection) Describe the givencollectionwiththisdescriptor for the givenname.voiddescribeProperty(String name, @Nullable Map<?, ?> map) Describe the givenmapwiththisdescriptor for the givenname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.common.infra.ComponentDescriptor
describeWrapperOf
-
Constructor Details
-
FilesystemStyleComponentDescriptor
public FilesystemStyleComponentDescriptor()Constructs a newFilesystemComponentDescriptoras the root of the hierarchy.
-
-
Method Details
-
describeProperty
Description copied from interface:ComponentDescriptorDescribe the givenobjectwiththisdescriptor for the givenname.If the
objectis aDescribableComponent,DescribableComponent.describeTo(ComponentDescriptor)is invoked withthisdescriptor.- Specified by:
describePropertyin interfaceComponentDescriptor- Parameters:
name- The name for theobjectto describe.object- The object to describe withthisdescriptor.
-
describeProperty
Description copied from interface:ComponentDescriptorDescribe the givencollectionwiththisdescriptor for the givenname.If any item in the
collectionis aDescribableComponent, it will be processed as ifComponentDescriptor.describeProperty(String, Object)was invoked for that item, andDescribableComponent.describeTo(ComponentDescriptor)will be called on it.The formatting of the
collectiontypically takes a regular array structure.- Specified by:
describePropertyin interfaceComponentDescriptor- Parameters:
name- The name for thecollectionto describe.collection- The collection to describe withthisdescriptor.
-
describeProperty
Description copied from interface:ComponentDescriptorDescribe the givenmapwiththisdescriptor for the givenname.If any value in the
mapis aDescribableComponent, it will be processed as ifComponentDescriptor.describeProperty(String, Object)was invoked for that value, andDescribableComponent.describeTo(ComponentDescriptor)will be called on it.The formatting of the
maptypically takes a regular key-value structure based on theentriesof themap.- Specified by:
describePropertyin interfaceComponentDescriptor- Parameters:
name- The name for themapto describe.map- The map to describe withthisdescriptor.
-
describeProperty
Description copied from interface:ComponentDescriptorDescribe the givenvaluewiththisdescriptor for the givenname.- Specified by:
describePropertyin interfaceComponentDescriptor- Parameters:
name- The name for thevalueto describe.value- The value to describe withthisdescriptor.
-
describeProperty
Description copied from interface:ComponentDescriptorDescribe the givenvaluewiththisdescriptor for the givenname.- Specified by:
describePropertyin interfaceComponentDescriptor- Parameters:
name- The name for thevalueto describe.value- The value to describe withthisdescriptor.
-
describeProperty
Description copied from interface:ComponentDescriptorDescribe the givenvaluewiththisdescriptor for the givenname.- Specified by:
describePropertyin interfaceComponentDescriptor- Parameters:
name- The name for thevalueto describe.value- The value to describe withthisdescriptor.
-
describe
Description copied from interface:ComponentDescriptorProvides the description ofthis ComponentDescriptor.- Specified by:
describein interfaceComponentDescriptor- Returns:
- The description result of
this ComponentDescriptor.
-