BAXTER-IT / yurconf

Baxter Configuration Server
http://www.yurconf.org/
0 stars 1 forks source link

Implement ClassLoader for processors packages #12

Closed ykryshchuk closed 10 years ago

ykryshchuk commented 10 years ago

Added classloader for a standalone application.

At application startup the code reads a system property -Dyurconf.processors which points to the location of processors. All found processor archives that can be added there are added to the custom classloader with a parent as fundamental processor classes loader.

This is a simplest way to share classes between different processor packages.

ykryshchuk commented 10 years ago

org.yurconf.server.ProcessorsClassLoader this one is applied as a Jetty context classloader. this lists all detected processor JARs and uses the default application's classloader as parent.

as far as all configuration processors will be executed in jetty context, this classlaoder should be fine to resolve the classe between different processors.