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

java.lang.Object
  extended by org.jboss.cdi.tck.tests.decorators.definition.lifecycle.ChargeDecorator
All Implemented Interfaces:
Serializable, BankAccount

@Decorator
public abstract class ChargeDecorator
extends Object
implements BankAccount, Serializable

Decorator is a managed bean and may use the PostConstruct and PreDestroy annotations to identify methods to be called back by the container at the appropriate points in the bean’s lifecycle.

Author:
Martin Kouba
See Also:
Serialized Form

Field Summary
static int charged
           
 
Constructor Summary
ChargeDecorator()
           
 
Method Summary
 void postConstruct()
           
 void preDestroy()
           
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.lifecycle.BankAccount
deposit, 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 BankAccount

reset

public static void reset()

postConstruct

@PostConstruct
public void postConstruct()

preDestroy

@PreDestroy
public void preDestroy()


Copyright © 2008-2013 Seam Framework. All Rights Reserved.