org.jboss.cdi.tck.tests.decorators.definition
Class ChargeDecorator
java.lang.Object
org.jboss.cdi.tck.tests.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 for
Account.deposit(int).
- Author:
- Martin Kouba
| 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.decorators.definition.Account |
getBalance |
charged
public static int charged
ChargeDecorator
public ChargeDecorator()
withdraw
public void withdraw(int amount)
- Specified by:
withdraw in interface Account
deposit
public abstract void deposit(int amount)
- Specified by:
deposit in interface Account
reset
public static void reset()
Copyright © 2008-2012 Seam Framework. All Rights Reserved.