Weitere ähnliche Inhalte
Ähnlich wie Riena on-rap-ese2010
Ähnlich wie Riena on-rap-ese2010 (20)
Kürzlich hochgeladen (20)
Riena on-rap-ese2010
- 1. © 2002 IBM Corporation
Confidential | Date | Other Information, if necessaryNovember 17, 2010 Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
1
Christian Campo
Eclipse Summit 2010 – Nov 2010
+
- 2. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena is !
! Client / Server Apps (Distributed Components)
! Based on OSGi / Equinox
! Built on top of RCP
! „Enterprise ready“
! End-user focused Navigation Concept
! Service Oriented
2
- 3. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena UI is !
- 4. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena Navigation Model/Processor
! Tree based Model
! Building blocks are!
! extensions („assemblies“)
! nodeBuilders (java code)
! Multiple instances per building block possible (i.e. multiple
customer records)
! Navigate from any give node in the tree to any other node
using a simple id
! Pass parameter, supply feedback with changelisteners
! Generic NavigationProcessor included to manage the tree
5
- 5. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena Navigation Model
6
Application
Subapplication !
Modulegroup ...
Module ...
Submodule ...
- 6. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena with „RCP Glasses“
7
• Perspective
• Coolbars
• RCP View owned
by Riena, driven by
the Navigation Model
• RCP Views
- 7. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena Client on RAP
- 8. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena RCP ! Riena RAP
9
- 9. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena/RCP Architecture
10
- 10. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena/RAP Architecture
11
RAP Server
- 11. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Single Sourcing
! One Source for RCP and RAP (with exceptions)
! Not available in RAP are...
! MouseListener
! PaintListener (however GC exists)
! Added Facades in Riena to wrap variations between RCP / RAP
! GC, SWT (the class), DialogConstants, Browser etc.
! „Singletons“: distinguish between
! SessionSingletons (Client specific) and maintain them in the
UserContext
! Global Singletons
12
- 12. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Single Sourcing - Singletons
! What is a singleton ?
! xxx.getInstance() (classical)
! static singleton - class with static methods and static fields
! pseudo classical – xxx.getInstance() but no instance state
! utility class – static methods, no fields
! Singletons must be handles correctly in framework code (Riena)
but also in your application code
13
- 13. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Single Sourcing - Singletons
14
Global Singletons
private final static SingletonProvider IS = new SingletonProvider(ImageStore.class);
public static ImageStore getInstance() {
retturn IS.getInstance();
}
Session Specific Singletons
private static final SingletonProvider SVP = new SessionSingletonProvider(SwtViewProvider.class);
public static SwtViewProvider getInstance() {
return SVP.getInstance();
}
!!! Magic Involved !!!!
- 14. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0 15
Demo Riena on RAP
- 15. Copyright © 2010 compeople AG, Made available under the Eclipse Public License v 1.0
Riena on Rap (status)
! Riena 3.0 will deliver artifacts for RCP and RAP
! Riena 3.0M2 is already available for installation
! Riena 3.0 is part of „Indigo“ due in June 2011
! http://www.eclipse.org/riena
! http://wiki.eclipse.org/Riena_Project
! riena-dev@eclipse.org
16