public Builder addInterceptor(EJBClientInterceptor interceptor) { Assert.checkNotNullParam("interceptor", interceptor); if (globalInterceptors == null) { globalInterceptors = new ArrayList<>(); } globalInterceptors.add(EJBClientInterceptorInformation.forInstance(interceptor)); return this; }
private InterceptorList registeredInterceptors() { final EJBClientInterceptor.Registration[] currentRegistrations = this.registrations.clone(); ArrayList<EJBClientInterceptorInformation> al = new ArrayList<>(); for (EJBClientInterceptor.Registration r: currentRegistrations) { al.add(EJBClientInterceptorInformation.forInstance(r.getInterceptor())); } return InterceptorList.ofList(al); }
public Builder addClassInterceptor(String className, EJBClientInterceptor interceptor) { Assert.checkNotNullParam("className", className); Assert.checkNotNullParam("interceptor", interceptor); if (classInterceptors == null) { classInterceptors = new ArrayList<>(); } classInterceptors.add(new ClassInterceptor(className, EJBClientInterceptorInformation.forInstance(interceptor))); return this; }
public Builder addMethodInterceptor(String className, EJBMethodLocator methodLocator, EJBClientInterceptor interceptor) { Assert.checkNotNullParam("className", className); Assert.checkNotNullParam("methodLocator", methodLocator); Assert.checkNotNullParam("interceptor", interceptor); if (methodInterceptors == null) { methodInterceptors = new ArrayList<>(); } methodInterceptors.add(new MethodInterceptor(className, methodLocator, EJBClientInterceptorInformation.forInstance(interceptor))); return this; }
public Builder addInterceptor(EJBClientInterceptor interceptor) { Assert.checkNotNullParam("interceptor", interceptor); if (globalInterceptors == null) { globalInterceptors = new ArrayList<>(); } globalInterceptors.add(EJBClientInterceptorInformation.forInstance(interceptor)); return this; }
public Builder addInterceptor(EJBClientInterceptor interceptor) { Assert.checkNotNullParam("interceptor", interceptor); if (globalInterceptors == null) { globalInterceptors = new ArrayList<>(); } globalInterceptors.add(EJBClientInterceptorInformation.forInstance(interceptor)); return this; }
private InterceptorList registeredInterceptors() { final EJBClientInterceptor.Registration[] currentRegistrations = this.registrations.clone(); ArrayList<EJBClientInterceptorInformation> al = new ArrayList<>(); for (EJBClientInterceptor.Registration r: currentRegistrations) { al.add(EJBClientInterceptorInformation.forInstance(r.getInterceptor())); } return InterceptorList.ofList(al); }
private InterceptorList registeredInterceptors() { final EJBClientInterceptor.Registration[] currentRegistrations = this.registrations.clone(); ArrayList<EJBClientInterceptorInformation> al = new ArrayList<>(); for (EJBClientInterceptor.Registration r: currentRegistrations) { al.add(EJBClientInterceptorInformation.forInstance(r.getInterceptor())); } return InterceptorList.ofList(al); }
public Builder addClassInterceptor(String className, EJBClientInterceptor interceptor) { Assert.checkNotNullParam("className", className); Assert.checkNotNullParam("interceptor", interceptor); if (classInterceptors == null) { classInterceptors = new ArrayList<>(); } classInterceptors.add(new ClassInterceptor(className, EJBClientInterceptorInformation.forInstance(interceptor))); return this; }
public Builder addClassInterceptor(String className, EJBClientInterceptor interceptor) { Assert.checkNotNullParam("className", className); Assert.checkNotNullParam("interceptor", interceptor); if (classInterceptors == null) { classInterceptors = new ArrayList<>(); } classInterceptors.add(new ClassInterceptor(className, EJBClientInterceptorInformation.forInstance(interceptor))); return this; }
public Builder addMethodInterceptor(String className, EJBMethodLocator methodLocator, EJBClientInterceptor interceptor) { Assert.checkNotNullParam("className", className); Assert.checkNotNullParam("methodLocator", methodLocator); Assert.checkNotNullParam("interceptor", interceptor); if (methodInterceptors == null) { methodInterceptors = new ArrayList<>(); } methodInterceptors.add(new MethodInterceptor(className, methodLocator, EJBClientInterceptorInformation.forInstance(interceptor))); return this; }
public Builder addMethodInterceptor(String className, EJBMethodLocator methodLocator, EJBClientInterceptor interceptor) { Assert.checkNotNullParam("className", className); Assert.checkNotNullParam("methodLocator", methodLocator); Assert.checkNotNullParam("interceptor", interceptor); if (methodInterceptors == null) { methodInterceptors = new ArrayList<>(); } methodInterceptors.add(new MethodInterceptor(className, methodLocator, EJBClientInterceptorInformation.forInstance(interceptor))); return this; }