Class DeployableUnitDescriptorExtensions

    • Constructor Detail

      • DeployableUnitDescriptorExtensions

        public DeployableUnitDescriptorExtensions​(DeployableType deployableType,
                                                  SleeVersion sleeVersion,
                                                  int duJarID,
                                                  byte[] checksum,
                                                  Properties manifestAttrs,
                                                  ComponentID[] extensionComponents)

        Create a new deployable unit extension descriptor.

        Parameters:
        deployableType - the type of deployable unit this is.
        sleeVersion - the SLEE version of the deployable unit. For a standard SLEE deployable unit this is the version obtained from the DOCTYPE declaration in the deployable unit’s deployment descriptor.
        duJarID - the unique deployable unit jar identifier.
        checksum - the fingerprint checksum of the deployable unit file. This is calculated using the SHA-1 algorithm.
        manifestAttrs - the main attributes from the deployable unit jar manifest.
        extensionComponents - the component identifiers of any Rhino-specific extension components provided by the deployable unit.
    • Method Detail

      • getDeployableType

        public DeployableType getDeployableType()

        Get the type of deployable unit.

        Returns:
        the type of deployable unit.
      • getSleeVersion

        public SleeVersion getSleeVersion()

        Get the SLEE version of the deployable unit. For a standard SLEE deployable unit this is the version obtained from the DOCTYPE declaration in the deployable unit’s deployment descriptor.

        Returns:
        the SLEE version of the deployable unit.
      • getDeployableUnitJarID

        public int getDeployableUnitJarID()

        Get the deployable unit jar identifier.

        If the same deployable unit is installed into multiple namespaces, the descriptor for each of those deployable units will contain the same value for this identifier. In any other case, this identifier will differ, indicating that the deployable units are different jars.

        Returns:
        the deployable unit jar idenitifer.
      • getChecksum

        public byte[] getChecksum()

        Get the fingerprint checksum of the deployable unit file. This is calculated using the SHA-1 algorithm.

        Returns:
        the checksum.
      • getManifestAttributes

        public Properties getManifestAttributes()

        Get the main attributes from the deployable unit jar manifest.

        Returns:
        the main attributes.
      • getExtensionComponents

        public ComponentID[] getExtensionComponents()

        Get the component identifiers of the Rhino-specific extension components provided by the deployable unit. The current extension components types are:

        Returns:
        the component identifiers of the Rhino-specific extension components provided by the deployable unit.