org.ow2.frascati.examples.counter.api
Interface CounterService

All Known Implementing Classes:
CounterServiceImpl

public interface CounterService

A simple counter service.

Author:
Philippe Merle

Method Summary
 void decrement(int v)
          Decrement the counter value.
 int getValue()
          Return the counter value.
 void increment(int v)
          Increment the counter value.
 void resetIt()
          Reset the counter value.
 

Method Detail

getValue

int getValue()
Return the counter value.

Returns:
the counter value.

increment

void increment(int v)
Increment the counter value.


decrement

void decrement(int v)
Decrement the counter value.


resetIt

void resetIt()
Reset the counter value. NOTE: Apache CXF 2.2.2 does not allow to name this method 'reset'. Because the proxy generated by the Apache CXF JAXRS client frontend inherits from the Client interface which already declares a 'reset' method.



Copyright © 2010 OW2 Consortium. All Rights Reserved.