Java Doc for JNDIFolder.java in  » Inversion-of-Control » carbon » org » sape » carbon » services » config » jndi » 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 » Inversion of Control » carbon » org.sape.carbon.services.config.jndi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.sape.carbon.core.config.node.AbstractFolder
   org.sape.carbon.services.config.jndi.JNDIFolder

JNDIFolder
public class JNDIFolder extends AbstractFolder implements NamespaceChangeListener,ObjectChangeListener(Code)
A node that represents a JNDI context that contains other folders or documents. This implementation implements NamespaceChangeListener and ObjectChangeListener from the javax.naming.event package in order to listen for changes in the backing datastore. Copyright 2003 Sapient
since:
   carbon 2.0
author:
   Douglas Voet, March 2003
version:
   $Revision: 1.12 $($Author: dvoet $ / $Date: 2003/07/29 18:52:33 $)



Constructor Summary
protected  JNDIFolder(Node parent, String name, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory, DirContext initialContext, Name nodeContextName, JNDILinkNodeConfiguration config)
    

Method Summary
protected  booleanbackingDataExists()
     Checks the backing directory to see if this nodes context exists and if it does, has the right attributes.
protected  voiddestroyBackingData()
    
protected  SetgetAllChildNames()
    
 DirContextgetInitialContext()
     Gets this nodes initial context.
 NamegetNodeContextName()
     Gets this nodes context name.
protected  NodeloadChild(String nodeName)
    
public  voidnamingExceptionThrown(NamingExceptionEvent evt)
    
public  voidobjectAdded(NamingEvent evt)
    
public  voidobjectChanged(NamingEvent evt)
    
public  voidobjectRemoved(NamingEvent evt)
    
public  voidobjectRenamed(NamingEvent evt)
    
protected  voidregisterNamingListener()
    


Constructor Detail
JNDIFolder
protected JNDIFolder(Node parent, String name, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory, DirContext initialContext, Name nodeContextName, JNDILinkNodeConfiguration config)(Code)
Constructs the JNDIFolder and registers itself as a JNDI naming listener
Parameters:
  parent - the parent node of this node
Parameters:
  name - the name of this node
Parameters:
  subFolderFactory - factory used to create sub folders
Parameters:
  configurationDocumentFactory - factory used to create sub documents
Parameters:
  linkNodeFactory - factory used to create sub links
Parameters:
  initialContext - the jndi initial context
Parameters:
  nodeContextName - the name of this node's context
Parameters:
  config - configuration used to get the names of the attributesthat hold node name, node and document type, and document content as wellas valid attribute values for node and document type.




Method Detail
backingDataExists
protected boolean backingDataExists()(Code)
Checks the backing directory to see if this nodes context exists and if it does, has the right attributes.



destroyBackingData
protected void destroyBackingData() throws NodeRemovalException(Code)
Calls destroySubcontext with this context's name
throws:
  NodeRemovalException - if a NamingException is encountered



getAllChildNames
protected Set getAllChildNames()(Code)



getInitialContext
DirContext getInitialContext()(Code)
Gets this nodes initial context. Used by JNDI node factories to pass onto child nodes DirContext



getNodeContextName
Name getNodeContextName()(Code)
Gets this nodes context name. Used by JNDI node factories to construct child node context names Name



loadChild
protected Node loadChild(String nodeName) throws NodeNotFoundException(Code)



namingExceptionThrown
public void namingExceptionThrown(NamingExceptionEvent evt)(Code)
Logs the fact that a NamingExceptionEvent occured



objectAdded
public void objectAdded(NamingEvent evt)(Code)
This implementation does not do anything if an object is added because the child could not have been loaded yet could not be cached



objectChanged
public void objectChanged(NamingEvent evt)(Code)
Causes a refresh of this node



objectRemoved
public void objectRemoved(NamingEvent evt)(Code)
Causes a refresh of this node



objectRenamed
public void objectRenamed(NamingEvent evt)(Code)
Causes a refresh of this node



registerNamingListener
protected void registerNamingListener()(Code)
Registers this node as a NamingListener with the backing context



Methods inherited from org.sape.carbon.core.config.node.AbstractFolder
public ConfigurationDocument addConfigurationDocument(String name, Configuration config) throws NodeCreationException(Code)(Java Doc)
public LinkNode addLink(String name, LinkNodeConfiguration linkConfiguration) throws NodeCreationException(Code)(Java Doc)
public Folder addSubFolder(String name) throws NodeCreationException(Code)(Java Doc)
protected ConfigurationDocument createNewConfigurationDocument(String name, Configuration config) throws NodeCreationException(Code)(Java Doc)
protected Folder createNewFolder(String name) throws NodeCreationException(Code)(Java Doc)
public NodeFactory getConfigurationDocumentFactory()(Code)(Java Doc)
public NodeFactory getLinkNodeFactory()(Code)(Java Doc)
public NodeFactory getSubFolderFactory()(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.