Class DeployableElement


  • public class DeployableElement
    extends Object
    Nested Ant element to wrap a Deployable.
    • Constructor Detail

      • DeployableElement

        public DeployableElement()
    • Method Detail

      • setFile

        public void setFile​(String file)
        Parameters:
        file - the deployable file to wrap
      • setPingUrl

        public void setPingUrl​(URL pingURL)
        Parameters:
        pingURL - the deployable ping URL
      • setPingTimeout

        public void setPingTimeout​(Long pingTimeout)
        Parameters:
        pingTimeout - the deployable ping timeout
      • setType

        public void setType​(String type)
        Parameters:
        type - the deployable type ("war", "ejb", "ear", etc)
      • setClass

        public void setClass​(Class deployableClass)
        Parameters:
        deployableClass - a custom deployable class to register against the specified type
      • addConfiguredProperty

        public void addConfiguredProperty​(Property property)
        Add a deployable property.
        Parameters:
        property - the deployable property to add
      • createDeployable

        public Deployable createDeployable​(String containerId)
        Parameters:
        containerId - the container id to which this deployable will be deployed
        Returns:
        a Deployable representing this nested Ant element
      • createDeployableMonitor

        public DeployableMonitor createDeployableMonitor()
        Returns:
        deployable monitor, if defined.
      • getSetterMethodName

        protected String getSetterMethodName​(String propertyName)
        Transform a property into a method name by transforming the first letter of the property name to uppercase.
        Parameters:
        propertyName - the property name to transform into a setter method
        Returns:
        the setter method's name
      • getType

        public DeployableType getType()
        Returns:
        the deployable type
      • getFile

        public String getFile()
        Returns:
        the location of the deployable file to wrap
      • getDeployableClass

        public Class getDeployableClass()
        Returns:
        the custom deployable implementation to use (if defined by the user)
      • getProperties

        public List<Property> getProperties()
        Returns:
        the list of deployable properties