I\'m looking for functionality in Java similar to the .NET Managed Extensibility Framework (http://mef.codeplex.com/). For those who don\'t know MEF, I want something like this:
I have a class that I want to hook and redirect HTTP requests in. I also have a loader class already written, but all it does it replace the functions that contain the HTTP requests I want to change.
In my Eclipse runtime, I have the following three plug-ins (file names simplified for better readability):
I know that, under typical conditions, a class is only loaded once. I also know that classes are immutable. Thus, once the class is loaded, it cannot be changed unless it is reloaded (which typically
I would like to get a list of classes that are available at runtime and that match a simple name. For example:
I\'m running a webservice on apache tomcat 6.0.29 with sun jdk1.6.0_21, the webservice use spring, hibernate, axis 1.4, apache cxf, jaxb and some other libraries.
I have a situation where I have to load a named class. If there are multiple classes with the same name (say, com.example.myclass) in my class path I have to load both. I am using\'loadClass()\' metho
I\'m trying to have my application load a resource (binary file) transparently: If the file exists under the current directory, open it.
1) In a standard .Net application, are classes loaded as they are required? (e.g. If I have a class with a static constructor, is that static constructor only run the first time that class is needed?)
I have created a minimal maven project with a single child module in eclipse helios. In the src/test/resources folder I have put a single file \"install.xml\". In the folder src/test/java I have crea