org.apache.camel.example.server
Class Treble
java.lang.Object
org.apache.camel.example.server.Treble
- All Implemented Interfaces:
- Multiplier
@Service(value="multiplier")
public class Treble
- extends Object
- implements Multiplier
This is the implementation of the business service.
Method Summary |
int |
multiply(int originalNumber)
Multiplies the given number by a pre-defined constant. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Treble
public Treble()
multiply
public int multiply(int originalNumber)
- Description copied from interface:
Multiplier
- Multiplies the given number by a pre-defined constant.
- Specified by:
multiply
in interface Multiplier
- Parameters:
originalNumber
- The number to be multiplied
- Returns:
- The result of the multiplication
Apache CAMEL