org.apache.tomcat.util.descriptor.web

## 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:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ResourceBase()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addInjectionTarget(String injectionTargetName, String jndiName)`
    `boolean` | `equals(Object obj)`
    `String` | `getDescription()`
    `List<InjectionTarget>` | `getInjectionTargets()`
    `String` | `getLookupName()`
    `String` | `getName()`
    `NamingResources` | `getNamingResources()`
    `Object` | `getProperty(String name)`
    `String` | `getType()`
    `int` | `hashCode()`
    `Iterator<String>` | `listProperties()` List properties.
    `void` | `removeProperty(String name)` Remove a configured property.
    `void` | `setDescription(String description)`
    `void` | `setLookupName(String lookupName)`
    `void` | `setName(String name)`
    `void` | `setNamingResources(NamingResources resources)`
    `void` | `setProperty(String name, Object value)` Set a configured property.
    `void` | `setType(String type)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ResourceBase

          public ResourceBase()

  - ### Method Detail

    - #### 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)

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.