EJBClientInterceptor getInterceptorInstance() { EJBClientInterceptor interceptorInstance = this.interceptorInstance; if (interceptorInstance == null) { synchronized (this) { interceptorInstance = this.interceptorInstance; if (interceptorInstance == null) { final Class<? extends EJBClientInterceptor> type = this.interceptorClass; try { interceptorInstance = type.getConstructor().newInstance(); } catch (InstantiationException | NoSuchMethodException e) { throw Logs.MAIN.noInterceptorConstructor(type); } catch (IllegalAccessException e) { throw Logs.MAIN.interceptorConstructorNotAccessible(type); } catch (InvocationTargetException e) { throw Logs.MAIN.interceptorConstructorFailed(type, e.getCause()); } } this.interceptorInstance = interceptorInstance; } } return interceptorInstance; }
EJBClientInterceptor getInterceptorInstance() { EJBClientInterceptor interceptorInstance = this.interceptorInstance; if (interceptorInstance == null) { synchronized (this) { interceptorInstance = this.interceptorInstance; if (interceptorInstance == null) { final Class<? extends EJBClientInterceptor> type = this.interceptorClass; try { interceptorInstance = type.getConstructor().newInstance(); } catch (InstantiationException | NoSuchMethodException e) { throw Logs.MAIN.noInterceptorConstructor(type); } catch (IllegalAccessException e) { throw Logs.MAIN.interceptorConstructorNotAccessible(type); } catch (InvocationTargetException e) { throw Logs.MAIN.interceptorConstructorFailed(type, e.getCause()); } } this.interceptorInstance = interceptorInstance; } } return interceptorInstance; }
EJBClientInterceptor getInterceptorInstance() { EJBClientInterceptor interceptorInstance = this.interceptorInstance; if (interceptorInstance == null) { synchronized (this) { interceptorInstance = this.interceptorInstance; if (interceptorInstance == null) { final Class<? extends EJBClientInterceptor> type = this.interceptorClass; try { interceptorInstance = type.getConstructor().newInstance(); } catch (InstantiationException | NoSuchMethodException e) { throw Logs.MAIN.noInterceptorConstructor(type); } catch (IllegalAccessException e) { throw Logs.MAIN.interceptorConstructorNotAccessible(type); } catch (InvocationTargetException e) { throw Logs.MAIN.interceptorConstructorFailed(type, e.getCause()); } } this.interceptorInstance = interceptorInstance; } } return interceptorInstance; }