|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.geronimo.mail.ProtocolGBean
A generic GBean that provides for the configuration of a JavaMail protocol.
Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set.
Field Summary | |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Constructor Summary | |
ProtocolGBean()
Construct an instance of ProtocolGBean |
|
ProtocolGBean(String objectName,
String protocol,
Properties properties,
String host,
String user)
Construct an instance of ProtocolGBean Values that are set in the individual member variables will override any of the corresponding values that have been set in the properties set. |
Method Summary | |
void |
addOverrides(Properties props)
Add the overrides from the member variables to the properties file. |
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
String |
getHost()
Returns the host the protocol connects to. |
String |
getObjectName()
Returns the object name of this protocol GBean |
Properties |
getProperties()
Returns the set of default properties for the protocol. |
String |
getProtocol()
Returns the name of the protocol |
String |
getUser()
Returns the default user name for the protocol. |
void |
setHost(String host)
Set the host the protocol connects to. |
void |
setProperties(Properties properties)
Sets the set of default properties for the protocol. |
void |
setUser(String user)
Sets the default user name for the protocol. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail |
public ProtocolGBean()
public ProtocolGBean(String objectName, String protocol, Properties properties, String host, String user)
objectName
- the object name of the protocolprotocol
- the name of the protocolproperties
- the set of default properties for the protocolhost
- the host the protocol connects touser
- the default name for the protocolMethod Detail |
public String getObjectName()
public Properties getProperties()
public void setProperties(Properties properties)
properties
- set of default properties for the protocolpublic String getProtocol()
public String getHost()
public void setHost(String host)
host
- the host the protocol connects topublic String getUser()
public void setUser(String user)
user
- the default user name for the protocolpublic void addOverrides(Properties props)
public void doStart() throws Exception
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
Exception
public void doStop() throws Exception
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
Exception
public void doFail()
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |