Class ChargeDecorator
- java.lang.Object
-
- org.jboss.cdi.tck.tests.full.decorators.definition.ChargeDecorator
-
- All Implemented Interfaces:
Account
@Decorator public abstract class ChargeDecorator extends Object implements Account
Only withdrawal is charged. Implicit implementation that calls the method on the delegate is provided forAccount.deposit(int).- Author:
- Martin Kouba
-
-
Field Summary
Fields Modifier and Type Field Description static intcharged
-
Constructor Summary
Constructors Constructor Description ChargeDecorator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddeposit(int amount)static voidreset()voidwithdraw(int amount)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.cdi.tck.tests.full.decorators.definition.Account
getBalance
-
-