Skip to main content
Participant
October 24, 2011
Question

How to use Landmark in a Class outside the Parsley Context

  • October 24, 2011
  • 1 reply
  • 2365 views

Hi all,

Is there anyway to get the Landmark metadata work without adding the annotated Class in the Parsley Context file?

I mean, I have a Class such as:

[Landmark(name="content.foo")]

public class MyClass extends ManagedClass {

[Enter(time="every")]

public function enter():void

{

LOG.info("content.foo:Enter");

}

}

Problem:

Enter method is never fired although ManagedClass( the super class ) has a <parsley:Configure /> tag ( and, of course, all injections happen ).

Adding MyClass to the Parsley Context file makes everything work but is there anyway to make this Landmark work without doing that?

Thanks.

This topic has been closed for replies.

1 reply

Participating Frequently
October 25, 2011

That's more of a Parsley question than C3 and AFAIK it's not feasable. The other way around is with i.e. the ProcessSuperclass object definition in Parsley. Check out Parsley's developer manual on that (chapter 3 should explain this)