Package org.jboss.as.ejb3.component.interceptors

Source Code of org.jboss.as.ejb3.component.interceptors.HomeRemoveInterceptor

package org.jboss.as.ejb3.component.interceptors;

import javax.ejb.Handle;

import org.jboss.invocation.ImmediateInterceptorFactory;
import org.jboss.invocation.Interceptor;
import org.jboss.invocation.InterceptorContext;
import org.jboss.invocation.InterceptorFactory;

/**
*
*
* @author Stuart Douglas
*/
public class HomeRemoveInterceptor implements Interceptor {

    public static final InterceptorFactory FACTORY = new ImmediateInterceptorFactory(new HomeRemoveInterceptor());

    private HomeRemoveInterceptor() {
    }

    @Override
    public Object processInvocation(final InterceptorContext context) throws Exception {
        final Handle handle = (Handle) context.getParameters()[0];
        handle.getEJBObject().remove();
        return null;
    }
}
TOP

Related Classes of org.jboss.as.ejb3.component.interceptors.HomeRemoveInterceptor

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.