org.superbiz.injection
Class PurchaseOrderBean
java.lang.Object
org.superbiz.injection.PurchaseOrderBean
- All Implemented Interfaces:
- PurchaseOrder
public class PurchaseOrderBean
- extends Object
- implements PurchaseOrder
This example demostrates the use of the injection of environment entries
using Resource annotation.
"EJB Core Contracts and Requirements" specification section 16.4.1.1.
Resource annotation is used to annotate the maxLineItems and default value of
10 is assigned. Deployer can modify the values of the environment entries at
deploy time in deployment descriptor.
- Version:
- $Rev: 601953 $ $Date: 2007-12-07 02:09:47 +0100 (Fr, 07. Dez 2007) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PurchaseOrderBean
public PurchaseOrderBean()
addLineItem
public void addLineItem(LineItem item)
throws TooManyItemsException
- Specified by:
addLineItem
in interface PurchaseOrder
- Throws:
TooManyItemsException
getMaxLineItems
public int getMaxLineItems()
- Specified by:
getMaxLineItems
in interface PurchaseOrder
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.