Source Listing
Following is a full listing of all source code used in this runnable example.
Implementation Resources
AuditedInvocation.java
package org.jboss.ejb3.examples.ch18.tuner; import java.security.Principal; import javax.interceptor.InvocationContext; /** * Data object encapsulating the auditable properties behind an invocation * * @author <a href="mailto:andrew.rubinger@jboss.org">ALR</a> * @version $Revision: $ */ public class AuditedInvocation { //--------------------------------------------------------------------------|| // Instance Members --------------------------------------------------------|| //--------------------------------------------------------------------------|| /** * Invoked context */ private final InvocationContext context; /** * Caller */ private final Principal caller; //--------------------------------------------------------------------------|| // Constructor -------------------------------------------------------------|| //--------------------------------------------------------------------------|| /** * Creates a new instance */ AuditedInvocation(final InvocationContext context, final Principal caller) { // Precondition checks assert context != null : "context must be specified"; assert caller != null : "caller must be specified"; // Set this.context = context; this.caller = caller; } //--------------------------------------------------------------------------|| // Functional Methods ------------------------------------------------------|| //--------------------------------------------------------------------------|| ...
Get Enterprise JavaBeans 3.1, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.