PageRenderTime 48ms CodeModel.GetById 40ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/jboss-as-7.1.1.Final/ejb3/src/main/java/org/jboss/as/ejb3/component/interceptors/HomeRemoveInterceptor.java

#
Java | 28 lines | 17 code | 6 blank | 5 comment | 0 complexity | 87e7c2aeed442b6f2c182ec2b4724c0f MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0
 1package org.jboss.as.ejb3.component.interceptors;
 2
 3import javax.ejb.Handle;
 4
 5import org.jboss.invocation.ImmediateInterceptorFactory;
 6import org.jboss.invocation.Interceptor;
 7import org.jboss.invocation.InterceptorContext;
 8import org.jboss.invocation.InterceptorFactory;
 9
10/**
11 *
12 *
13 * @author Stuart Douglas
14 */
15public class HomeRemoveInterceptor implements Interceptor {
16
17    public static final InterceptorFactory FACTORY = new ImmediateInterceptorFactory(new HomeRemoveInterceptor());
18
19    private HomeRemoveInterceptor() {
20    }
21
22    @Override
23    public Object processInvocation(final InterceptorContext context) throws Exception {
24        final Handle handle = (Handle) context.getParameters()[0];
25        handle.getEJBObject().remove();
26        return null;
27    }
28}