Class JmsHostWrapper

  • All Implemented Interfaces:
    JmsHost, jakarta.validation.Payload, ConfigExtension, Container, ConfigBeanProxy, PropertyBag

    public class JmsHostWrapper
    extends Object
    implements JmsHost
    A wrapper class for the JmsHost serverbean since you cannot clone JmsHost elements without being a part of a transaction This class is primaritly used to create copies of the default jmshost element during auto-clustering
    • Constructor Detail

      • JmsHostWrapper

        public JmsHostWrapper()
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: JmsHost
        Gets the value of the name property.
        Specified by:
        getName in interface JmsHost
        Returns:
        possible object is String
      • getHost

        public String getHost()
        Description copied from interface: JmsHost
        Gets the value of the host property.
        Specified by:
        getHost in interface JmsHost
        Returns:
        possible object is String
      • getPort

        public String getPort()
        Description copied from interface: JmsHost
        Gets the value of the port property. Port number used by the JMS service
        Specified by:
        getPort in interface JmsHost
        Returns:
        possible object is String
      • getLazyInit

        public String getLazyInit()
        Description copied from interface: JmsHost
        Gets the value of lazyInit property if false, this listener is started during server startup
        Specified by:
        getLazyInit in interface JmsHost
        Returns:
        true or false
      • setLazyInit

        public void setLazyInit​(String value)
        Sets the value of lazyInit property Specify is this listener should be started as part of server startup or not
        Specified by:
        setLazyInit in interface JmsHost
        Parameters:
        value - true if the listener is to be started lazily; false otherwise
      • getAdminUserName

        public String getAdminUserName()
        Description copied from interface: JmsHost
        Gets the value of the adminUserName property. Specifies the admin username
        Specified by:
        getAdminUserName in interface JmsHost
        Returns:
        possible object is String
      • getAdminPassword

        public String getAdminPassword()
        Description copied from interface: JmsHost
        Gets the value of the adminPassword property. Attribute specifies the admin password
        Specified by:
        getAdminPassword in interface JmsHost
        Returns:
        possible object is String
      • deepCopy

        public ConfigBeanProxy deepCopy​(ConfigBeanProxy proxy)
        Description copied from interface: ConfigBeanProxy
        Performs a deep copy of this configuration element and returns it. The parent of this configuration must be locked in a transaction and the newly created child will be automatically enrolled in the parent's transaction.
        Specified by:
        deepCopy in interface ConfigBeanProxy
        Parameters:
        proxy - the writable copy of the parent
        Returns:
        a deep copy of itself.
      • getParent

        public ConfigBeanProxy getParent()
        Description copied from interface: ConfigBeanProxy
        Returns the parent element of this configuration element. It is possible to return a not null parent while the parent knows nothing of this child element. This could happen when the child element was removed from the configuration tree, yet it's parent would not have been reset.
        Specified by:
        getParent in interface ConfigBeanProxy
        Returns:
        the parent configuration node.
      • getParent

        public <T extends ConfigBeanProxy> T getParent​(Class<T> type)
        Description copied from interface: ConfigBeanProxy
        Returns the typed parent element of this configuration element. It is possible to return a not null parent while the parent knows nothing of this child element. This could happen when the child element was removed from the configuration tree, yet it's parent would not have been reset.
        Specified by:
        getParent in interface ConfigBeanProxy
        Parameters:
        type - parent's type
        Returns:
        the parent configuration node.
      • injectedInto

        public void injectedInto​(Object target)
      • getPropertyValue

        public String getPropertyValue​(String str,
                                       String str2)
        Description copied from interface: PropertyBag
        Returns a property value if the bean has properties and one of its properties name is equal to the one passed. Otherwise return the default value.
        Specified by:
        getPropertyValue in interface PropertyBag
        Parameters:
        str - the property name requested
        str2 - is the default value to return in case the property of that name does not exist in this bag
        Returns:
        the property value
      • getPropertyValue

        public String getPropertyValue​(String str)
        Description copied from interface: PropertyBag
        Returns a property value if the bean has properties and one of its properties name is equal to the one passed.
        Specified by:
        getPropertyValue in interface PropertyBag
        Parameters:
        str - the property name requested
        Returns:
        the property value or null if not found