@SuppressWarnings("unchecked") public <S> StatelessEJBLocator<? extends S> narrowAsStateless(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (StatelessEJBLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }
<T> EJBSessionCreationInvocationContext createSessionCreationInvocationContext(StatelessEJBLocator<T> statelessLocator, AuthenticationContext authenticationContext) { EJBClientContext.InterceptorList interceptorList = getInterceptors(statelessLocator.getViewType()); return new EJBSessionCreationInvocationContext(statelessLocator, this, authenticationContext, interceptorList); }
@SuppressWarnings("unchecked") public <S> StatelessEJBLocator<? extends S> narrowAsStateless(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (StatelessEJBLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }
@SuppressWarnings("unchecked") public <S> StatelessEJBLocator<? extends S> narrowAsStateless(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (StatelessEJBLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }
<T> EJBSessionCreationInvocationContext createSessionCreationInvocationContext(StatelessEJBLocator<T> statelessLocator, AuthenticationContext authenticationContext) { EJBClientContext.InterceptorList interceptorList = getInterceptors(statelessLocator.getViewType()); return new EJBSessionCreationInvocationContext(statelessLocator, this, authenticationContext, interceptorList); }
<T> EJBSessionCreationInvocationContext createSessionCreationInvocationContext(StatelessEJBLocator<T> statelessLocator, AuthenticationContext authenticationContext) { EJBClientContext.InterceptorList interceptorList = getInterceptors(statelessLocator.getViewType()); return new EJBSessionCreationInvocationContext(statelessLocator, this, authenticationContext, interceptorList); }