Hi,

I'm having trouble to use peek() to get the object from top of the stack.

I say 

digester.push(this);

Alright, peek() is returning the object from the stack properly. 

Now I add another object to the stack:

digester.addObjectCreate("pattern", TemplateMappingEntity.class);

... and now peek() is NOT giving me back an instance of TemplateMappingEntity!

WHY ?   (of course the pattern exists)

I tried also using a factory to add an object to the stack:

digester.addFactoryCreate("pattern", new MappingEntityFactory());

In this case as well peek() is NOT returning the instance that is delivered by 
the createObject() method of my factory.

What is wrong with the peek() method??
How can I get the object that is on top of the stack?

Regards
  Marc




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to