PDA

View Full Version : Int'ing public inner classes in XML


eoliphant
Aug 16th, 2004, 09:36 PM
Hi,
I am using the Apache Commons Pool package and attempting to setup and instance of a public inner class (org.apache.commons.pool.impl.GenericKeyedObjectPo ol.Config).


The spring startup validation is reporting that this class is not found. I've poked through the docs and don't see any refs to this scenario.

Any ideas ?

Rod Johnson
Aug 17th, 2004, 04:07 AM
The class name with be org.apache.commons.pool.impl.GenericKeyedObjectPoo l$Config
(Note the final $, not .) You can instantiate configure an inner class so long as it's static.

There are numerous Spring test cases that instantiate static inner classes.

eoliphant
Aug 17th, 2004, 10:27 AM
Double Duh :)

Thanks, Rod !