EJBInvocationHandler<T> getAsyncHandler() { return async ? this : new EJBInvocationHandler<T>(this); }
static <T> T createProxy(final EJBLocator<T> locator, final Supplier<AuthenticationContext> authenticationContextSupplier) { Assert.checkNotNullParam("locator", locator); return locator.createProxyInstance(new EJBInvocationHandler<T>(locator, authenticationContextSupplier)); }
/** * This method exists to create an invocation handler for a locator in a type-safe manner. * * @param locator the locator * @param <T> the view type * @return the invocation handler */ private static <T> EJBInvocationHandler<T> readResolve(EJBLocator<T> locator) { final NamingProvider namingProvider = NamingProvider.getCurrentNamingProvider(); final Supplier<AuthenticationContext> supplier = namingProvider != null ? namingProvider.getProviderEnvironment().getAuthenticationContextSupplier() : CaptureCurrentAuthCtxSupplier.INSTANCE; return new EJBInvocationHandler<T>(locator, supplier); } }
EJBInvocationHandler<T> getAsyncHandler() { return async ? this : new EJBInvocationHandler<T>(this); }
EJBInvocationHandler<T> getAsyncHandler() { return async ? this : new EJBInvocationHandler<T>(this); }
static <T> T createProxy(final EJBLocator<T> locator, final Supplier<AuthenticationContext> authenticationContextSupplier) { Assert.checkNotNullParam("locator", locator); return locator.createProxyInstance(new EJBInvocationHandler<T>(locator, authenticationContextSupplier)); }
static <T> T createProxy(final EJBLocator<T> locator, final Supplier<AuthenticationContext> authenticationContextSupplier) { Assert.checkNotNullParam("locator", locator); return locator.createProxyInstance(new EJBInvocationHandler<T>(locator, authenticationContextSupplier)); }
/** * This method exists to create an invocation handler for a locator in a type-safe manner. * * @param locator the locator * @param <T> the view type * @return the invocation handler */ private static <T> EJBInvocationHandler<T> readResolve(EJBLocator<T> locator) { final NamingProvider namingProvider = NamingProvider.getCurrentNamingProvider(); final Supplier<AuthenticationContext> supplier = namingProvider != null ? namingProvider.getProviderEnvironment().getAuthenticationContextSupplier() : CaptureCurrentAuthCtxSupplier.INSTANCE; return new EJBInvocationHandler<T>(locator, supplier); } }
/** * This method exists to create an invocation handler for a locator in a type-safe manner. * * @param locator the locator * @param <T> the view type * @return the invocation handler */ private static <T> EJBInvocationHandler<T> readResolve(EJBLocator<T> locator) { final NamingProvider namingProvider = NamingProvider.getCurrentNamingProvider(); final Supplier<AuthenticationContext> supplier = namingProvider != null ? namingProvider.getProviderEnvironment().getAuthenticationContextSupplier() : CaptureCurrentAuthCtxSupplier.INSTANCE; return new EJBInvocationHandler<T>(locator, supplier); } }