org.ow2.easybeans.examples.statelessbean
Class StatelessBean

java.lang.Object
  extended by org.ow2.easybeans.examples.statelessbean.StatelessBean
All Implemented Interfaces:
StatelessLocal, StatelessRemote

public class StatelessBean
extends java.lang.Object
implements StatelessRemote

Simple stateless bean.

Author:
Florent Benoit

Constructor Summary
StatelessBean()
           
 
Method Summary
 int add(int a, int b)
          Compute a + b.
 int div(int a, int b)
          Divide a by b.
 void helloWorld()
          Hello world.
 void notInterceptedMethod()
          Methods without interceptors.
 java.lang.Object trace(InvocationContext invocationContext)
          Trace method's time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessBean

public StatelessBean()
Method Detail

helloWorld

public void helloWorld()
Hello world.

Specified by:
helloWorld in interface StatelessLocal

add

public int add(int a,
               int b)
Compute a + b.

Specified by:
add in interface StatelessLocal
Parameters:
a - first int
b - second int
Returns:
a + b

div

public int div(int a,
               int b)
Divide a by b.

Specified by:
div in interface StatelessLocal
Parameters:
a - first int
b - second int
Returns:
a / b

notInterceptedMethod

public void notInterceptedMethod()
Methods without interceptors.

Specified by:
notInterceptedMethod in interface StatelessLocal

trace

public java.lang.Object trace(InvocationContext invocationContext)
                       throws java.lang.Exception
Trace method's time.

Parameters:
invocationContext - contains attributes of invocation
Returns:
method's invocation result
Throws:
java.lang.Exception - if invocation fails


Copyright © 2006-2007 OW2 Consortium. All Rights Reserved.