ResourceBase (Apache Tomcat 7.0.81 API Documentation)

org.apache.catalina.deploy

## Class ResourceBase

- java.lang.Object
- - org.apache.catalina.deploy.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

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected NamingResources` | `resources` The NamingResources with which we are associated (if any).

  - ### 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` | `getName()`
    `NamingResources` | `getNamingResources()`
    `Object` | `getProperty(String name)` Return a configured property.
    `String` | `getType()`
    `int` | `hashCode()`
    `Iterator<String>` | `listProperties()` List properties.
    `void` | `removeProperty(String name)` Remove a configured property.
    `void` | `setDescription(String description)`
    `void` | `setName(String name)`
    `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`

- - ### Field Detail

    - #### resources

          protected NamingResources resources

      The NamingResources with which we are associated (if any).

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

    - #### getProperty

          public Object getProperty(String name)

      Return a configured property.

    - #### setProperty

          public void setProperty(String name,
                         Object value)

      Set a configured property.

    - #### removeProperty

          public void removeProperty(String name)

      Remove a configured property.

    - #### listProperties

          public Iterator<String> listProperties()

      List properties.

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

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