@SuppressWarnings("unchecked") public <S> StatefulEJBLocator<? extends S> narrowAsStateful(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (StatefulEJBLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }
@SuppressWarnings("unchecked") public <S> StatefulEJBLocator<? extends S> narrowAsStateful(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (StatefulEJBLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }
@SuppressWarnings("unchecked") public <S> StatefulEJBLocator<? extends S> narrowAsStateful(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (StatefulEJBLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }