Java Plugin Framework

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Natural Language Processing
51.Net
52.Parser
53.PDF
54.Portal
55.Profiler
56.Project Management
57.Report
58.RSS RDF
59.Rule Engine
60.Science
61.Scripting
62.Search Engine
63.Security
64.Sevlet Container
65.Source Control
66.Swing Library
67.Template Engine
68.Test Coverage
69.Testing
70.UML
71.Web Crawler
72.Web Framework
73.Web Mail
74.Web Server
75.Web Services
76.Web Services apache cxf 2.2.6
77.Web Services AXIS2
78.Wiki Engine
79.Workflow Engines
80.XML
81.XML UI
Java Source Code / Java Documentation  » Development » Java Plugin Framework 
Java Plugin Framework (JPF)
License:GNU Library or Lesser General Public License (LGPL)
URL:http://jpf.sourceforge.net/
Description:JPF provides a runtime engine that dynamically discovers and loads "plug-ins".
Package NameComment
org.java.plugin

This package contains framework runtime API.

The JPF consists of three major parts:

  • {@link org.java.plugin.registry.PluginRegistry Plug-in registry} - the storage for meta information about all discovered plug-ins
  • {@link org.java.plugin.PathResolver Path resolver} - the component, which knows all about where things are physically located
  • {@link org.java.plugin.PluginManager Plug-in manager} - the framework runtime that loads and activates plug-ins

Plug-in registry is a set of interfaces that abstract whole meta information about plug-ins and plug-in fragments. The framework provides standard implementation for these interfaces that is based on concept of plug-in manifest as a special XML syntax file, created according to plug-in DTD. But in any case, the general rule is that manifest should be registered with plug-in registry for every plug-in and plug-in fragment.

The framework also provides standard implementation of path resolver, which just maps plug-in manifests to context ("home") folder of corresponding plug-ins.

To get instances of any base Framework classes, use special {@link org.java.plugin.ObjectFactory factory class} that knows what implementation classes to load for plug-in registry, manager and path resolver. For example, you can get instance of plug-in manager just in one {@link org.java.plugin.ObjectFactory#createManager() method call}. This makes usage of JPF very simple in most situations.

org.java.plugin.boot

This package contains helper classes to start/stop JPF based applications.

The main class here is Boot that contains standard entry point for Java applications - method main(String[]). The implemented boot sequence is following:

For details and supported configuration parameters see documentation for corresponding classes.

Note that described scenario is quite common and can be customized and changed in any point providing other implementations of key classes.

For a list of available configuration parameters see documentation for the Boot (applicable to any scenario) and DefaultApplicationInitializer (applicable to scenario when this class being used) classes.

org.java.plugin.registry

This package contains framework registry API.

org.java.plugin.registry.xml

This package contains XML syntax manifest files based framework registry API implementation.

org.java.plugin.standard

This package contains standard implementation of main framework runtime API.

org.java.plugin.tools

General plug-in tools related classes.

org.java.plugin.tools.ant

This package contains implementations of various Ant tasks aimed to make usage of JPF much simple and convenient.

org.java.plugin.tools.docgen

JXP (Java scripted page) templates based documentation generator.

org.java.plugin.tools.mocks

Simple mock classes to be used in unit tests.

org.java.plugin.util

This package contains miscellaneous utility classes.

w___w_w___.__j___a_v__a_2___s_.__c__o___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.