Class JndiResourceLocator

All Implemented Interfaces:
ExternalResourceAware, ExternalResourceLocator, Resource

@Deprecated public class JndiResourceLocator extends Resource_ImplBase implements ExternalResourceLocator
Deprecated.
To be removed without replacement
Locate an object via JNDI.
To be removed in version:
4.0.0
  • Field Details

    • PARAM_NAME

      public static final String PARAM_NAME
      Deprecated.
      The name of the JNDI resource to look up.
      See Also:
  • Constructor Details

    • JndiResourceLocator

      public JndiResourceLocator()
      Deprecated.
  • Method Details

    • initialize

      public boolean initialize(ResourceSpecifier aSpecifier, Map aAdditionalParams) throws ResourceInitializationException
      Deprecated.
      Description copied from interface: Resource
      Initializes this Resource from a ResourceSpecifier. Applications do not need to call this method. It is called automatically by the ResourceFactory and cannot be called a second time.
      Specified by:
      initialize in interface Resource
      Overrides:
      initialize in class Resource_ImplBase
      Parameters:
      aSpecifier - specifies how to create a resource or locate an existing resource service.
      aAdditionalParams - a Map containing additional parameters. May be null if there are no parameters. Each class that implements this interface can decide what additional parameters it supports.
      Returns:
      true if and only if initialization completed successfully. Returns false if the given ResourceSpecifier is not of an appropriate type for this Resource. If the ResourceSpecifier is of an appropriate type but is invalid or if some other failure occurs, an exception should be thrown.
      Throws:
      ResourceInitializationException - if a failure occurs during initialization.
    • getResource

      public Object getResource()
      Deprecated.
      Specified by:
      getResource in interface ExternalResourceLocator
      Returns:
      the resource