Interface ComponentDescriptor
- All Superinterfaces:
Descriptor
,Serializable
- All Known Implementing Classes:
LibraryDescriptor
,ProjectAppDescriptor
,PublicClassDescriptor
,ServiceDescriptor
,WebAppDescriptor
,WebServerDescriptor
The component descriptor contains name, type, class and other information of a
Component
.- Since:
- 4.1
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The scope describes the place where the component is available: server-wide, project-local or web-local.static enum
Component type. -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Returnscomponent
class-name.@Nullable String
Returns configuration string.@Nullable String
Returnsconfiguration
class-name.Returns an english component description.Returns the component displayname.@NotNull String
Returns module name.getName()
Returns the component name which has to be unique inside a single module.Returns resources (jar-files) necessary for this component.getScope()
Returns component scope.getType()
Returns component type.Returns component version (multiple numbers separated only by dots, e.g.boolean
isHidden()
Returns true if component is hidden in adminconsole, and false (by default) otherwiseboolean
Returns true if this component descriptor is unknown, occurs when an imported project has a module installed, which is unknown on the firstspirit server.
-
Method Details
-
isUnknown
boolean isUnknown()Returns true if this component descriptor is unknown, occurs when an imported project has a module installed, which is unknown on the firstspirit server. Returns false otherwise (default)- Returns:
- boolean which describes the unknown state of this component
- Since:
- 4.1
-
isHidden
boolean isHidden()Returns true if component is hidden in adminconsole, and false (by default) otherwise- Returns:
- true if component is hidden in adminconsole, and false (by default) otherwise
- Since:
- 4.1
-
getConfiguration
Returns configuration string.- Specified by:
getConfiguration
in interfaceDescriptor
- Since:
- 4.2.400
-
getDescription
String getDescription()Returns an english component description.- Specified by:
getDescription
in interfaceDescriptor
- Returns:
- component description.
- Since:
- 4.1
-
getName
String getName()Returns the component name which has to be unique inside a single module.- Specified by:
getName
in interfaceDescriptor
- Returns:
- component name.
- Since:
- 4.1
-
getDisplayName
String getDisplayName()Returns the component displayname.- Specified by:
getDisplayName
in interfaceDescriptor
- Returns:
- component displayname.
- Since:
- 5.0.203
-
getModuleName
Returns module name.- Returns:
- module name.
- Since:
- 4.1
-
getVersion
String getVersion()Returns component version (multiple numbers separated only by dots, e.g."1.2.3.4"
).- Specified by:
getVersion
in interfaceDescriptor
- Returns:
- component version.
- Since:
- 4.1
-
getComponentClass
Returnscomponent
class-name.- Returns:
component
class-name.- Since:
- 4.1
-
getConfigurationClass
Returnsconfiguration
class-name.- Returns:
configuration
class-name.- Since:
- 4.1
-
getScope
ComponentDescriptor.Scope getScope()Returns component scope.- Returns:
- component scope.
- Since:
- 4.1
-
getType
ComponentDescriptor.Type getType()Returns component type.- Returns:
- component type.
- Since:
- 4.1
-
getResources
AbstractDescriptor.ResourceDescriptor[] getResources()Returns resources (jar-files) necessary for this component.- Returns:
- necessary resources (jar-files).
- Since:
- 4.1
-