| java.lang.Object org.apache.naming.resources.BaseDirContext org.apache.naming.resources.FileDirContext org.apache.naming.resources.VirtualDirContext
VirtualDirContext | public class VirtualDirContext extends FileDirContext (Code) | | Extended FileDirContext implementation that will allow loading of tld files
from the META-INF directory (or subdirectories) in classpath. This will fully
mimic the behavior of compressed jars also when using unjarred resources. Tld
files can be loaded indifferently from WEB-INF webapp dir (or subdirs) or
from META-INF dir from jars available in the classpath: using this DirContext
implementation you will be able to use unexpanded jars during development and
to make any tld in them virtually available to the webapp.
Sample context xml configuration:
<Context docBase="\webapps\mydocbase">
<Resources className="org.apache.naming.resources.VirtualDirContext"
virtualClasspath="\dir\classes;\somedir\somejar.jar"/>
</Resources>
This is not meant to be used for production.
Its meant to ease development with IDE's without the
need for fully republishing jars in WEB-INF/lib
author: Fabrizio Giustina version: $Id: $ |
allocate | public void allocate()(Code) | | |
release | public void release()(Code) | | |
setVirtualClasspath | public void setVirtualClasspath(String path)(Code) | | virtualClasspath attribute that will be automatically set
from the Context virtualClasspath attribute
from the context xml file.
Parameters: path - ; separated list of path elements. |
Methods inherited from org.apache.naming.resources.FileDirContext | public void bind(String name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public DirContext createSubcontext(String name, Attributes attrs) throws NamingException(Code)(Java Doc) public void destroySubcontext(String name) throws NamingException(Code)(Java Doc) protected File file(String name)(Code)(Java Doc) public boolean getAllowLinking()(Code)(Java Doc) public Attributes getAttributes(String name, String[] attrIds) throws NamingException(Code)(Java Doc) public String getNameInNamespace() throws NamingException(Code)(Java Doc) public DirContext getSchema(String name) throws NamingException(Code)(Java Doc) public DirContext getSchemaClassDefinition(String name) throws NamingException(Code)(Java Doc) public boolean isCaseSensitive()(Code)(Java Doc) public NamingEnumeration list(String name) throws NamingException(Code)(Java Doc) protected ArrayList list(File file)(Code)(Java Doc) public NamingEnumeration listBindings(String name) throws NamingException(Code)(Java Doc) public Object lookup(String name) throws NamingException(Code)(Java Doc) public Object lookupLink(String name) throws NamingException(Code)(Java Doc) public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException(Code)(Java Doc) public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException(Code)(Java Doc) protected String normalize(String path)(Code)(Java Doc) public void rebind(String name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public void release()(Code)(Java Doc) public void rename(String oldName, String newName) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, Attributes matchingAttributes) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, String filter, SearchControls cons) throws NamingException(Code)(Java Doc) public NamingEnumeration search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException(Code)(Java Doc) public void setAllowLinking(boolean allowLinking)(Code)(Java Doc) public void setCaseSensitive(boolean caseSensitive)(Code)(Java Doc) public void setDocBase(String docBase)(Code)(Java Doc) public void unbind(String name) throws NamingException(Code)(Java Doc)
|
Methods inherited from org.apache.naming.resources.BaseDirContext | public Object addToEnvironment(String propName, Object propVal) throws NamingException(Code)(Java Doc) public void allocate()(Code)(Java Doc) public void bind(Name name, Object obj) throws NamingException(Code)(Java Doc) public void bind(String name, Object obj) throws NamingException(Code)(Java Doc) public void bind(Name name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) abstract public void bind(String name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public void close() throws NamingException(Code)(Java Doc) public Name composeName(Name name, Name prefix) throws NamingException(Code)(Java Doc) public String composeName(String name, String prefix) throws NamingException(Code)(Java Doc) public Context createSubcontext(Name name) throws NamingException(Code)(Java Doc) public Context createSubcontext(String name) throws NamingException(Code)(Java Doc) public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException(Code)(Java Doc) abstract public DirContext createSubcontext(String name, Attributes attrs) throws NamingException(Code)(Java Doc) public void destroySubcontext(Name name) throws NamingException(Code)(Java Doc) abstract public void destroySubcontext(String name) throws NamingException(Code)(Java Doc) public Attributes getAttributes(Name name) throws NamingException(Code)(Java Doc) public Attributes getAttributes(String name) throws NamingException(Code)(Java Doc) public Attributes getAttributes(Name name, String[] attrIds) throws NamingException(Code)(Java Doc) abstract public Attributes getAttributes(String name, String[] attrIds) throws NamingException(Code)(Java Doc) public int getCacheMaxSize()(Code)(Java Doc) public int getCacheTTL()(Code)(Java Doc) public String getDocBase()(Code)(Java Doc) public Hashtable getEnvironment() throws NamingException(Code)(Java Doc) abstract public String getNameInNamespace() throws NamingException(Code)(Java Doc) public NameParser getNameParser(Name name) throws NamingException(Code)(Java Doc) public NameParser getNameParser(String name) throws NamingException(Code)(Java Doc) public DirContext getSchema(Name name) throws NamingException(Code)(Java Doc) abstract public DirContext getSchema(String name) throws NamingException(Code)(Java Doc) public DirContext getSchemaClassDefinition(Name name) throws NamingException(Code)(Java Doc) abstract public DirContext getSchemaClassDefinition(String name) throws NamingException(Code)(Java Doc) public boolean isCached()(Code)(Java Doc) public NamingEnumeration list(Name name) throws NamingException(Code)(Java Doc) abstract public NamingEnumeration list(String name) throws NamingException(Code)(Java Doc) public NamingEnumeration listBindings(Name name) throws NamingException(Code)(Java Doc) abstract public NamingEnumeration listBindings(String name) throws NamingException(Code)(Java Doc) public Object lookup(Name name) throws NamingException(Code)(Java Doc) abstract public Object lookup(String name) throws NamingException(Code)(Java Doc) public Object lookupLink(Name name) throws NamingException(Code)(Java Doc) abstract public Object lookupLink(String name) throws NamingException(Code)(Java Doc) public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException(Code)(Java Doc) abstract public void modifyAttributes(String name, int mod_op, Attributes attrs) throws NamingException(Code)(Java Doc) public void modifyAttributes(Name name, ModificationItem[] mods) throws NamingException(Code)(Java Doc) abstract public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException(Code)(Java Doc) public void rebind(Name name, Object obj) throws NamingException(Code)(Java Doc) public void rebind(String name, Object obj) throws NamingException(Code)(Java Doc) public void rebind(Name name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) abstract public void rebind(String name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc) public void release()(Code)(Java Doc) public Object removeFromEnvironment(String propName) throws NamingException(Code)(Java Doc) public void rename(Name oldName, Name newName) throws NamingException(Code)(Java Doc) abstract public void rename(String oldName, String newName) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException(Code)(Java Doc) abstract public NamingEnumeration search(String name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, Attributes matchingAttributes) throws NamingException(Code)(Java Doc) abstract public NamingEnumeration search(String name, Attributes matchingAttributes) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, String filter, SearchControls cons) throws NamingException(Code)(Java Doc) abstract public NamingEnumeration search(String name, String filter, SearchControls cons) throws NamingException(Code)(Java Doc) public NamingEnumeration search(Name name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException(Code)(Java Doc) abstract public NamingEnumeration search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException(Code)(Java Doc) public void setCacheMaxSize(int cacheMaxSize)(Code)(Java Doc) public void setCacheTTL(int cacheTTL)(Code)(Java Doc) public void setCached(boolean cached)(Code)(Java Doc) public void setDocBase(String docBase)(Code)(Java Doc) public void unbind(Name name) throws NamingException(Code)(Java Doc) abstract public void unbind(String name) throws NamingException(Code)(Java Doc)
|
|
|