• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to use Landmark in a Class outside the Parsley Context

New Here ,
Oct 24, 2011 Oct 24, 2011

Copy link to clipboard

Copied

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.

TOPICS
Cairngorm

Views

2.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 25, 2011 Oct 25, 2011

Copy link to clipboard

Copied

LATEST

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)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines