Class JmsHostWrapper
- java.lang.Object
-
- com.sun.enterprise.connectors.jms.system.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
ConfigBeanProxy.Duck
-
Nested classes/interfaces inherited from interface org.jvnet.hk2.config.types.PropertyBag
PropertyBag.Duck
-
-
Field Summary
-
Fields inherited from interface com.sun.enterprise.connectors.jms.config.JmsHost
PORT_PATTERN
-
-
Constructor Summary
Constructors Constructor Description JmsHostWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyaddProperty(Property property)<T extends ConfigBeanProxy>
TcreateChild(Class<T> type)Creates a child element of this configuration elementConfigBeanProxydeepCopy(ConfigBeanProxy proxy)Performs a deep copy of this configuration element and returns it.StringgetAdminPassword()Gets the value of the adminPassword property.StringgetAdminUserName()Gets the value of the adminUserName property.StringgetHost()Gets the value of the host property.StringgetLazyInit()Gets the value of lazyInit property if false, this listener is started during server startupStringgetName()Gets the value of the name property.ConfigBeanProxygetParent()Returns the parent element of this configuration element.<T extends ConfigBeanProxy>
TgetParent(Class<T> type)Returns the typed parent element of this configuration element.StringgetPort()Gets the value of the port property.List<Property>getProperty()Properties as perPropertyBagPropertygetProperty(String str)StringgetPropertyValue(String str)Returns a property value if the bean has properties and one of its properties name is equal to the one passed.StringgetPropertyValue(String str, String str2)Returns a property value if the bean has properties and one of its properties name is equal to the one passed.voidinjectedInto(Object target)PropertylookupProperty(String s)PropertyremoveProperty(String s)PropertyremoveProperty(Property property)voidsetAdminPassword(String value)Sets the value of the adminPassword property.voidsetAdminUserName(String value)Sets the value of the adminUserName property.voidsetHost(String value)Sets the value of the host property.voidsetLazyInit(String value)Sets the value of lazyInit property Specify is this listener should be started as part of server startup or notvoidsetName(String value)Sets the value of the name property.voidsetPort(String value)Sets the value of the port property.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:JmsHostGets the value of the name property.
-
setName
public void setName(String value) throws PropertyVetoException
Sets the value of the name property.- Specified by:
setNamein interfaceJmsHost- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getHost
public String getHost()
Description copied from interface:JmsHostGets the value of the host property.
-
setHost
public void setHost(String value) throws PropertyVetoException
Sets the value of the host property. ip V6 or V4 address or hostname- Specified by:
setHostin interfaceJmsHost- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getPort
public String getPort()
Description copied from interface:JmsHostGets the value of the port property. Port number used by the JMS service
-
setPort
public void setPort(String value) throws PropertyVetoException
Sets the value of the port property.- Specified by:
setPortin interfaceJmsHost- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getLazyInit
public String getLazyInit()
Description copied from interface:JmsHostGets the value of lazyInit property if false, this listener is started during server startup- Specified by:
getLazyInitin interfaceJmsHost- 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:
setLazyInitin interfaceJmsHost- Parameters:
value- true if the listener is to be started lazily; false otherwise
-
getAdminUserName
public String getAdminUserName()
Description copied from interface:JmsHostGets the value of the adminUserName property. Specifies the admin username- Specified by:
getAdminUserNamein interfaceJmsHost- Returns:
- possible object is
String
-
setAdminUserName
public void setAdminUserName(String value) throws PropertyVetoException
Sets the value of the adminUserName property.- Specified by:
setAdminUserNamein interfaceJmsHost- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getAdminPassword
public String getAdminPassword()
Description copied from interface:JmsHostGets the value of the adminPassword property. Attribute specifies the admin password- Specified by:
getAdminPasswordin interfaceJmsHost- Returns:
- possible object is
String
-
setAdminPassword
public void setAdminPassword(String value) throws PropertyVetoException
Description copied from interface:JmsHostSets the value of the adminPassword property.- Specified by:
setAdminPasswordin interfaceJmsHost- Parameters:
value- allowed object isString- Throws:
PropertyVetoException
-
getProperty
public List<Property> getProperty()
Description copied from interface:JmsHostProperties as perPropertyBag- Specified by:
getPropertyin interfaceJmsHost- Specified by:
getPropertyin interfacePropertyBag- Returns:
- the property list
-
addProperty
public Property addProperty(Property property)
- Specified by:
addPropertyin interfacePropertyBag
-
lookupProperty
public Property lookupProperty(String s)
- Specified by:
lookupPropertyin interfacePropertyBag
-
removeProperty
public Property removeProperty(String s)
- Specified by:
removePropertyin interfacePropertyBag
-
removeProperty
public Property removeProperty(Property property)
- Specified by:
removePropertyin interfacePropertyBag
-
deepCopy
public ConfigBeanProxy deepCopy(ConfigBeanProxy proxy)
Description copied from interface:ConfigBeanProxyPerforms 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:
deepCopyin interfaceConfigBeanProxy- Parameters:
proxy- the writable copy of the parent- Returns:
- a deep copy of itself.
-
createChild
public <T extends ConfigBeanProxy> T createChild(Class<T> type) throws TransactionFailure
Description copied from interface:ConfigBeanProxyCreates a child element of this configuration element- Specified by:
createChildin interfaceConfigBeanProxy- Parameters:
type- the child element type- Returns:
- the newly created child instance
- Throws:
TransactionFailure- when called outside the boundaries of a transaction
-
getParent
public ConfigBeanProxy getParent()
Description copied from interface:ConfigBeanProxyReturns 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:
getParentin interfaceConfigBeanProxy- Returns:
- the parent configuration node.
-
getParent
public <T extends ConfigBeanProxy> T getParent(Class<T> type)
Description copied from interface:ConfigBeanProxyReturns 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:
getParentin interfaceConfigBeanProxy- 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:PropertyBagReturns 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:
getPropertyValuein interfacePropertyBag- Parameters:
str- the property name requestedstr2- 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:PropertyBagReturns a property value if the bean has properties and one of its properties name is equal to the one passed.- Specified by:
getPropertyValuein interfacePropertyBag- Parameters:
str- the property name requested- Returns:
- the property value or null if not found
-
getProperty
public Property getProperty(String str)
- Specified by:
getPropertyin interfacePropertyBag
-
-