Java Doc for Config.java in  » Mail-Clients » columba-1.4 » org » columba » core » config » 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 » Mail Clients » columba 1.4 » org.columba.core.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.columba.core.config.Config

Config
public class Config implements IConfig(Code)
Main entrypoint for configuration management.

Stores a list of all xml files in a hashtable. Hashtable key is the name of the xml file. Value is XmlIO object.

Mail and Addressbook components are just wrappers, encapsulating this class. Using these wrapper classes, you don't need to specify the module name (for example: mail, or addressbook) manually.

Note that all configuration file have default templates in the /res directory in package org.columba.core.config. These default configuration files are copied into the users's configuration directory the first time Columba is started.

Config creates the top-level directory for Columba's configuration in ".columba", which usually resides in the user's home directory or on older Windows versions in Columba's program folder.

Saving and loading of all configuration files is handled here, too.


See Also:   org.columba.mail.config.MailConfig
See Also:   org.columba.addressbook.config.AddressbookConfig
author:
   fdietz



Field Summary
final static  LoggerLOG
    
protected  FileoptionsFile
    
protected  Filepath
    
protected  Map<String, Map<String, DefaultXmlConfig>>pluginList
    
protected  FiletoolsFile
    
protected  FileviewsFile
    

Constructor Summary
public  Config(File thePath)
     Creates a new configuration from the given directory.

Method Summary
public  voidaddPlugin(String moduleName, String id, DefaultXmlConfig configPlugin)
     Method addPlugin.
public  XmlElementget(String name)
    
public  FilegetConfigDirectory()
    
public static  FilegetDefaultConfigPath()
     Returns the default configuration path.
public static  ConfiggetInstance()
    
public  OptionsXmlConfiggetOptionsConfig()
     Method getOptionsMainInterface.config.
public  DefaultXmlConfiggetPlugin(String moduleName, String id)
     Method getPlugin.
public  List<DefaultXmlConfig>getPluginList()
     Method getPluginList.
protected  voidload()
     Loads all plugins and template plugins.
public  voidregisterPlugin(String moduleName, String id, DefaultXmlConfig configPlugin)
     Method registerPlugin.
public  voidsave()
     Method save.

Field Detail
LOG
final static Logger LOG(Code)



optionsFile
protected File optionsFile(Code)



path
protected File path(Code)



pluginList
protected Map<String, Map<String, DefaultXmlConfig>> pluginList(Code)



toolsFile
protected File toolsFile(Code)



viewsFile
protected File viewsFile(Code)




Constructor Detail
Config
public Config(File thePath)(Code)
Creates a new configuration from the given directory.




Method Detail
addPlugin
public void addPlugin(String moduleName, String id, DefaultXmlConfig configPlugin)(Code)
Method addPlugin.
Parameters:
  moduleName -
Parameters:
  id -
Parameters:
  configPlugin -



get
public XmlElement get(String name)(Code)

See Also:   org.columba.core.config.IConfig.get(java.lang.String)



getConfigDirectory
public File getConfigDirectory()(Code)



getDefaultConfigPath
public static File getDefaultConfigPath()(Code)
Returns the default configuration path. This value depends on the underlying operating system. This method must never return null.



getInstance
public static Config getInstance()(Code)



getOptionsConfig
public OptionsXmlConfig getOptionsConfig()(Code)
Method getOptionsMainInterface.config. OptionsXmlConfig



getPlugin
public DefaultXmlConfig getPlugin(String moduleName, String id)(Code)
Method getPlugin.
Parameters:
  moduleName -
Parameters:
  id - DefaultXmlConfig



getPluginList
public List<DefaultXmlConfig> getPluginList()(Code)
Method getPluginList. List



load
protected void load()(Code)
Loads all plugins and template plugins.



registerPlugin
public void registerPlugin(String moduleName, String id, DefaultXmlConfig configPlugin)(Code)
Method registerPlugin.
Parameters:
  moduleName -
Parameters:
  id -
Parameters:
  configPlugin -



save
public void save() throws Exception(Code)
Method save.



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.