ch.elca.el4j.tests.util.metadata.annotations
Class FooImpl

java.lang.Object
  extended by ch.elca.el4j.tests.util.metadata.annotations.FooImpl
All Implemented Interfaces:
Foo

public class FooImpl
extends Object
implements Foo

This class contains a method called test(int) with annotation declarations.

Author:
Raphael Boog (RBO), Martin Zeltner (MZE)
File-location:
FooImpl
Last check-in date:
2009-08-04 14:35:53 +0200 (Di, 04. Aug 2009) by swismer for revision 3875

Nested Class Summary
static class FooImpl.Bar
          Inner class for testing interception.
 
Field Summary
static int BASE
          The BASE constant.
private  int m_base
          The base member variable.
private static org.slf4j.Logger s_logger
          Private logger of this class.
 
Constructor Summary
FooImpl()
           
 
Method Summary
 int getBase()
          The getter method for the base member.
 void setBase(int base)
          The setter method for the base member.
 int test(int number)
          This method will be intercepted by the defined annotations.
 int test(int number, FooImpl.Bar innerClass)
          This method will be intercepted by the defined annotations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE

public static final int BASE
The BASE constant.

See Also:
Constant Field Values

s_logger

private static org.slf4j.Logger s_logger
Private logger of this class.


m_base

private int m_base
The base member variable.

Constructor Detail

FooImpl

public FooImpl()
Method Detail

test

@ExampleAnnotationOne(factor=5)
@ExampleAnnotationTwo(factor=9)
public int test(int number)
This method will be intercepted by the defined annotations.

Specified by:
test in interface Foo
Parameters:
number - The number to multiply with the base variable.
Returns:
The product of base and number.

test

@ExampleAnnotationOne(factor=5)
@ExampleAnnotationTwo(factor=9)
public int test(int number,
                                                                      FooImpl.Bar innerClass)
This method will be intercepted by the defined annotations.

Specified by:
test in interface Foo
Parameters:
number - The number to multiply with the base variable.
innerClass - The inner class.
Returns:
The product of base and number.

getBase

public int getBase()
The getter method for the base member.

Returns:
the base

setBase

public void setBase(int base)
The setter method for the base member.

Parameters:
base - the base to set


Copyright © 2005-2011 ELCA. All Rights Reserved.