1 /* 2 * Copyright (c) 2002-2006 by OpenSymphony 3 * All rights reserved. 4 */ 5 package com.opensymphony.xwork2.interceptor; 6 7 import com.opensymphony.xwork2.ActionInvocation; 8 9 /** 10 * Provides default implementations of optional lifecycle methods 11 */ 12 public abstract class AbstractInterceptor implements Interceptor { 13 14 /** 15 * Does nothing 16 */ 17 public void init() { 18 } 19 20 /** 21 * Does nothing 22 */ 23 public void destroy() { 24 } 25 26 27 /** 28 * Override to handle interception 29 */ 30 public abstract String intercept(ActionInvocation invocation) throws Exception; 31 }