java.lang.Object
com.mjh.switchrmi.transport.test.IScopeTestImpl
- All Implemented Interfaces:
- IScopeTest
- public class IScopeTestImpl
- extends java.lang.Object
- implements IScopeTest
A test interface, used ot confirm that the applicaiton/session/request
scoping of published objects is working.
|
Method Summary |
int |
getCount()
Return the current value of the same internal integer counter
incremented by the incrementCount() method. |
int |
getObjectId()
Return a unique number, different for every instance of IScopeTest. |
void |
incrementCount(int value)
Increment an internal integer counter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
counter
private int counter
IScopeTestImpl
public IScopeTestImpl()
getObjectId
public int getObjectId()
- Return a unique number, different for every instance of IScopeTest.
If the object is published with application or session scope then
sconsecutive invocations of this method on the same client proxy
will return the same value.
- Specified by:
getObjectId in interface IScopeTest
incrementCount
public void incrementCount(int value)
- Increment an internal integer counter
- Specified by:
incrementCount in interface IScopeTest
getCount
public int getCount()
- Return the current value of the same internal integer counter
incremented by the incrementCount() method.
- Specified by:
getCount in interface IScopeTest