Code Monkey home page Code Monkey logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Attached is a patch that eliminates this problem by adding a setParentModule 
method to 
the Mvp4gModule interface. The parameter is a Mvp4gModule which is casted back 
to the 
proper type in child module method definition. Rather than using the parameter 
to 
determine the parent module type, it is saved into ChildModuleElement when they 
are 
loaded.

Original comment by [email protected] on 19 May 2010 at 7:39

Attachments:

from mvp4g.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Thanks for the patch.

I have a question about your correction. For a child module, in 
Mvp4gConfiguration.java, findParentModule will always return null since a child 
module won't have an annotation @ChildModule with its class. Then you won't 
have 
access to parent module & parent event bus classes and won't be able to do the 
right 
cast. Am I missing something?

Original comment by [email protected] on 20 May 2010 at 2:50

from mvp4g.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Indeed you are correct. I guess it was a bit too late to be coding... Anyway I 
have 
attached a patch that should be correct. This patch finds the parent type by 
searching 
through the annotation scan results for a class annotated with @ChildModules 
containing 
the module in question.

Original comment by [email protected] on 20 May 2010 at 4:02

Attachments:

from mvp4g.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Included in the last snapshot

Original comment by [email protected] on 8 Jun 2010 at 10:19

  • Changed state: Fixed

from mvp4g.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.