You can't instantiate an abstract class, that's why it's abstract. Instantiating an anonymous inner class derived from it wouldn't work? MyAsset myAsset = new MyAsset() { @Override public InjectedObject getInjectedObject() {return null;} };
Kalle On 5/9/07, Paul Stanton <[EMAIL PROTECTED]> wrote:
no, I have a class which implements IAsset, and I need to be able to keep it abstract for injections, yet instantiate it or get a handle to an instance on demand. Is there a pool/procedure in tapestry I can retrieve an instance from? Thanks. Jesse Kuhnert wrote: > I don't think you can instantiate an abstract class. > > Were you trying to test a component? > > http://tapestry.apache.org/tapestry4.1/tapestry-test/components.html > > On 5/8/07, Paul Stanton <[EMAIL PROTECTED]> wrote: >> >> What is the best way to instantiate an abstract class defining an asset? >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]