Package org.bluezoo.gumdrop.servlet.jndi
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 Summary
Modifier and TypeMethodDescriptionReturns the classloader for this context.Returns the collection of injectable references defined for this context.Returns the collection of JNDI resources defined for this context.static StringstripCompEnv(String name) Strips the "java:comp/env/" prefix from a JNDI name if present.
-
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
Strips the "java:comp/env/" prefix from a JNDI name if present.- Parameters:
name- the JNDI name- Returns:
- the name without the prefix
-