Interface TargetOwner

  • All Known Implementing Classes:
    AbstractDeploymentFacility, RemoteDeploymentFacility

    public interface TargetOwner
    Represents any type of owner of a Target.

    Each Target object needs to know what object created it so it can delegate certain task to that object. Different classes that connect to the admin back-end in different ways can create Target objects, so this interface prescribes the behavior that each such "owner" of Targets must provide.

    Fully-formed Target objects will have links back to their respective TargetOwner objects.

    Author:
    tjquinn
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.enterprise.deploy.spi.Target createTarget​(String name)
      Creates a single Target with the given name.
      javax.enterprise.deploy.spi.Target[] createTargets​(String[] names)
      Creates several Target objects with the specified names.
      String exportClientStubs​(String appName, String destDir)
      Exports the Client stub jars to the given location.
      String getWebURL​(javax.enterprise.deploy.spi.TargetModuleID tmid)
      Returns the Web URL for the specified module on the Target implied by the TargetModuleID.
      void setWebURL​(javax.enterprise.deploy.spi.TargetModuleID tmid, String webURL)
      Sets the Web URL for the specified module on the Target implied by the TargetModuleID.
    • Method Detail

      • createTarget

        javax.enterprise.deploy.spi.Target createTarget​(String name)
        Creates a single Target with the given name.
        Parameters:
        name - the name of the Target to be returned
        Returns:
        a new Target
      • createTargets

        javax.enterprise.deploy.spi.Target[] createTargets​(String[] names)
        Creates several Target objects with the specified names.
        Parameters:
        names - the names of the targets to be returned
        Returns:
        new Targets, one for each name specified
      • getWebURL

        String getWebURL​(javax.enterprise.deploy.spi.TargetModuleID tmid)
        Returns the Web URL for the specified module on the Target implied by the TargetModuleID.
        Parameters:
        tmid -
        Returns:
        web url
      • setWebURL

        void setWebURL​(javax.enterprise.deploy.spi.TargetModuleID tmid,
                       String webURL)
        Sets the Web URL for the specified module on the Target implied by the TargetModuleID. represents a Web module or submodule on a Target.
        Parameters:
        tmid -
        the - URL
      • exportClientStubs

        String exportClientStubs​(String appName,
                                 String destDir)
                          throws IOException
        Exports the Client stub jars to the given location.
        Parameters:
        appName - The name of the application or module.
        destDir - The directory into which the stub jar file should be exported.
        Returns:
        the absolute location to the main jar file.
        Throws:
        IOException