Interface DeployableFactory

  • All Known Implementing Classes:
    DefaultDeployableFactory

    public interface DeployableFactory
    Factory to create Deployable instances.
    • Method Detail

      • registerDeployable

        void registerDeployable​(String containerId,
                                DeployableType deployableType,
                                Class<? extends Deployable> deployableClass)
        Registers a deployable implementation against a container.
        Parameters:
        containerId - the container id attached to this deployable class
        deployableType - the type to differentiate this deployable from others for the specified container
        deployableClass - the deployable implementation class to register
      • isDeployableRegistered

        boolean isDeployableRegistered​(String containerId,
                                       DeployableType deployableType)
        Checks if the deployable specified by the deployable type is registered for a specific container.
        Parameters:
        containerId - the container id attached to the deployable type class
        deployableType - the type to differentiate this deployable from others for the specified container
        Returns:
        true if the specified deployable is already registered or false otherwise
      • createDeployable

        Deployable createDeployable​(String containerId,
                                    String deployableLocation,
                                    DeployableType deployableType)
        Creates an Deployable instance, wrapping a file or a directory.
        Parameters:
        containerId - the container id for which to create the deployable for
        deployableLocation - the location of the deployable being wrapped, which must point to a file or a directory (for an expanded deployable)
        deployableType - the deployable type to create
        Returns:
        the Deployable instance