|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.tools.services.samples.GreetingService
GreetingService is a sample service provider implementing the Greeting service.
| Field Summary | |
protected java.lang.String |
_identity
|
| Constructor Summary | |
GreetingService(java.lang.String identity)
GreetingService constructor registers the greeting service. |
|
| Method Summary | |
double |
add(double x,
double y)
Add two numbers and return the result. |
static void |
main(java.lang.String[] args)
Launch the Greeting service. |
java.lang.String |
sayHelloTo(java.lang.String receiver)
Generate a greeting incorporating the receiver. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final java.lang.String _identity
| Constructor Detail |
public GreetingService(java.lang.String identity)
identity - The identity of the this greeting service provider.| Method Detail |
public java.lang.String sayHelloTo(java.lang.String receiver)
sayHelloTo in interface Greetingreceiver - The receiver to address in the greeting.
public double add(double x,
double y)
add in interface Greetingx - An addendy - An augend
public static void main(java.lang.String[] args)
args - The identities of each service to provide.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||