Java Doc for PluginRegistryImpl.java in  » Development » Java-Plugin-Framework » org » java » plugin » registry » xml » 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 » Development » Java Plugin Framework » org.java.plugin.registry.xml 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.java.plugin.registry.xml.PluginRegistryImpl

PluginRegistryImpl
final public class PluginRegistryImpl implements PluginRegistry(Code)
This is an implementation of plug-in registry of XML syntax plug-in manifests. Manifests should be prepared according to plug-in DTD.

Configuration parameters

This registry implementation supports following configuration parameters:

isValidating
Regulates is registry should use validating parser when loading plug-in manifests. The default parameter value is true.
stopOnError
Regulates is registry should stop and throw RuntimeException if an error occurred while PluginRegistry.register(URL[]) registering or PluginRegistry.unregister(String[]) un-registering plug-ins. If this is false, the registration errors will be stored in the internal report that is available with PluginRegistry.checkIntegrity(PathResolver) method. The default parameter value is false.

See Also:   org.java.plugin.ObjectFactory.createRegistry
version:
   $Id: PluginRegistryImpl.java,v 1.6 2007/05/13 16:10:51 ddimon Exp $


Field Summary
final static  StringPACKAGE_NAME
    

Constructor Summary
public  PluginRegistryImpl()
     Creates plug-in registry object.

Method Summary
public  IntegrityCheckReportcheckIntegrity(PathResolver pathResolver)
    
public  IntegrityCheckReportcheckIntegrity(PathResolver pathResolver, boolean includeRegistrationReport)
    
public  voidconfigure(ExtendedProperties config)
    
public  StringextractId(String uniqueId)
    
public  StringextractPluginId(String uniqueId)
    
public  VersionextractVersion(String uniqueId)
    
 voidfireEvent(RegistryChangeDataImpl data)
    
public  Collection<PluginDescriptor>getDependingPlugins(PluginDescriptor descr)
    
public  ExtensionPointgetExtensionPoint(String pluginId, String pointId)
    
public  ExtensionPointgetExtensionPoint(String uniqueId)
    
public  PluginDescriptorgetPluginDescriptor(String pluginId)
    
public  Collection<PluginDescriptor>getPluginDescriptors()
    
public  Collection<PluginFragment>getPluginFragments()
    
public  IntegrityCheckReportgetRegistrationReport()
    
public  booleanisExtensionPointAvailable(String pluginId, String pointId)
    
public  booleanisExtensionPointAvailable(String uniqueId)
    
public  booleanisPluginDescriptorAvailable(String pluginId)
    
public  StringmakeUniqueId(String pluginId, String id)
    
public  StringmakeUniqueId(String pluginId, Version version)
    
public  ManifestInforeadManifestInfo(URL url)
    
public  Map<String, Identity>register(URL[] manifests)
     General algorithm:
  1. Collect all currently registered extension points.
  2. Parse given URL's as XML content files and separate them on plug-in and plug-in fragment descriptors.
  3. Process new plug-in descriptors first:
    1. Instantiate new PluginDescriptorImpl object.
    2. Handle versions correctly - register new descriptor as most recent version or as an old version.
    3. If other versions of the same plug-in already registered, take their fragments and register them with this version.
  4. Process new plug-in fragments next:
    1. Instantiate new PluginFragmentImpl object.
    2. Check if older version of the same fragment already registered.
public  voidregisterListener(RegistryChangeListener listener)
    
public  Collection<String>unregister(String[] ids)
    
public  voidunregisterListener(RegistryChangeListener listener)
    

Field Detail
PACKAGE_NAME
final static String PACKAGE_NAME(Code)




Constructor Detail
PluginRegistryImpl
public PluginRegistryImpl()(Code)
Creates plug-in registry object.




Method Detail
checkIntegrity
public IntegrityCheckReport checkIntegrity(PathResolver pathResolver)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.checkIntegrity(org.java.plugin.PathResolver)



checkIntegrity
public IntegrityCheckReport checkIntegrity(PathResolver pathResolver, boolean includeRegistrationReport)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.checkIntegrity(org.java.plugin.PathResolverboolean)



