Class AbstractDescriptor.ResourceDescriptor
java.lang.Object
de.espirit.firstspirit.module.descriptor.AbstractDescriptor.ResourceDescriptor
- All Implemented Interfaces:
Serializable
- Enclosing class:
AbstractDescriptor
A resource available on the Java classpath (e.g. a JAR file)
- Since:
- 5.2.240501
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable StringThe maximum supported compatible version of this resource is used to find the best version if multiple components define the same resource.@Nullable StringThe minimal supported compatible version of this resource is used to find the best version if multiple components define the same resource.@Nullable StringgetName()The name of the resource, may be a Maven identifier like "org.apache.logging.log4j:log4j-api".@NotNull StringReturns the descriptor's parent identifier, which may represent a module name or component identifier for example.@NotNull StringThe actual filename of the resource in the FSM file.@Nullable StringThe path where the resource should be available, useful for static resources.@Nullable StringThe version of the resource (e.g. "1.0.0"), used to detect potential conflicts.inthashCode()booleanisGlobal()Indicates if a resource is globally visible (i.e. for all other modules, too) or only locally for the same module.booleanisLegacy()Allowed to differentiate between legacy and isolated resources in previous versions of FirstSpirit.toString()
-
Constructor Details
-
ResourceDescriptor
public ResourceDescriptor()
-
-
Method Details
-
getName
The name of the resource, may be a Maven identifier like "org.apache.logging.log4j:log4j-api".- Returns:
- the name of the resource, may be
nullif unset. - Since:
- 5.2.240501
-
getVersion
The version of the resource (e.g. "1.0.0"), used to detect potential conflicts.- Returns:
- The version of the resource, may be
nullif unset. - Since:
- 5.2.240501
-
getMinVersion
The minimal supported compatible version of this resource is used to find the best version if multiple components define the same resource.- Returns:
- The minimal supported compatible version of this resource, may be
nullif unset. - Since:
- 5.2.240501
-
getMaxVersion
The maximum supported compatible version of this resource is used to find the best version if multiple components define the same resource.- Returns:
- The maximum supported compatible version of this resource, may be
nullif unset. - Since:
- 5.2.240501
-
getResource
The actual filename of the resource in the FSM file.- Returns:
- The filename of the resource, never
null. - Since:
- 5.2.240501
-
getParentIdentifier
Returns the descriptor's parent identifier, which may represent a module name or component identifier for example.- Since:
- 5.2.240501
-
getTarget
The path where the resource should be available, useful for static resources.- Returns:
- The path where the resource should be available, may be
nullif unset. - Since:
- 5.2.240501
-
isGlobal
public boolean isGlobal()Indicates if a resource is globally visible (i.e. for all other modules, too) or only locally for the same module.- Returns:
trueif the resource is globally visible,falseotherwise.- Since:
- 5.2.240501
-
isLegacy
public boolean isLegacy()Allowed to differentiate between legacy and isolated resources in previous versions of FirstSpirit.- Returns:
falsesince legacy resources are no longer supported.- Since:
- 5.2.240501
-
hashCode
public int hashCode() -
equals
-
toString
-