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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable String
The maximum supported compatible version of this resource is used to find the best version if multiple components define the same resource.@Nullable String
The minimal supported compatible version of this resource is used to find the best version if multiple components define the same resource.@Nullable String
getName()
The name of the resource, may be a Maven identifier like "org.apache.logging.log4j:log4j-api".@NotNull String
Returns the descriptor's parent identifier, which may represent a module name or component identifier for example.@NotNull String
The actual filename of the resource in the FSM file.@Nullable String
The path where the resource should be available, useful for static resources.@Nullable String
The version of the resource (e.g. "1.0.0"), used to detect potential conflicts.int
hashCode()
boolean
isGlobal()
Indicates if a resource is globally visible (i.e. for all other modules, too) or only locally for the same module.boolean
isLegacy()
Allows to differentiate between legacy and isolated resources.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
null
if 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
null
if 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
null
if 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
null
if 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
null
if 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:
true
if the resource is globally visible,false
otherwise.- Since:
- 5.2.240501
-
isLegacy
public boolean isLegacy()Allows to differentiate between legacy and isolated resources. This is mainly important for resources of modules where legacy resources have access to several internal resources of the server while isolated resources are limited to a specific runtime.- Returns:
true
if the mode of this resource isLEGACY
(the default) orfalse
if the mode isISOLATED
.- Since:
- 5.2.240501
-
hashCode
public int hashCode() -
equals
-
toString
-