configure
public void configure(ExtendedProperties config)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.configure(ExtendedProperties)



extractId
public String extractId(String uniqueId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.extractId(java.lang.String)



extractPluginId
public String extractPluginId(String uniqueId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.extractPluginId(java.lang.String)



extractVersion
public Version extractVersion(String uniqueId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.extractVersion(java.lang.String)



fireEvent
void fireEvent(RegistryChangeDataImpl data)(Code)



getDependingPlugins
public Collection<PluginDescriptor> getDependingPlugins(PluginDescriptor descr)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.getDependingPlugins(org.java.plugin.registry.PluginDescriptor)



getExtensionPoint
public ExtensionPoint getExtensionPoint(String pluginId, String pointId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.getExtensionPoint(java.lang.Stringjava.lang.String)



getExtensionPoint
public ExtensionPoint getExtensionPoint(String uniqueId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.getExtensionPoint(java.lang.String)



getPluginDescriptor
public PluginDescriptor getPluginDescriptor(String pluginId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.getPluginDescriptor(java.lang.String)



getPluginDescriptors
public Collection<PluginDescriptor> getPluginDescriptors()(Code)

See Also:   org.java.plugin.registry.PluginRegistry.getPluginDescriptors



getPluginFragments
public Collection<PluginFragment> getPluginFragments()(Code)

See Also:   org.java.plugin.registry.PluginRegistry.getPluginFragments



getRegistrationReport
public IntegrityCheckReport getRegistrationReport()(Code)

See Also:   org.java.plugin.registry.PluginRegistry.getRegistrationReport



isExtensionPointAvailable
public boolean isExtensionPointAvailable(String pluginId, String pointId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.isExtensionPointAvailable(java.lang.Stringjava.lang.String)



isExtensionPointAvailable
public boolean isExtensionPointAvailable(String uniqueId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.isExtensionPointAvailable(java.lang.String)



isPluginDescriptorAvailable
public boolean isPluginDescriptorAvailable(String pluginId)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.isPluginDescriptorAvailable(java.lang.String)



makeUniqueId
public String makeUniqueId(String pluginId, String id)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.makeUniqueId(java.lang.Stringjava.lang.String)



makeUniqueId
public String makeUniqueId(String pluginId, Version version)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.makeUniqueId(java.lang.Stringorg.java.plugin.registry.Version)



readManifestInfo
public ManifestInfo readManifestInfo(URL url) throws ManifestProcessingException(Code)

See Also:   org.java.plugin.registry.PluginRegistry.readManifestInfo(java.net.URL)



register
public Map<String, Identity> register(URL[] manifests) throws ManifestProcessingException(Code)
General algorithm:
  1. Collect all currently registered extension points.
  2. Parse given URL's as XML content files and separate them on plug-in and plug-in fragment descriptors.
  3. Process new plug-in descriptors first:
    1. Instantiate new PluginDescriptorImpl object.
    2. Handle versions correctly - register new descriptor as most recent version or as an old version.
    3. If other versions of the same plug-in already registered, take their fragments and register them with this version.
  4. Process new plug-in fragments next:
    1. Instantiate new PluginFragmentImpl object.
    2. Check if older version of the same fragment already registered. If yes, un-register it and move to old plug-in fragments collection.
    3. Register new fragment with all matches plug-in descriptors (if this fragment is of most recent version).
  5. Notify collected extension points about potential changes in extensions set.
  6. Propagate events about registry changes.

See Also:   org.java.plugin.registry.PluginRegistry.register(java.net.URL[])



registerListener
public void registerListener(RegistryChangeListener listener)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.registerListener(org.java.plugin.registry.PluginRegistry.RegistryChangeListener)



unregister
public Collection<String> unregister(String[] ids)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.unregister(java.lang.String[])



unregisterListener
public void unregisterListener(RegistryChangeListener listener)(Code)

See Also:   org.java.plugin.registry.PluginRegistry.unregisterListener(org.java.plugin.registry.PluginRegistry.RegistryChangeListener)



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.