Interface DeployableType

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    BindingDescriptorType, DeployableUnitType

    public interface DeployableType
    extends Serializable

    Interface defining deployable types that may be installed into Rhino.

    Implementations of this interface must follow the singleton pattern by adhering to the following rules:

    • Define a single private no-argument constructor.

    • Define a public static final INSTANCE field of the same type as the class.

    • Implement the readResolve() method defined by the Serializable interface to always return the INSTANCE field value.

    Ideally the implementation class should also be final, and for future compatibility should also define the serialVersionUID field from Serializable.

    Since:
    Rhino 2.4.0
    • Method Detail

      • getDescriptiveName

        String getDescriptiveName()

        Get a descriptive name for this deployable type. This name is typically used in log messages, etc, to describe the deployable type.

        Returns:
        a descriptive name for this deployable type.
      • getShortName

        String getShortName()

        Get a short name for this deployable type. This name is typically a single word used to identify the deployable type.

        Returns:
        a short name for this deployable type.