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 Property
addProperty(Property property)
<T extends ConfigBeanProxy>
TcreateChild(Class<T> type)
Creates a child element of this configuration elementConfigBeanProxy
deepCopy(ConfigBeanProxy proxy)
Performs a deep copy of this configuration element and returns it.String
getAdminPassword()
Gets the value of the adminPassword property.String
getAdminUserName()
Gets the value of the adminUserName property.String
getHost()
Gets the value of the host property.String
getLazyInit()
Gets the value of lazyInit property if false, this listener is started during server startupString
getName()
Gets the value of the name property.ConfigBeanProxy
getParent()
Returns the parent element of this configuration element.<T extends ConfigBeanProxy>
TgetParent(Class<T> type)
Returns the typed parent element of this configuration element.String
getPort()
Gets the value of the port property.List<Property>
getProperty()
Properties as perPropertyBag
Property
getProperty(String str)
String
getPropertyValue(String str)
Returns a property value if the bean has properties and one of its properties name is equal to the one passed.String
getPropertyValue(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.void
injectedInto(Object target)
Property
lookupProperty(String s)
Property
removeProperty(String s)
Property
removeProperty(Property property)
void
setAdminPassword(String value)
Sets the value of the adminPassword property.void
setAdminUserName(String value)
Sets the value of the adminUserName property.void
setHost(String value)
Sets the value of the host property.void
setLazyInit(String value)
Sets the value of lazyInit property Specify is this listener should be started as part of server startup or notvoid
setName(String value)
Sets the value of the name property.void
setPort(String value)
Sets the value of the port property.
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:JmsHost
Gets the value of the name property.
-
setName
public void setName(String value) throws PropertyVetoException
Sets the value of the name property.- Specified by:
setName
in interfaceJmsHost
- Parameters:
value
- allowed object isString
- Throws:
PropertyVetoException
-
getHost
public String getHost()
Description copied from interface:JmsHost
Gets 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:
setHost
in interfaceJmsHost
- Parameters:
value
- allowed object isString
- Throws:
PropertyVetoException
-
getPort
public String getPort()
Description copied from interface:JmsHost
Gets 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:
setPort
in interfaceJmsHost
- Parameters:
value
- allowed object isString
- Throws:
PropertyVetoException
-
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 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:
setLazyInit
in interfaceJmsHost
- 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 interfaceJmsHost
- Returns:
- possible object is
String
-
setAdminUserName
public void setAdminUserName(String value) throws PropertyVetoException
Sets the value of the adminUserName property.- Specified by:
setAdminUserName
in interfaceJmsHost
- Parameters:
value
- allowed object isString
- Throws:
PropertyVetoException
-
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 interfaceJmsHost
- Returns:
- possible object is
String
-
setAdminPassword
public void setAdminPassword(String value) throws PropertyVetoException
Description copied from interface:JmsHost
Sets the value of the adminPassword property.- Specified by:
setAdminPassword
in interfaceJmsHost
- Parameters:
value
- allowed object isString
- Throws:
PropertyVetoException
-
getProperty
public List<Property> getProperty()
Description copied from interface:JmsHost
Properties as perPropertyBag
- Specified by:
getProperty
in interfaceJmsHost
- Specified by:
getProperty
in interfacePropertyBag
- Returns:
- the property list
-
addProperty
public Property addProperty(Property property)
- Specified by:
addProperty
in interfacePropertyBag
-
lookupProperty
public Property lookupProperty(String s)
- Specified by:
lookupProperty
in interfacePropertyBag
-
removeProperty
public Property removeProperty(String s)
- Specified by:
removeProperty
in interfacePropertyBag
-
removeProperty
public Property removeProperty(Property property)
- Specified by:
removeProperty
in interfacePropertyBag
-
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 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:ConfigBeanProxy
Creates a child element of this configuration element- Specified by:
createChild
in 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: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 interfaceConfigBeanProxy
- 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 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: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 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: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 interfacePropertyBag
- Parameters:
str
- the property name requested- Returns:
- the property value or null if not found
-
getProperty
public Property getProperty(String str)
- Specified by:
getProperty
in interfacePropertyBag
-
-