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


java.lang.Object
   org.sape.carbon.core.config.node.AbstractNode
      org.sape.carbon.core.config.node.AbstractFolder

All known Subclasses:   org.sape.carbon.core.config.node.file.FileFolder,  org.sape.carbon.services.config.jar.JarFolder,  org.sape.carbon.services.config.classloader.ClassloaderFolder,  org.sape.carbon.services.config.jndi.JNDIFolder,
AbstractFolder
abstract public class AbstractFolder extends AbstractNode implements Folder(Code)
This implementation of the Folder interface caches its children as they are requested. This implementation interfaces with the backing data store through sub-classes implementing the methods loadChild and getAllChildNames. Copyright 2002 Sapient
since:
   carbon 1.0
author:
   Douglas Voet, February 2002
version:
   $Revision: 1.32 $($Author: dvoet $ / $Date: 2003/10/16 20:57:29 $)



Constructor Summary
public  AbstractFolder(Node parent, String name, Object readOrAlterNodeLock, Object addOrLoadChildLock, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory)
     Constructor for AbstractFolder.
public  AbstractFolder(Node parent, String name, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory)
     Constructor for AbstractFolder.

Method Summary
public  ConfigurationDocumentaddConfigurationDocument(String name, Configuration config)
    
public  LinkNodeaddLink(String name, LinkNodeConfiguration linkConfiguration)
    
public  FolderaddSubFolder(String name)
    
protected  ConfigurationDocumentcreateNewConfigurationDocument(String name, Configuration config)
     Uses the configurationDocumentFactory to create a child ConfigurationDocument and adds it to childNodes.
protected  FoldercreateNewFolder(String name)
    
public  NodeFactorygetConfigurationDocumentFactory()
    
public  NodeFactorygetLinkNodeFactory()
    
public  NodeFactorygetSubFolderFactory()
    


Constructor Detail
AbstractFolder
public AbstractFolder(Node parent, String name, Object readOrAlterNodeLock, Object addOrLoadChildLock, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory)(Code)
Constructor for AbstractFolder.
Parameters:
  parent - the node's parent
Parameters:
  name - the node's name
Parameters:
  subFolderFactory - factory to use for sub folders
Parameters:
  configurationDocumentFactory - factory to use forcreating configuration documents
Parameters:
  linkNodeFactory - factory to use for creating link nodes.
throws:
  InvalidParameterException - if name, subFolderFactory, orconfigurationDocumentFactory is null



AbstractFolder
public AbstractFolder(Node parent, String name, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory)(Code)
Constructor for AbstractFolder.
Parameters:
  parent - the node's parent
Parameters:
  name - the node's name
Parameters:
  subFolderFactory - factory to use for sub folders
Parameters:
  configurationDocumentFactory - factory to use forcreating configuration documents
Parameters:
  linkNodeFactory - factory to use for creating link nodes.
throws:
  InvalidParameterException - if name, subFolderFactory, orconfigurationDocumentFactory is null




Method Detail
addConfigurationDocument
public ConfigurationDocument addConfigurationDocument(String name, Configuration config) throws NodeCreationException(Code)

See Also:   Folder.addConfigurationDocument
See Also:   synchronized to ensure no one is fetching or removing children while
See Also:   this method is removing them



addLink
public LinkNode addLink(String name, LinkNodeConfiguration linkConfiguration) throws NodeCreationException(Code)

See Also:   Folder.addLink



addSubFolder
public Folder addSubFolder(String name) throws NodeCreationException(Code)

See Also:   Folder.addSubFolder(String)
See Also:   synchronized to ensure no one is fetching or removing children while
See Also:   this method is removing them



createNewConfigurationDocument
protected ConfigurationDocument createNewConfigurationDocument(String name, Configuration config) throws NodeCreationException(Code)
Uses the configurationDocumentFactory to create a child ConfigurationDocument and adds it to childNodes.
Parameters:
  name - name of the ConfigurationDocument
Parameters:
  config - the new config to write ConfigurationDocument the new child
throws:
  NodeCreationException - if the child could not be created forany reason



createNewFolder
protected Folder createNewFolder(String name) throws NodeCreationException(Code)
Uses the subFolderFactory to create a child Folder and adds it to childNodes
Parameters:
  name - name of the Folder Folder the new child
throws:
  NodeCreationException - if the child could not be created forany reason



getConfigurationDocumentFactory
public NodeFactory getConfigurationDocumentFactory()(Code)

See Also:   Folder.getConfigurationDocumentFactory



getLinkNodeFactory
public NodeFactory getLinkNodeFactory()(Code)

See Also:   Folder.getSubFolderFactory



getSubFolderFactory
public NodeFactory getSubFolderFactory()(Code)

See Also:   Folder.getSubFolderFactory



Fields inherited from org.sape.carbon.core.config.node.AbstractNode
final protected Map childNodes(Code)(Java Doc)
final protected Set nodeListeners(Code)(Java Doc)

Methods inherited from org.sape.carbon.core.config.node.AbstractNode
public void addNodeListener(NodeEventListener listener)(Code)(Java Doc)
abstract protected boolean backingDataExists()(Code)(Java Doc)
public boolean containsChild(String childName)(Code)(Java Doc)
abstract protected void destroyBackingData() throws NodeRemovalException(Code)(Java Doc)
public Node fetchChild(String childName) throws NodeNotFoundException(Code)(Java Doc)
public Node[] fetchChildren()(Code)(Java Doc)
public String getAbsoluteName()(Code)(Java Doc)
final protected Object getAddOrLoadChildLock()(Code)(Java Doc)
abstract protected Set getAllChildNames()(Code)(Java Doc)
public boolean getAllowsChildren()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public Node getParent()(Code)(Java Doc)
final protected Object getReadOrAlterNodeLock()(Code)(Java Doc)
public boolean isRemoved()(Code)(Java Doc)
protected void issueNodeChangedEvent()(Code)(Java Doc)
protected void issueNodeRemovedEvent()(Code)(Java Doc)
abstract protected Node loadChild(String nodeName) throws NodeNotFoundException(Code)(Java Doc)
public void refresh()(Code)(Java Doc)
public int remove() throws NodeRemovalException(Code)(Java Doc)
protected void removeRemovedChildren()(Code)(Java Doc)
protected void setRemoved()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.