Java Doc for PluginRegistry.java in  » Build » cruisecontrol » net » sourceforge » cruisecontrol » 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 » Build » cruisecontrol » net.sourceforge.cruisecontrol 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.cruisecontrol.PluginRegistry

PluginRegistry
final public class PluginRegistry implements Serializable(Code)
Handles "registering" plugins that will be used by the CruiseControl configuration file. A PluginRegistry can have a parent registry, which it will query for a plugin if it's not defined in the registry itself. This is used to enable projects to have their own plugins and override the classname for a specific plugin, like the labelincrementer. The root-registry contains the default list of plugins, i.e. those that are already registered like AntBuilder that don't have to be registered separately in the configuration file. The registry keeps track of the PluginRegistry.getPluginConfig(String) plugin configurations in order to allow full plugin preconfigurations (default properties + nested elements).
See Also:   PluginXMLHelper




Method Summary
public static  PluginRegistrycreateRegistry()
    
public static  PluginRegistrycreateRegistry(PluginRegistry parent)
    
public  ClassgetPluginClass(String pluginName)
     Returns null if no plugin has been registered with the specifiedname, otherwise the Class representing the plugin class.
public  StringgetPluginClassname(String pluginName)
     Returns null if no plugin has been registered with the specifiedname, otherwise a String representing the fully qualified classnamefor the plugin class.
public  ElementgetPluginConfig(String pluginName)
    
public  PluginDetail[]getPluginDetails()
    
public  StringgetPluginName(Class pluginClass)
    
public  PluginType[]getPluginTypes()
    
public  ClassinstanciatePluginClass(String pluginClassname, String pluginName)
    
public  booleanisPluginRegistered(String pluginName)
     True if this registry or its parent containsan entry for the plugin specified by the name.The name is the short name for the plugin, notthe classname, e.g.
static  PluginRegistryloadDefaultPluginRegistry()
     Returns a PluginRegistry containing all the default plugins. The key is the plugin name (e.g.
public  voidregister(String pluginName, String pluginClassname)
    
Parameters:
  pluginName - The name for the plugin, e.g.
public  voidregister(PluginPlugin plugin)
    
public  voidregister(Element pluginElement)
     Registers the given plugin, including plugin configuration.
static  voidregisterToRoot(Element pluginElement)
     Registers the given plugin in the root registry, so it will be available to all projects.
static  voidresetRootRegistry()
     Clears all plugin registrations and defaults in the root registry, so they can be re-registered when reloading the config file.



Method Detail
createRegistry
public static PluginRegistry createRegistry()(Code)
PluginRegistry with the ROOTREGISTRY as its parent.



createRegistry
public static PluginRegistry createRegistry(PluginRegistry parent)(Code)
PluginRegistry with the specified registry as its parent.



getPluginClass
public Class getPluginClass(String pluginName) throws CruiseControlException(Code)
Returns null if no plugin has been registered with the specifiedname, otherwise the Class representing the plugin class. Note thatplugin names are always treated as case insensitive, so Ant, ant,and AnT are all treated as the same plugin.
throws:
  CruiseControlException - If the class provided cannot be loaded.



getPluginClassname
public String getPluginClassname(String pluginName)(Code)
Returns null if no plugin has been registered with the specifiedname, otherwise a String representing the fully qualified classnamefor the plugin class. Note that pluginnames are always treated as case insensitive, so Ant, ant, and AnT areall treated as the same plugin.Note: a parent name->class mapping can be overridden by children registries.



getPluginConfig
public Element getPluginConfig(String pluginName)(Code)
Get the plugin configuration particular to this plugin, merged with the parents
throws:
  NullPointerException - if pluginName is null



getPluginDetails
public PluginDetail[] getPluginDetails() throws CruiseControlException(Code)



getPluginName
public String getPluginName(Class pluginClass)(Code)



getPluginTypes
public PluginType[] getPluginTypes()(Code)



instanciatePluginClass
public Class instanciatePluginClass(String pluginClassname, String pluginName) throws CruiseControlException(Code)

Parameters:
  pluginClassname -
Parameters:
  pluginName - instantiate the Class representing the plugin class name.
throws:
  CruiseControlException - If the class provided cannot be loaded.



isPluginRegistered
public boolean isPluginRegistered(String pluginName)(Code)
True if this registry or its parent containsan entry for the plugin specified by the name.The name is the short name for the plugin, notthe classname, e.g. ant. Note that pluginnames are always treated as case insensitive, so Ant, ant, and AnT areall treated as the same plugin.
throws:
  NullPointerException - If a null pluginName is passed, thena NullPointerException will occur. It's recommended to not pass anull pluginName.



loadDefaultPluginRegistry
static PluginRegistry loadDefaultPluginRegistry()(Code)
Returns a PluginRegistry containing all the default plugins. The key is the plugin name (e.g. ant) and the value is the fully qualified classname (e.g. net.sourceforge.cruisecontrol.builders.AntBuilder).
throws:
  RuntimeException - in case of IOException during the reading of the properties-file



register
public void register(String pluginName, String pluginClassname)(Code)

Parameters:
  pluginName - The name for the plugin, e.g. ant. Note that pluginnames are always treated as case insensitive, so Ant, ant, and AnT areall treated as the same plugin.
Parameters:
  pluginClassname - The fully qualified classname for theplugin class, e.g. net.sourceforge.cruisecontrol.builders.AntBuilder.



register
public void register(PluginPlugin plugin) throws CruiseControlException(Code)



register
public void register(Element pluginElement) throws CruiseControlException(Code)
Registers the given plugin, including plugin configuration.
Parameters:
  pluginElement - the JDom element that contains the plugin definition.PluginRegistry.register(PluginPlugin)



registerToRoot
static void registerToRoot(Element pluginElement) throws CruiseControlException(Code)
Registers the given plugin in the root registry, so it will be available to all projects.



resetRootRegistry
static void resetRootRegistry()(Code)
Clears all plugin registrations and defaults in the root registry, so they can be re-registered when reloading the config file. The default-properties are re-read.



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.