Class ContextResource

  • All Implemented Interfaces:
    java.io.Serializable, Injectable

    public class ContextResource
    extends ResourceBase
    Representation of a resource reference for a web application, as represented in a <resource-ref> element in the deployment descriptor.
    See Also:
    Serialized Form
    • Constructor Detail

      • ContextResource

        public ContextResource()
        Default constructor for ContextResource.
    • Method Detail

      • getAuth

        public java.lang.String getAuth()
        Returns the authorization requirement for this resource.
        Returns:
        the authorization type
      • setAuth

        public void setAuth​(java.lang.String auth)
        Sets the authorization requirement for this resource.
        Parameters:
        auth - the authorization type
      • getScope

        public java.lang.String getScope()
        Returns the sharing scope of this resource factory.
        Returns:
        the sharing scope
      • setScope

        public void setScope​(java.lang.String scope)
        Sets the sharing scope of this resource factory.
        Parameters:
        scope - the sharing scope
      • getSingleton

        public boolean getSingleton()
        Returns whether this resource is a singleton.
        Returns:
        true if the resource is a singleton
      • setSingleton

        public void setSingleton​(boolean singleton)
        Sets whether this resource is a singleton.
        Parameters:
        singleton - true if the resource is a singleton
      • getCloseMethod

        public java.lang.String getCloseMethod()
        Returns the close method name.
        Returns:
        the close method name
      • setCloseMethod

        public void setCloseMethod​(java.lang.String closeMethod)
        Sets the close method name.
        Parameters:
        closeMethod - the close method name
      • getCloseMethodConfigured

        public boolean getCloseMethodConfigured()
        Returns whether the close method has been explicitly configured.
        Returns:
        true if the close method was configured
      • toString

        public java.lang.String toString()
        Return a String representation of this object.
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class ResourceBase