|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--attrib4j.examples.TransactionExample
A simple example class that demonstrates the use of custom attributes. The idea is to associate EJB like transaction attributes to a method, much like would be described in the deployment descriptor.
| Constructor Summary | |
TransactionExample()
Create an instance. |
|
| Method Summary | |
void |
doDatabaseWork(java.util.Vector inputData)
|
void |
extractAttributes()
Show how attributes can be extracted at runtime. |
static void |
main(java.lang.String[] args)
Run the example program. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransactionExample()
| Method Detail |
public void doDatabaseWork(java.util.Vector inputData)
inputData - represents information to use in a transaction.
public void extractAttributes()
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException - if cannot find declared method on class.public static void main(java.lang.String[] args)
args - The command line arguments, not used.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||