Class StatefulEJBMetaData<T extends jakarta.ejb.EJBObject,​H extends jakarta.ejb.EJBHome>

  • Type Parameters:
    T - the remote interface type
    H - the home interface type
    All Implemented Interfaces:
    jakarta.ejb.EJBMetaData, Serializable

    public final class StatefulEJBMetaData<T extends jakarta.ejb.EJBObject,​H extends jakarta.ejb.EJBHome>
    extends AbstractEJBMetaData<T,​H>
    EJB metadata for stateful EJBs.
    Author:
    David M. Lloyd
    See Also:
    Serialized Form
    • Constructor Detail

      • StatefulEJBMetaData

        public StatefulEJBMetaData​(Class<T> remoteInterfaceClass,
                                   EJBHomeLocator<H> homeLocator)
        Construct a new instance.
        Parameters:
        remoteInterfaceClass - the remote interface class
        homeLocator - the EJB home locator
    • Method Detail

      • create

        public static <T extends jakarta.ejb.EJBObject,​H extends jakarta.ejb.EJBHome> StatefulEJBMetaData<T,​H> create​(Class<T> remoteInterfaceClass,
                                                                                                                                  EJBHomeLocator<H> homeLocator)
        Construct a new instance.
        Type Parameters:
        T - the remote interface type
        H - the home interface type
        Parameters:
        remoteInterfaceClass - the remote interface class (must not be null)
        homeLocator - the EJB home locator (must not be null)
        Returns:
        the new instance (not null)