Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mjh.switchrmi.transport.test
Class IScopeTestImpl  view IScopeTestImpl download IScopeTestImpl.java

java.lang.Object
  extended bycom.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.


Field Summary
private  int counter
           
 
Constructor Summary
IScopeTestImpl()
           
 
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
 

Field Detail

counter

private int counter
Constructor Detail

IScopeTestImpl

public IScopeTestImpl()
Method Detail

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