Hi, I am trying to using AOP to add to the Sculptor helper.ext method "getExtendsAndImplementsLitteral". I saw in the oAW forums and the oAW video that it is supposed to be possible:
http://www.openarchitectureware.org/forum/viewtopic.php?showtopic=5923 However, I am not able to get this to work. My code looks like this: in extensions/Foo.ext: import sculptormetamodel; import sculptordsl; around extensions::helper::getExtendsAndImplementsLitteral(DomainObject domainObject): let literal = (String)ctx.proceed() : literal + getExtraImplements(domainObject) -> literal; String getExtraImplements(DomainObject domainObject) : (domainObject.metaType == DslEntity || domainObject.metaType == DslValueObject) ? " implements com.foo.MyInterface" : ""; Then in the target application's workflow.oaw file, I have: <component adviceTarget="generator" class="oaw.xtend.XtendAdvice"> <extensionAdvice value="extensions::Foo"/> </component> When I run this, I get: 1797 ERROR WorkflowRunner - ERROR in Component of type org.openarchitectureware.xtend.XtendAdvice advice target is not an XtendComponent. in workflow: XtendAdvice: extensionAdvices: extensions::Fortress 1797 ERROR WorkflowRunner - Workflow interrupted because of configuration errors. [ERROR] The following mojo encountered an error while executing: Group-Id: org.fornax.toolsupport Artifact-Id: fornax-oaw-m2-plugin Version: 2.1.0 Mojo: run-workflow brought in via: POM ... How do I do this? Thanks, Polly -- View this message in context: http://www.nabble.com/Using-AOP-to-extend-ext-file-tp18930627s17564p18930627.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fornax-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fornax-developer
