facebook

spring beans, cross-file dependencies, and depends-on

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #274808 Reply

    I’m constructing a set of bean split across multiple files.

    In one case, a bean with a ‘depends-on’ depends on a bean defined in the file that includes the file.

    E.G.

    File 1:

    define bean B

    include file 2

    FIle 2:

    define bean C to depend on bean B.

    I get a red x error in the MyEclipseIDE, even though both files are shows in the Spring Beans view and B is defined.

    #274811 Reply

    Version: 6.0.0 GA
    Build id: 6.0.0-GA-200708

    #274853 Reply

    Riyad Kalla
    Member

    benson,
    Pop open your project properties and go to MyEclipse > Spring, make sure all your Spring bean config files are listed and included in the same config set.

    #274855 Reply

    I checked that before I posted. I just checked again.

    ref=’s work fine, but depends-on do not.

    #274856 Reply

    Hang on, I didn’t understand you fully the first time. Creating a group and dumping them all in got rid of the red X on the depends-on. It leaves some yellow triangles on ref= cases. It has no effect on the leaf icon.

    #274857 Reply

    Riyad Kalla
    Member

    Please restart, see if that gets the decorators to update.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: spring beans, cross-file dependencies, and depends-on

You must be logged in to post in the forum log in