@Override protected Object createInterceptor(Class<?> interceptorClass) throws InstantiationException, IllegalAccessException { return container.createInterceptor(interceptorClass); }
public void initialiseInterceptorInstances() { try { EJBContainer c = (EJBContainer) container; List<Class<?>> interceptorClasses = c.getBeanContainer().getInterceptorClasses(); for(Class<?> interceptorClass : interceptorClasses) { interceptorInstances.put(interceptorClass, c.createInterceptor(interceptorClass)); } } catch(IllegalAccessException e) { throw new RuntimeException(e); } catch (InstantiationException e) { throw new RuntimeException(e.getCause()); } }