Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6942553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:02:09+00:00 2026-05-27T13:02:09+00:00

How to call this pattern, and is there any existing apache-commons utility for this:

  • 0

How to call this pattern, and is there any existing apache-commons utility for this:

class Person {
    String getName();
}

List<Person> persons = ...;

// create a dynamic bean on the fly, which can be used as:
Object personXxxx = transformListOfBeans(Person.class, persons);
// so each of the bean properties now returns the list of the original property:
List<String> personNames = personXxxx.name;

// i.e. the transformation creates a new "type":
class PersonXxxx {
    List<String> getName();
}

How to call this kind of transformation? A proxy should keep the method signatures. So it is not a proxy, neither decorator.

Well, I can simply rename the generated property names to plural form, like:

personXxxx.names

This is no problem. I want to know if such pattern was already known so I don’t have to choose the appropriate words myself.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:02:10+00:00Added an answer on May 27, 2026 at 1:02 pm

    I don’t think a tool exists for this.
    You have to code it :

    List<String> names = new ArrayList<String>(persons.size());
    for (Person person : persons) {
        names.add(person.getName());
    }
    

    Maybe you can use introspection to be more generic, but code is really simple.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I call this a flash meeting, but maybe there is another more appropriate name.
Is there a way to implement this pattern in a generic way? A dispatcher
Every time I call this method my NSMutableData is leaking and I cannot figure
When I call this function, everything works, as long as I don't try to
I want to call this WS http://www.webservicex.net/country.asmx?op=GetCountries What is the best possible way to
I want to call this procedure that sends one value that can be NULL
Would you call this implementation of a multiton in objective-c 'elegant'? I have programmatically
What do you call this arrow looking -> operator found in PHP? It's either
So I call this PHP script from the command line: /usr/bin/php /var/www/bims/index.php projects/output and
I'm not sure what to call this question, since it involves a variety of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.