Class ResourceBase

java.lang.Object
org.apache.tomcat.util.descriptor.web.ResourceBase
All Implemented Interfaces:
Serializable, Injectable
Direct Known Subclasses:
ContextEjb, ContextEnvironment, ContextHandler, ContextLocalEjb, ContextResource, ContextResourceEnvRef, ContextResourceLink, ContextService, MessageDestination, MessageDestinationRef

public class ResourceBase extends Object implements Serializable, Injectable
Representation of an Context element
Author:
Peter Rossbach (pero@apache.org)
See Also:
  • Constructor Details

    • ResourceBase

      public ResourceBase()
  • Method Details

    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getName

      public String getName()
      Specified by:
      getName in interface Injectable
    • setName

      public void setName(String name)
    • getType

      public String getType()
    • setType

      public void setType(String type)
    • getLookupName

      public String getLookupName()
    • setLookupName

      public void setLookupName(String lookupName)
    • getProperty

      public Object getProperty(String name)
      Parameters:
      name - The property name
      Returns:
      a configured property.
    • setProperty

      public void setProperty(String name, Object value)
      Set a configured property.
      Parameters:
      name - The property name
      value - The property value
    • removeProperty

      public void removeProperty(String name)
      Remove a configured property.
      Parameters:
      name - The property name
    • listProperties

      public Iterator<String> listProperties()
      List properties.
      Returns:
      the property names iterator
    • addInjectionTarget

      public void addInjectionTarget(String injectionTargetName, String jndiName)
      Specified by:
      addInjectionTarget in interface Injectable
    • getInjectionTargets

      public List<InjectionTarget> getInjectionTargets()
      Specified by:
      getInjectionTargets in interface Injectable
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getNamingResources

      public NamingResources getNamingResources()
    • setNamingResources

      public void setNamingResources(NamingResources resources)