Thank you Ryan, I tried with your suggestion and it works for resources, but it comes to ClassLoading it doesn't work.

There the "BaseConfigReader" and that's the class that is unable to find plugins' classes.

Do you think I'm doing something wrong ?


2012/12/7 Ryan Bradley <ryan.k.bradley@gmail.com>
Hi Luca,

As Lincoln mentioned, I took the second approach. I think that it's the simplest way to do it. The line is highlighted at:

https://github.com/forge/plugin-spring-mvc/blob/master/src/main/java/org/jboss/forge/scaffold/spring/SpringScaffold.java#L208

Cheers,
Ryan



On Thu, Dec 6, 2012 at 3:08 PM, Luca Masini <luca.masini@gmail.com> wrote:
Ryan there are two solutions:

1) Override the lookupClass method to look in the current class ClassLoader
2) Use Seam's ClassLoaderTemplateResolver to load resources.

I really don't know which is the best approach.


2012/12/5 Ryan Bradley <ryan.k.bradley@gmail.com>
Hi Luca,

As Richard mentioned, I worked to create a Metawidget implementation for my Forge plugin. Unfortunately, I have been unable to be as actively involved with Forge lately as I have been busy at school. However, I am happy to answer any questions/describe how my implementation works. I will try to be as prompt as possible in my responses, but I make no guarantees as exams are starting now.

Cheers,
Ryan


On Tue, Dec 4, 2012 at 9:12 AM, Luca Masini <luca.masini@gmail.com> wrote:
After the resources I have the same problem with the classes that are needed from MetaWidget.

The fact is that from the configuration it must load a class inside my module/plugin, but to lookup the class it uses the org.jboss.forge.forge-scaffold... module, which of course know nothing about my custom classes.

Now the solution is to override the lookupClasses, but am I doing something wrong ?? There is a way to let "system" modules see my custom classes ??

Thank you

--
****************************************
http://www.lucamasini.net
http://twitter.com/lmasini
http://www.linkedin.com/pub/luca-masini/7/10/2b9
****************************************

_______________________________________________
forge-dev mailing list
forge-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev





--
****************************************
http://www.lucamasini.net
http://twitter.com/lmasini
http://www.linkedin.com/pub/luca-masini/7/10/2b9
****************************************




--
****************************************
http://www.lucamasini.net
http://twitter.com/lmasini
http://www.linkedin.com/pub/luca-masini/7/10/2b9
****************************************