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