|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.superbiz.injection.PurchaseOrderBean
public class PurchaseOrderBean
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.
Constructor Summary | |
---|---|
PurchaseOrderBean()
|
Method Summary | |
---|---|
void |
addLineItem(LineItem item)
|
int |
getMaxLineItems()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PurchaseOrderBean()
Method Detail |
---|
public void addLineItem(LineItem item) throws TooManyItemsException
addLineItem
in interface PurchaseOrder
TooManyItemsException
public int getMaxLineItems()
getMaxLineItems
in interface PurchaseOrder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |