egovconcepts / jacp

Automatically exported from code.google.com/p/jacp
0 stars 0 forks source link

Initial List in Perspective and Workbench #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I try setup Workbench and Perspective with Java Configuration of Spring.
I find that the Perspectives Property of Workbench not be initialized.
for example.
@Bean // name will be Method Name
  public DietWorkbench dietWorkbench() {
    DietWorkbench wb=new DietWorkbench();
    List<IPerspective<EventHandler<Event>, Event, Object>> list=new ArrayList<>();
    list.add(creditCardPerspective());
    wb.setPerspectives(list);
    return wb;
  }
if Perspectives is initialized by List then the code can easy to read.
@Bean // name will be Method Name
  public DietWorkbench dietWorkbench() {
    DietWorkbench wb=new DietWorkbench();
     wb.getPerpectives().add(creditCardPerspective());
    return wb;
  }

The same problem for SubComponents Property of Perspective.

Original issue reported on code.google.com by markench...@gmail.com on 21 Apr 2012 at 11:38