I have tried to implement a generic Access object. Since I need the type of
the persistent class, I figured that I need to also write a
GenericAccessObjectStrategy, to implement

public boolean isPersistentClassConstructor() {
        return true;
}

However, now mvn generate-sources fails with the message 

Caused by: java.lang.RuntimeException: Couldn't create instance from name
foo.bar.FooBarAccessObjectStrategy (foo.bar.FooBarAccessObjectStrategy)
        at
org.fornax.cartridges.sculptor.generator.util.FactoryHelper.newInstan
ceFromName(FactoryHelper.java:68)
        at
org.fornax.cartridges.sculptor.generator.util.FactoryHelper.newInstan
ceFromName(FactoryHelper.java:47)
        at
org.fornax.cartridges.sculptor.generator.util.GenericAccessObjectMana
ger.initGenericAccessObjectStrategies(GenericAccessObjectManager.java:58)
        at
org.fornax.cartridges.sculptor.generator.util.GenericAccessObjectMana
ger.createInstance(GenericAccessObjectManager.java:38)
        at
org.fornax.cartridges.sculptor.generator.util.GenerationHelper.<clini
t>(GenerationHelper.java:57)
        ... 74 more

I have implemented the objects FooBarAccess, FooBarAccessImpl and
FooBarAccessObjectStrategy and set the respective parameters in
sculptor-generator.properties: 

framework.access.interface.fooBar
framework.access.implementation.fooBar
genericAccessObjectStrategy.fooBar

Any idea what could be wrong?
-- 
View this message in context: 
http://www.nabble.com/Problem-with-GenericAccessObjectStrategy-tp17127515s17564p17127515.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to