/** * Get the home interface class. * * @return the home interface */ public Class<H> getHomeInterfaceClass() { return homeLocator.getViewType(); }
@SuppressWarnings("unchecked") public <S extends EJBHome> EJBHomeLocator<? extends S> narrowAsHome(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (EJBHomeLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }
/** * Get the home interface class. * * @return the home interface */ public Class<H> getHomeInterfaceClass() { return homeLocator.getViewType(); }
/** * Get the home interface class. * * @return the home interface */ public Class<H> getHomeInterfaceClass() { return homeLocator.getViewType(); }
@SuppressWarnings("unchecked") public <S extends EJBHome> EJBHomeLocator<? extends S> narrowAsHome(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (EJBHomeLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }
@SuppressWarnings("unchecked") public <S extends EJBHome> EJBHomeLocator<? extends S> narrowAsHome(final Class<S> type) { if (type.isAssignableFrom(getViewType())) { return (EJBHomeLocator<? extends S>) this; } throw new ClassCastException(type.toString()); }