/** * Construct a new instance. * * @param remoteInterfaceClass the remote interface class (must not be {@code null}) * @param homeLocator the EJB home locator (must not be {@code null}) * @param primaryKeyClass the primary key class (must not be {@code null}) * @param <T> the remote interface type * @param <H> the home interface type * @return the new instance (not {@code null}) */ public static <T extends EJBObject, H extends EJBHome> EntityEJBMetaData<T, H> create(final Class<T> remoteInterfaceClass, final EJBHomeLocator<H> homeLocator, final Class<?> primaryKeyClass) { return new EntityEJBMetaData<T, H>(remoteInterfaceClass, homeLocator, primaryKeyClass); }
private static <T extends EJBObject, H extends EJBHome> EntityEJBMetaData<T, ? extends H> createEntityMetaData(Class<T> remoteClass, Class<H> homeClass, EJBHome home, Class<?> pkClass) { return new EntityEJBMetaData<>(remoteClass, EJBClient.getLocatorFor(home).<H>narrowAsHome(homeClass), pkClass); }
/** * Construct a new instance. * * @param remoteInterfaceClass the remote interface class (must not be {@code null}) * @param homeLocator the EJB home locator (must not be {@code null}) * @param primaryKeyClass the primary key class (must not be {@code null}) * @param <T> the remote interface type * @param <H> the home interface type * @return the new instance (not {@code null}) */ public static <T extends EJBObject, H extends EJBHome> EntityEJBMetaData<T, H> create(final Class<T> remoteInterfaceClass, final EJBHomeLocator<H> homeLocator, final Class<?> primaryKeyClass) { return new EntityEJBMetaData<T, H>(remoteInterfaceClass, homeLocator, primaryKeyClass); }
/** * Construct a new instance. * * @param remoteInterfaceClass the remote interface class (must not be {@code null}) * @param homeLocator the EJB home locator (must not be {@code null}) * @param primaryKeyClass the primary key class (must not be {@code null}) * @param <T> the remote interface type * @param <H> the home interface type * @return the new instance (not {@code null}) */ public static <T extends EJBObject, H extends EJBHome> EntityEJBMetaData<T, H> create(final Class<T> remoteInterfaceClass, final EJBHomeLocator<H> homeLocator, final Class<?> primaryKeyClass) { return new EntityEJBMetaData<T, H>(remoteInterfaceClass, homeLocator, primaryKeyClass); }