Class EJBHomeHandle<T extends EJBHome>

    • Constructor Detail

      • EJBHomeHandle

        public EJBHomeHandle​(EJBHomeLocator<T> locator)
        Construct a new instance.
        Parameters:
        locator - the locator for the home interface
    • Method Detail

      • create

        public static <T extends EJBHomeEJBHomeHandle<T> create​(EJBHomeLocator<T> locator)
        Construct a new instance.
        Type Parameters:
        T - the Enterprise Beans home type
        Parameters:
        locator - the locator for the home interface (must not be null)
        Returns:
        the handle (not null)
      • getEJBHome

        public T getEJBHome()
                     throws RemoteException
        Obtain the home object represented by this handle.
        Specified by:
        getEJBHome in interface HomeHandle
        Returns:
        the home object represented by this handle.
        Throws:
        RemoteException - The home object could not be obtained because of a system-level failure.
      • equals

        public boolean equals​(Object other)
        Determine whether this object is equal to another.
        Overrides:
        equals in class Object
        Parameters:
        other - the other object
        Returns:
        true if they are equal, false otherwise
      • equals

        public boolean equals​(EJBHomeHandle<?> other)
        Determine whether this object is equal to another.
        Parameters:
        other - the other object
        Returns:
        true if they are equal, false otherwise
      • hashCode

        public int hashCode()
        Get the hash code for this Enterprise Beans home handle.
        Overrides:
        hashCode in class Object
        Returns:
        the hash code
      • getLocator

        public EJBHomeLocator<T> getLocator()
        Get the locator for this handle.
        Returns:
        the locator for this handle