Class ComponentDescriptorExtensions

    • Constructor Detail

      • ComponentDescriptorExtensions

        @Deprecated
        public ComponentDescriptorExtensions​(SleeVersion version,
                                             byte[] checksum,
                                             Properties manifestAttrs,
                                             InstallLevel installLevel,
                                             ComponentID[] copies,
                                             ComponentID copySource,
                                             ComponentID original,
                                             Date copyDate)

        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 be null if 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 be null if 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 be null if 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 be null if 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 be null if 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 be null if the component is an original component.
        shadowedBy - the component that shadows this component. This parameter should be null if this component is not shadowed.
        shadowDate - the date that the component was shadowed, if the component is shadowed. This parameter should be null if 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 null for 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 null if 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 null if 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 null if 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 null if 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 null if 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.