Class ComponentDescriptorExtensions
- java.lang.Object
-
- com.opencloud.rhino.management.deployment.ComponentDescriptorExtensions
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SbbDescriptorExtensions
public class ComponentDescriptorExtensions extends Object implements Serializable
This class defines Rhino-specific extensions applicable to SLEE components. It is present as vendor-specific data in
ComponentDescriptorsobtained from Rhino.- Since:
- Rhino 2.4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComponentDescriptorExtensions(SleeVersion version, byte[] checksum, Properties manifestAttrs, InstallLevel installLevel, ComponentID[] copies, ComponentID copySource, ComponentID original, Date copyDate)ComponentDescriptorExtensions(SleeVersion version, byte[] checksum, Properties manifestAttrs, InstallLevel installLevel, ComponentID[] copies, ComponentID copySource, ComponentID original, Date copyDate, ComponentID shadowedBy, Date shadowDate, ComponentID[] incomingLinks, ComponentID[] shadowing)Create a new component extension descriptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getChecksum()Get the fingerprint checksum of the component.ComponentID[]getCopies()Get the identifiers of the components that have been copied from this component.DategetCopyDate()Get the date that the component was created, if the component is a copied component.ComponentIDgetCopySource()Get the identifier of the component that this component was copied from or if that component has been removed from the SLEE then the nearest ancestor component that has not been removed.ComponentID[]getIncomingLinks()Get the identifiers of the components that are links to this component.InstallLevelgetInstallLevel()Get the current install level of the component.PropertiesgetManifestAttributes()Get the main attributes from the component jar manifest.ComponentIDgetOriginal()Get the identifier of the original component that this component is a copy of.DategetShadowDate()Get the date that the component was shadowed, if the component is shadowed.ComponentIDgetShadowedBy()Get the identifier of the component that shadows this component.ComponentID[]getShadowing()Get the identifiers of the components that are shadowed by this component.SleeVersiongetVersion()Get the SLEE version of the component.StringtoString()
-
-
-
Constructor Detail
-
ComponentDescriptorExtensions
@Deprecated public ComponentDescriptorExtensions(SleeVersion version, byte[] checksum, Properties manifestAttrs, InstallLevel installLevel, ComponentID[] copies, ComponentID copySource, ComponentID original, Date copyDate)
Deprecated.Create a new component extension descriptor.
- Parameters:
version- the SLEE version of the component. This is the version obtained from the DOCTYPE declaration in the component’s deployment descriptor.checksum- the fingerprint checksum of the component. This is calculated using the SHA-1 algorithm.manifestAttrs- the main attributes from the component jar manifest. Only relevant for components packaged in a jar.installLevel- the current install level of the component.copies- the identifiers of the components that have been copied from this component. This array includes components that were directly copied from this component, and any component that is an indirect copy of this component but who’s intermediate copied components have been removed from the SLEE.copySource- the identifier of the component this component was copied from, or if that component has been removed from the SLEE then the nearest ancestor component that has not been removed. This parameter should benullif the component is an original component installed using a regular deployable unit.original- the original component that this component is a copy of. This parameter should benullif this component is already an original component.copyDate- the date that the component was created, if the component is a copied component. This parameter should benullif the component is an original component.
-
ComponentDescriptorExtensions
public ComponentDescriptorExtensions(SleeVersion version, byte[] checksum, Properties manifestAttrs, InstallLevel installLevel, ComponentID[] copies, ComponentID copySource, ComponentID original, Date copyDate, ComponentID shadowedBy, Date shadowDate, ComponentID[] incomingLinks, ComponentID[] shadowing)
Create a new component extension descriptor.
- Parameters:
version- the SLEE version of the component. This is the version obtained from the DOCTYPE declaration in the component’s deployment descriptor.checksum- the fingerprint checksum of the component. This is calculated using the SHA-1 algorithm.manifestAttrs- the main attributes from the component jar manifest. Only relevant for components packaged in a jar.installLevel- the current install level of the component.copies- the identifiers of the components that have been copied from this component. This array includes components that were directly copied from this component, and any component that is an indirect copy of this component but who’s intermediate copied components have been removed from the SLEE.copySource- the identifier of the component this component was copied from, or if that component has been removed from the SLEE then the nearest ancestor component that has not been removed. This parameter should benullif the component is an original component installed using a regular deployable unit.original- the original component that this component is a copy of. This parameter should benullif this component is already an original component.copyDate- the date that the component was created, if the component is a copied component. This parameter should benullif the component is an original component.shadowedBy- the component that shadows this component. This parameter should benullif this component is not shadowed.shadowDate- the date that the component was shadowed, if the component is shadowed. This parameter should benullif the component is not shadowed.incomingLinks- the identifiers of the components that are links to this component.shadowing- the identifiers of the components that are shadowed by this component.
-
-
Method Detail
-
getVersion
public SleeVersion getVersion()
Get the SLEE version of the component. This is the version obtained from the DOCTYPE declaration in the component’s deployment descriptor.
- Returns:
- the SLEE version.
-
getChecksum
public byte[] getChecksum()
Get the fingerprint checksum of the component. This is calculated using the SHA-1 algorithm. Note that all components packaged together in the same deployable entity such as a component jar will have the same checksum.
- Returns:
- the checksum.
-
getInstallLevel
public InstallLevel getInstallLevel()
Get the current install level of the component.
- Returns:
- the install level.
-
getManifestAttributes
public Properties getManifestAttributes()
Get the main attributes from the component jar manifest. Only relevant for components packaged in a jar.
- Returns:
- the main attributes.
Returns
nullfor components not packaged in a jar.
-
getCopies
public ComponentID[] getCopies()
Get the identifiers of the components that have been copied from this component. The returned array includes components that were directly copied from this component, and any component that is an indirect copy of this component but who’s intermediate copied components have been removed from the SLEE.
- Returns:
- the component identifiers of the copied components
-
getCopySource
public ComponentID getCopySource()
Get the identifier of the component that this component was copied from or if that component has been removed from the SLEE then the nearest ancestor component that has not been removed.
- Returns:
- the identifier of the component that this component was copied from, or
nullif this component is an original component installed using a regular deployable unit.
-
getOriginal
public ComponentID getOriginal()
Get the identifier of the original component that this component is a copy of.
- Returns:
- the identifier of the original component that this component is a copy of, or
nullif this component is already an original component.
-
getCopyDate
public Date getCopyDate()
Get the date that the component was created, if the component is a copied component.
- Returns:
- the date that the component was created, or
nullif the component is not a copied component.
-
getShadowedBy
public ComponentID getShadowedBy()
Get the identifier of the component that shadows this component.
- Returns:
- the identifier of the component that shadows this component, or
nullif this component is not shadowed.
-
getShadowDate
public Date getShadowDate()
Get the date that the component was shadowed, if the component is shadowed.
- Returns:
- the date that the component was shadowed, or
nullif the component is not shadowed.
-
getIncomingLinks
public ComponentID[] getIncomingLinks()
Get the identifiers of the components that are links to this component.
- Returns:
- the identifiers of the components that are links to this component.
-
getShadowing
public ComponentID[] getShadowing()
Get the identifiers of the components that are shadowed by this component.
- Returns:
- the identifiers of the components that are shadowed by this component.
-
-