Class DummyNetworkListener
- java.lang.Object
-
- com.sun.enterprise.v3.services.impl.DummyNetworkListener
-
- All Implemented Interfaces:
NetworkListener
,ConfigBeanProxy
,PropertyBag
public class DummyNetworkListener extends Object implements NetworkListener
This is a dummy implementation of the NetworkListener interface. This is used to create a fake network-listener elements. This is used only to support lazyInit attribute of iiop and jms services through the light weight listener. Ultimately, these services will move to their own network-listener element in domain.xml (at which point we have to get rid of this fake object). But till the time IIOP and JMS service elements in domain.xml can move to use network-listener element, we will create this "fake network-listener" which in turn will help start light weight listener for these services.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.grizzly.config.dom.NetworkListener
NetworkListener.Duck
-
-
Field Summary
-
Fields inherited from interface org.glassfish.grizzly.config.dom.NetworkListener
DEFAULT_ADDRESS, DEFAULT_CONFIGURATION_FILE, DEFAULT_TYPE, ENABLED, JK_ENABLED, TYPE_PATTERN
-
-
Constructor Summary
Constructors Constructor Description DummyNetworkListener()
-
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 parent)
Performs a deep copy of this configuration element and returns it.Protocol
findHttpProtocol()
String
findHttpProtocolName()
Protocol
findProtocol()
ThreadPool
findThreadPool()
Transport
findTransport()
String
getAddress()
IP address to listen onString
getEnabled()
If false, a configured listener, is disabledString
getJkConfigurationFile()
String
getJkEnabled()
If true, a jk listener is enabledString
getName()
Network-listener name, which could be used as referenceNetworkListeners
getParent()
Returns the parent element of this configuration element.<T extends ConfigBeanProxy>
TgetParent(Class<T> c)
Returns the typed parent element of this configuration element.String
getPort()
Port to listen onString
getPortRange()
List<Property>
getProperty()
Gets the value of the property property.Property
getProperty(String name)
String
getPropertyValue(String name)
Returns a property value if the bean has properties and one of its properties name is equal to the one passed.String
getPropertyValue(String name, String defaultValue)
Returns a property value if the bean has properties and one of its properties name is equal to the one passed.String
getProtocol()
Reference to a protocolString
getThreadPool()
Reference to a thread-pool, defined earlier in the document.String
getTransport()
Reference to a low-level transportString
getType()
Network-listener name, which could be used as referencevoid
injectedInto(Object target)
Property
lookupProperty(String s)
Property
removeProperty(String s)
Property
removeProperty(Property property)
void
setAddress(String value)
void
setEnabled(String enabled)
void
setJkConfigurationFile(String jkConfigurationFile)
void
setJkEnabled(String value)
void
setName(String value)
void
setPort(String value)
void
setPortRange(String portRange)
void
setProtocol(String value)
void
setThreadPool(String value)
void
setTransport(String value)
void
setType(String type)
-
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:NetworkListener
Network-listener name, which could be used as reference- Specified by:
getType
in interfaceNetworkListener
-
setType
public void setType(String type)
- Specified by:
setType
in interfaceNetworkListener
-
getAddress
public String getAddress()
Description copied from interface:NetworkListener
IP address to listen on- Specified by:
getAddress
in interfaceNetworkListener
-
setAddress
public void setAddress(String value)
- Specified by:
setAddress
in interfaceNetworkListener
-
getEnabled
public String getEnabled()
Description copied from interface:NetworkListener
If false, a configured listener, is disabled- Specified by:
getEnabled
in interfaceNetworkListener
-
setEnabled
public void setEnabled(String enabled)
- Specified by:
setEnabled
in interfaceNetworkListener
-
getName
public String getName()
Description copied from interface:NetworkListener
Network-listener name, which could be used as reference- Specified by:
getName
in interfaceNetworkListener
-
setName
public void setName(String value)
- Specified by:
setName
in interfaceNetworkListener
-
getPort
public String getPort()
Description copied from interface:NetworkListener
Port to listen on- Specified by:
getPort
in interfaceNetworkListener
-
setPort
public void setPort(String value)
- Specified by:
setPort
in interfaceNetworkListener
-
getPortRange
public String getPortRange()
- Specified by:
getPortRange
in interfaceNetworkListener
-
setPortRange
public void setPortRange(String portRange)
- Specified by:
setPortRange
in interfaceNetworkListener
-
getProtocol
public String getProtocol()
Description copied from interface:NetworkListener
Reference to a protocol- Specified by:
getProtocol
in interfaceNetworkListener
-
setProtocol
public void setProtocol(String value)
- Specified by:
setProtocol
in interfaceNetworkListener
-
getThreadPool
public String getThreadPool()
Description copied from interface:NetworkListener
Reference to a thread-pool, defined earlier in the document.- Specified by:
getThreadPool
in interfaceNetworkListener
-
setThreadPool
public void setThreadPool(String value)
- Specified by:
setThreadPool
in interfaceNetworkListener
-
getTransport
public String getTransport()
Description copied from interface:NetworkListener
Reference to a low-level transport- Specified by:
getTransport
in interfaceNetworkListener
-
setTransport
public void setTransport(String value)
- Specified by:
setTransport
in interfaceNetworkListener
-
getJkEnabled
public String getJkEnabled()
Description copied from interface:NetworkListener
If true, a jk listener is enabled- Specified by:
getJkEnabled
in interfaceNetworkListener
-
setJkEnabled
public void setJkEnabled(String value)
- Specified by:
setJkEnabled
in interfaceNetworkListener
-
getJkConfigurationFile
public String getJkConfigurationFile()
- Specified by:
getJkConfigurationFile
in interfaceNetworkListener
-
setJkConfigurationFile
public void setJkConfigurationFile(String jkConfigurationFile)
- Specified by:
setJkConfigurationFile
in interfaceNetworkListener
-
injectedInto
public void injectedInto(Object target)
-
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
-
findProtocol
public Protocol findProtocol()
- Specified by:
findProtocol
in interfaceNetworkListener
-
findHttpProtocolName
public String findHttpProtocolName()
- Specified by:
findHttpProtocolName
in interfaceNetworkListener
-
findHttpProtocol
public Protocol findHttpProtocol()
- Specified by:
findHttpProtocol
in interfaceNetworkListener
-
findThreadPool
public ThreadPool findThreadPool()
- Specified by:
findThreadPool
in interfaceNetworkListener
-
findTransport
public Transport findTransport()
- Specified by:
findTransport
in interfaceNetworkListener
-
getParent
public NetworkListeners 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
- Specified by:
getParent
in interfaceNetworkListener
- Returns:
- the parent configuration node.
-
getParent
public <T extends ConfigBeanProxy> T getParent(Class<T> c)
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:
c
- parent's type- Returns:
- the parent configuration node.
-
deepCopy
public ConfigBeanProxy deepCopy(ConfigBeanProxy parent)
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:
parent
- the writable copy of the parent- Returns:
- a deep copy of itself.
-
getProperty
public List<Property> getProperty()
Description copied from interface:PropertyBag
Gets the value of the property property. This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not aset
method for the property property. For example, to add a new item, do as follows:getProperty().add(newItem);
Objects of the following type(s) are allowed in the listProperty
- 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
-
getProperty
public Property getProperty(String name)
- Specified by:
getProperty
in interfacePropertyBag
-
getPropertyValue
public String getPropertyValue(String name)
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:
name
- the property name requested- Returns:
- the property value or null if not found
-
getPropertyValue
public String getPropertyValue(String name, String defaultValue)
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:
name
- the property name requesteddefaultValue
- is the default value to return in case the property of that name does not exist in this bag- Returns:
- the property value
-
-