Results 1 to 3 of 3

Thread: builder.addImplementsType

  1. #1

    Default builder.addImplementsType

    Hi,

    I would like to make a ITD that makes a file implements a Comparator so in my code i use:

    builder.addImplementsType(new JavaType("java.util.Comparator"));

    That works fine, but i would like to know if there´s a way to implement a generic interface, like Comparator<String>, JavaType name´s with < are not allowed.
    I´m missing something??

    Regards

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    JavaType offers parameterization support via the overloaded constructor which takes a list of parameters, themselves also JavaType instances.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

  3. #3

    Default

    Thanks Ben, I´ll use it in the second version of the comparator plugin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •