Java Doc for PlugIn.java in  » RSS-RDF » curn » org » clapper » curn » 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 » RSS RDF » curn » org.clapper.curn 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.clapper.curn.PlugIn

PlugIn
public interface PlugIn (Code)

This interface defines the methods that must be supported by a class that is to be plugged into curn as a generalized plug-in. curn plug-ins are invoked at various phases of curn execution.

Each plug-in phase is represented by its own Java interface, and each interface has exactly one method. A plug-in that intercepts multiple curn processing phases must implement the interfaces for each of the phases. Here are the plug-in phases, in execution order.

Plug-in interface Plug-in method Description
StartupPlugIn StartupPlugIn.runStartupPlugIn runStartupPlugIn() Called immediately after curn has started, but before it has loaded its configuration file or its cache. Intercepting this phase is useful if a plug-in needs to perform initialization.
MainConfigItemPlugIn MainConfigItemPlugIn.runMainConfigItemPlugIn runMainConfigItemPlugIn() Called immediately after curn has read and processed a configuration item in the main [curn] configuration section. All configuration items are passed, one by one, to each loaded plug-in. If a plug-in class is not interested in a particular configuration item, its runMainConfigItemPlugIn() method should simply return without doing anything. Note that some configuration items may simply be variable assignment; there's no real way to distinguish a variable assignment from a blessed configuration item.
FeedConfigItemPlugIn FeedConfigItemPlugIn.runFeedConfigItemPlugIn runFeedConfigItemPlugIn() Called immediately after curn has read and processed a configuration item in a "Feed" configuration section. All configuration items are passed, one by one, to each loaded plug-in. If a plug-in class is not interested in a particular configuration item, its runFeedConfigItemPlugIn() method should simply return without doing anything. Note that some configuration items may simply be variable assignment; there's no real way to distinguish a variable assignment from a blessed configuration item.
OutputHandlerConfigItemPlugIn OutputHandlerConfigItemPlugIn.runOutputHandlerConfigItemPlugIn runOutputHandlerConfigItemPlugIn() Called immediately after curn has read and processed a configuration item in an "OutputHandler" configuration section. All configuration items are passed, one by one, to each loaded plug-in. If a plug-in class is not interested in a particular configuration item, its runOutputHandlerConfigItemPlugIn() method should simply return without doing anything. Note that some configuration items may simply be variable assignment; there's no real way to distinguish a variable assignment from a blessed configuration item.
UnknownSectionConfigItemPlugIn UnknownSectionConfigItemPlugIn.runUnknownSectionConfigItemPlugIn runUnknownSectionConfigItemPlugIn() Called immediately after curn has read and processed a configuration item in an unknown configuration section. All configuration items are passed, one by one, to each loaded plug-in. If a plug-in class is not interested in a particular configuration item, its runUnknownSectionConfigItemPlugIn() method should simply return without doing anything. Note that some configuration items may simply be variable assignment; there's no real way to distinguish a variable assignment from a blessed configuration item.
PostConfigPlugIn PostConfigPlugIn.runPostConfigPlugIn runPostConfigPlugIn() Called after the entire configuration has been read and parsed, but before any feeds are processed. Intercepting this event is useful for plug-ins that want to adjust the configuration. For instance, the curn command-line wrapper intercepts this plug-in event so it can adjust the configuration to account for command line options.
CacheLoadedPlugIn CacheLoadedPlugIn.runCacheLoadedPlugIn runCacheLoadedPlugIn() Called after the curn cache has been read (and after any expired entries have been purged), but before any feeds are processed.
PreFeedDownloadPlugIn PreFeedDownloadPlugIn.runPreFeedDownloadPlugIn runPreFeedDownloadPlugIn() Called just before a feed is downloaded. This method can return false to signal curn that the feed should be skipped. The plug-in method can also set values on the URLConnection used to download the plug-in, via URL.setRequestProperty(). (Note that all URLs, even file: URLs, are passed into this method. Setting a request property on the URLConnection object for a file: URL will have no effect--though it isn't specifically harmful.)

Possible uses for a pre-feed download plug-in include:

  • filtering on feed URL to prevent downloading non-matching feeds
  • changing the default User-Agent value
  • setting a non-standard HTTP header field
PostFeedDownloadPlugIn PostFeedDownloadPlugIn.runPostFeedDownloadPlugIn runPostFeedDownloadPlugIn() Called immediately after a feed is downloaded. This method can return false to signal curn that the feed should be skipped. For instance, a plug-in that filters on the unparsed XML feed content could use this method to weed out non-matching feeds before they are downloaded.
PostFeedParsePlugIn PostFeedParsePlugIn.runPostFeedParsePlugIn runPostFeedParsePlugIn() Called immediately after a feed is parsed, but before it is otherwise processed. A post-feed parse plug-in has access to the parsed RSS feed data, via an RSSChannel object. This method can return false to signal curn that the feed should be skipped. For instance, a plug-in that filters on the parsed feed data could use this method to weed out non-matching feeds before they are downloaded. Similarly, a plug-in that edits the parsed data (removing or editing individual items, for instance) could use method to do so.
PreFeedOutputPlugIn PreFeedOutputPlugIn.runPreFeedOutputPlugIn runPreFeedOutputPlugIn() Called immediately before a parsed feed is passed to an output handler. A pre-feed output plug-in cannot affect the feed's processing. (The time to stop the processing of a feed is in one of the other, preceding phases.) This method will be called multiple times for each feed if there are multiple output handlers.
PostFeedOutputPlugIn PostFeedOutputPlugIn.runPostFeedOutputPlugIn runPostFeedOutputPlugIn() Called immediately after a parsed feed is passed to an output handler. A post-feed output plug-in cannot affect the feed's processing. (The time to stop the processing of a feed is in one of the other, preceding phases.) This method will be called multiple times for each feed if there are multiple output handlers.
PostOutputHandlerFlushPlugIn PostOutputHandlerFlushPlugIn.runPostOutputHandlerFlushPlugIn runPostOutputHandlerFlushPlugIn() Called immediately after an output handler is flushed (i.e., after it has been called to process all feeds and its output has been written to a temporary file), but before that output is displayed, emailed, etc.
PostOutputPlugIn PostOutputPlugIn.runPostOutputPlugIn runPostOutputPlugIn() Called after curn has flush all output handlers. A post-output plug-in is a useful place to consolidate the output from all output handlers. For instance, such a plug-in might pack all the output into a zip file, or email it.
PreCacheSavePlugIn PreCacheSavePlugIn.runPreCacheSavePlugIn runPreCacheSavePlugIn() Called right before the curn cache is to be saved. A plug-in might choose to edit the cache at this point.
ShutdownPlugIn ShutdownPlugIn.runShutdownPlugIn runShutdownPlugIn() Called just before curn gets ready to exit. This method allows plug-ins to perform any clean-up they require.

version:
   $Revision: 7041 $




Method Summary
public  StringgetPlugInName()
     Get a displayable name for the plug-in.
public  StringgetPlugInSortKey()
     Get the sort key for this plug-in.
public  voidinitPlugIn()
     Initialize the plug-in.



Method Detail
getPlugInName
public String getPlugInName()(Code)
Get a displayable name for the plug-in. the name



getPlugInSortKey
public String getPlugInSortKey()(Code)
Get the sort key for this plug-in. the sort key string.



initPlugIn
public void initPlugIn() throws CurnException(Code)
Initialize the plug-in. This method is called before any of the plug-in methods are called.
throws:
  CurnException - on error



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.