Interface JndiContext


public interface JndiContext
Interface for servlet context JNDI operations.

This interface defines the operations that a servlet context must provide for JNDI resource management. It is implemented by the Context class to allow the JNDI package to operate without a direct dependency on Context.

Author:
Chris Burdess
  • Method Details

    • getResources

      Collection<Resource> getResources()
      Returns the collection of JNDI resources defined for this context.
    • getInjectables

      Collection<Injectable> getInjectables()
      Returns the collection of injectable references defined for this context.
    • getContextClassLoader

      ClassLoader getContextClassLoader()
      Returns the classloader for this context.
    • stripCompEnv

      static String stripCompEnv(String name)
      Strips the "java:comp/env/" prefix from a JNDI name if present.
      Parameters:
      name - the JNDI name
      Returns:
      the name without the prefix