|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.connector.ConnectionBase
public abstract class ConnectionBase
This abstract class provides a set of common methods that used by all derived connection's implementations.
| Constructor Summary | |
|---|---|
protected |
ConnectionBase(ConnectionNotificationListener cnl)
Constructor. |
| Method Summary | |
|---|---|
protected void |
assertNotCleanedUp()
Throws the ResourceException if this connection has already been
cleaned up. |
protected void |
assertNotClosed()
Throws the ResourceException if this connection has already
been closed. |
protected void |
assertValid()
Throws the ResourceException if this connection has already been
closed or cleaned up. |
void |
changeAssociation(ConnectionNotificationListener newCnl)
The underlying managed connection calls this method to force this handle change the managed connection's association. |
void |
cleanUp()
Sets this connection to the state cleaned up. |
protected void |
setClosed()
Sets this connection to the state closed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ConnectionBase(ConnectionNotificationListener cnl)
cnl - The ConnectionNotificationListener to be used.| Method Detail |
|---|
protected void assertNotClosed()
throws IllegalStateException
ResourceException if this connection has already
been closed.
IllegalStateException - if this connection has
already been closed.
protected void assertNotCleanedUp()
throws IllegalStateException
ResourceException if this connection has already been
cleaned up.
IllegalStateException - if this connection has
already been cleaned up.
protected void assertValid()
throws ResourceException
ResourceException if this connection has already been
closed or cleaned up.
ResourceException - if this connection has already been closed or
cleaned up.
protected void setClosed()
throws ResourceException
ResourceException - thrown if this connection has already been
closed.public void cleanUp()
cleanUp in interface ConnectionHandlepublic void changeAssociation(ConnectionNotificationListener newCnl)
changeAssociation in interface ConnectionHandlenewCnl - The new listener to be used for this handle.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||