plugin-architecture

Best technology for adding plugin support to a J2SE application? [closed]

自作多情 提交于 2019-12-04 08:29:14
I'm writing a J2SE desktop application that requires one of its components to be pluggable. I've already defined the Java interface for this plugin. The user should be able to select at runtime (via the GUI) which implementation of this interface they want to use (e.g. in an initialisation dialog). I envisage each plugin being packaged as a JAR file containing the implementing class plus any helper classes it may require. What's the best technology for doing this type of thing in a desktop Java app? After many tries for plugin-based Java architectures (what is precisely what you seem to look

C# DLL's plugin-architecture

喜欢而已 提交于 2019-12-03 03:21:32
问题 I have a program that i developed to use a basic plugin architecture. Effectively, when the program loads it uses reflection to search the directory for dll's that fit a certain interface and then loads them. It now appears that the current list of plugins is all that will be used. Therefore, is my current practise of check the dll files still the best practise, or are there better ways to load each dll? Thanks. 回答1: From your question it looks like you've built (or are trying to build) your

java: is there a framework that allows dynamically loading and unloading of jars (but not osgi)?

浪尽此生 提交于 2019-12-01 14:10:33
I want a mechanism that will allow to dynamically load and unload jars as well as calling an activator class in the jar. I don't want to use OSGi because of the cumbersome import/export mechanism. There's a project called the Java Plugin Framework that might be what you're looking for. On their web page it states the project is an attempt to match and extend Eclipse's pre-OSGI plugin architecture. It's a generic framework and isn't tied to SWT/desktop apps. You can use the ClassLoader to dynamically load classes from JAR files. When you have dynamically loaded the class, you can explicitly

Golang events: EventEmitter / dispatcher for plugin architecture

余生长醉 提交于 2019-11-30 05:05:51
In Node.js I was able to make a WordPress clone rather easily using the EventEmitter to replicate and build a hooks-system into the CMS core, which plugins could then attach to. I now need this same level of extensibility and core isolation for my CMS written in and ported to Go. Basically I have the core finished now, but in order to make it truly flexible I have to be able to insert events (hooks) and to have plugins attach to these hooks with additional functionality. I don't care about recompiling (dynamic / static linking), as long as you don't have to modify the core to load plugins -

How to create a pluginable Java program?

旧街凉风 提交于 2019-11-29 19:52:06
I want to create a Java program that can be extended with plugins. How can I do that and where should I look for? I have a set of interfaces that the plugin must implement, and it should be in a jar. The program should watch for new jars in a relative (to the program) folder and registered them somehow. Although I do like Eclipse RCP, I think it's too much for my simple needs. Same thing goes for Spring, but since I was going to look at it anyway, I might as well try it. But still, I'd prefer to find a way to create my own plugin "framework" as simple as possible. Steve M I've done this for

How To Create a Flexible Plug-In Architecture?

早过忘川 提交于 2019-11-29 18:32:07
A repeating theme in my development work has been the use of or creation of an in-house plug-in architecture. I've seen it approached many ways - configuration files (XML, .conf, and so on), inheritance frameworks, database information, libraries, and others. In my experience: A database isn't a great place to store your configuration information, especially co-mingled with data Attempting this with an inheritance hierarchy requires knowledge about the plug-ins to be coded in, meaning the plug-in architecture isn't all that dynamic Configuration files work well for providing simple information

How to create a pluginable Java program?

浪子不回头ぞ 提交于 2019-11-28 14:38:21
问题 I want to create a Java program that can be extended with plugins. How can I do that and where should I look for? I have a set of interfaces that the plugin must implement, and it should be in a jar. The program should watch for new jars in a relative (to the program) folder and registered them somehow. Although I do like Eclipse RCP, I think it's too much for my simple needs. Same thing goes for Spring, but since I was going to look at it anyway, I might as well try it. But still, I'd prefer

How To Create a Flexible Plug-In Architecture?

别说谁变了你拦得住时间么 提交于 2019-11-28 13:10:01
问题 A repeating theme in my development work has been the use of or creation of an in-house plug-in architecture. I've seen it approached many ways - configuration files (XML, .conf, and so on), inheritance frameworks, database information, libraries, and others. In my experience: A database isn't a great place to store your configuration information, especially co-mingled with data Attempting this with an inheritance hierarchy requires knowledge about the plug-ins to be coded in, meaning the

Implementing Plugin Architecture - Dynamic DLL loading

强颜欢笑 提交于 2019-11-28 10:37:20
I've an application which is basically a designer with preloaded controls where you can design your pages using the controls. I'm planning to release more and more controls in the future. I don't want to release a new build for newly added controls as it has its disadvantages. So I was thinking of addon/plugin kind of architecture where I just release the addon/plugin separately which they can install and get the controls inside the designer. Right now I'm using xml files as addons to specify the controls, its behaviors, its styles etc. Each xml (addon) represents a single control. But I'm

Java plugin framework choice [closed]

Deadly 提交于 2019-11-28 02:41:49
We're trying to determine how to implement a simple plugin framework for a service we are implementing that allows different types of calculators to be "plugged-in". After reading a number of posts about Java plugin frameworks, it seems like the most common options are: OSGI " Rolling your own " plugin framework The Java Plugin Framework (JPF) The Java Simple Plugin Framework (JSPF) OSGI seems to be more than we need. "Rolling your own" is ok but it would be nice to reuse a common library. So we're down to the JPF and JSPF. JPF doesn't seem to be in active development anymore. JSPF seems very