org.jboss.cdi.tck.tests.decorators.definition
Class ChargeDecorator

java.lang.Object
  extended by 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

Field Summary
static int charged
           
 
Constructor Summary
ChargeDecorator()
           
 
Method Summary
abstract  void deposit(int amount)
           
static void reset()
           
 void withdraw(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.decorators.definition.Account
getBalance
 

Field Detail

charged

public static int charged
Constructor Detail

ChargeDecorator

public ChargeDecorator()
Method Detail

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-2013 Seam Framework. All Rights Reserved.