September 2010
Intermediate to advanced
766 pages
18h 35m
English
Following is a full listing of all source code used in this runnable example.
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 ------------------------------------------------------|| //--------------------------------------------------------------------------|| ...