Java Doc for MemoryNamingContext.java in  » Sevlet-Container » tomcat-connectors » org » apache » naming » modules » memory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Sevlet Container » tomcat connectors » org.apache.naming.modules.memory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.naming.core.BaseDirContext
   org.apache.naming.modules.memory.MemoryNamingContext

MemoryNamingContext
public class MemoryNamingContext extends BaseDirContext (Code)
In-memory context. IMPLEMENTATION. We use NamingEntry stored in a tree of hashtables.
author:
   Remy Maucherat
author:
   Costin Manolache


Field Summary
protected  Hashtablebindings
     Bindings in this Context.
protected static  StringManagersm
     The string manager for this package.

Constructor Summary
public  MemoryNamingContext()
    
public  MemoryNamingContext(Hashtable env)
     Builds a naming context using the given environment.

Method Summary
public  voidbind(Name name, Object obj, Attributes attrs, boolean rebind)
     Binds a name to an object.
public  DirContextcreateSubcontext(Name name, Attributes attrs)
     Creates and binds a new context.
public  NamingEnumerationlist(Name name)
     Enumerates the names bound in the named context, along with the class names of objects bound to them.
public  NamingEnumerationlistBindings(Name name)
     Enumerates the names bound in the named context, along with the objects bound to them.
public  Objectlookup(Name name, boolean resolveLinks)
    
public  voidsetBindings(Hashtable bindings)
    
public  voidunbind(Name name, boolean isContext)
     Unbinds the named object.

Field Detail
bindings
protected Hashtable bindings(Code)
Bindings in this Context.



sm
protected static StringManager sm(Code)
The string manager for this package.




Constructor Detail
MemoryNamingContext
public MemoryNamingContext() throws NamingException(Code)



MemoryNamingContext
public MemoryNamingContext(Hashtable env) throws NamingException(Code)
Builds a naming context using the given environment.




Method Detail
bind
public void bind(Name name, Object obj, Attributes attrs, boolean rebind) throws NamingException(Code)
Binds a name to an object. All intermediate contexts and the target context (that named by all but terminal atomic component of the name) must already exist.
Parameters:
  name - the name to bind; may not be empty
Parameters:
  object - the object to bind; possibly null
Parameters:
  rebind - if true, then perform a rebind (ie, overwrite)
exception:
  NameAlreadyBoundException - if name is already bound
exception:
  InvalidAttributesException - if object did not supply all mandatory attributes
exception:
  NamingException - if a naming exception is encountered



createSubcontext
public DirContext createSubcontext(Name name, Attributes attrs) throws NamingException(Code)
Creates and binds a new context. Creates a new context with the given name and binds it in the target context (that named by all but terminal atomic component of the name). All intermediate contexts and the target context must already exist.
Parameters:
  name - the name of the context to create; may not be empty the newly created context
exception:
  NameAlreadyBoundException - if name is already bound
exception:
  InvalidAttributesException - if creation of the subcontext requires specification of mandatory attributes
exception:
  NamingException - if a naming exception is encountered



list
public NamingEnumeration list(Name name) throws NamingException(Code)
Enumerates the names bound in the named context, along with the class names of objects bound to them. The contents of any subcontexts are not included.

If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.
Parameters:
  name - the name of the context to list an enumeration of the names and class names of the bindings in this context. Each element of the enumeration is of type NameClassPair.
exception:
  NamingException - if a naming exception is encountered




listBindings
public NamingEnumeration listBindings(Name name) throws NamingException(Code)
Enumerates the names bound in the named context, along with the objects bound to them. The contents of any subcontexts are not included.

If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined.
Parameters:
  name - the name of the context to list an enumeration of the bindings in this context. Each element of the enumeration is of type Binding.
exception:
  NamingException - if a naming exception is encountered




lookup
public Object lookup(Name name, boolean resolveLinks) throws NamingException(Code)



setBindings
public void setBindings(Hashtable bindings)(Code)



unbind
public void unbind(Name name, boolean isContext) throws NamingException(Code)
Unbinds the named object. Removes the terminal atomic name in name from the target context--that named by all but the terminal atomic part of name.

This method is idempotent. It succeeds even if the terminal atomic name is not bound in the target context, but throws NameNotFoundException if any of the intermediate contexts do not exist.
Parameters:
  name - the name to bind; may not be empty
exception:
  NameNotFoundException - if an intermediate context does not exist
exception:
  NamingException - if a naming exception is encountered




Methods inherited from org.apache.naming.core.BaseDirContext
public void bind(Name name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc)
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 Attributes getAttributes(Name name) throws NamingException(Code)(Java Doc)
public Attributes getAttributes(String name) throws NamingException(Code)(Java Doc)
public Attributes getAttributes(String name, String[] attrIds) throws NamingException(Code)(Java Doc)
public Attributes getAttributes(Name name, String[] attrIds) throws NamingException(Code)(Java Doc)
public DirContext getSchema(Name name) throws NamingException(Code)(Java Doc)
public DirContext getSchema(String name) throws NamingException(Code)(Java Doc)
public DirContext getSchemaClassDefinition(Name name) throws NamingException(Code)(Java Doc)
public DirContext getSchemaClassDefinition(String name) throws NamingException(Code)(Java Doc)
public void modifyAttributes(Name name, int mod_op, Attributes attrs) throws NamingException(Code)(Java Doc)
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)
public void modifyAttributes(String name, ModificationItem[] mods) throws NamingException(Code)(Java Doc)
public void rebind(Name name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc)
public void rebind(String name, Object obj, Attributes attrs) throws NamingException(Code)(Java Doc)
public NamingEnumeration search(Name name, Attributes matchingAttributes, String[] attributesToReturn) throws NamingException(Code)(Java Doc)
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)
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)
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)
public NamingEnumeration search(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws NamingException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.