Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java equivalent for MEF in .NET

Tags:

java

.net

mef

Does the Netbeans Rich-Client Platform Development provide the same in Java as MEF in .NET?

Is there is any other built-in easy way in JAVA to do pluggable applications?

Thanks

like image 678
Bashar Kokash Avatar asked Oct 29 '10 16:10

Bashar Kokash


People also ask

What is .NET equivalent in Java?

NET platforms. Java has its own virtual machine, the Java Virtual Machine (JVM) which is similar to . NET CLR. Java's execution engine (the JVM) and a Java compiler with a set of libraries constitute the Java Platform.

What is MEF c#?

What is MEF? The Managed Extensibility Framework or MEF is a library for creating lightweight, and extensible applications. It allows application developers to discover and use extensions with no configuration required. It also lets extension developers easily encapsulate code and avoid fragile hard dependencies.

What is MEF WPF?

MEF is an integral part of the . NET Framework 4, and is available wherever the . NET Framework is used. You can use MEF in your client applications, whether they use Windows Forms, WPF, or any other technology, or in server applications that use ASP.NET.


1 Answers

The main contender is probably OSGi. Can't say I've developed with it myself, but it's what Eclipse uses:

The OSGi Alliance is a worldwide consortium of technology innovators that advances a proven and mature process to create open specifications that enable the modular assembly of software built with Java technology. The OSGi Service Platform facilitates the componentization of software modules and applications and assures interoperability of applications and services over a variety of networked devices. The OSGi Service Platform is delivered in many Fortune Global 100 company products and services and in diverse markets including enterprise, mobile, home, telematics and consumer.

That's a huge amount of buzzword bingo, but I think it provides functionality broadly like MEF.

EDIT: OSGi specifications are available here, as per the comment.

like image 198
Jon Skeet Avatar answered Sep 29 '22 12:09

Jon Skeet