|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ViewService
Service interface for creating views.
Method Summary | |
---|---|
ViewFactoryChain |
createFactories(EventType parentEventType,
List<ViewSpec> viewSpecList,
ViewServiceContext context)
Returns a chain of view factories that can be used to obtain the final event type, and that can later be used to actually create the chain of views or reuse existing views. |
Viewable |
createViews(Viewable eventStreamViewable,
List<ViewFactory> viewFactoryChain,
ViewServiceContext context)
Creates the views given a chain of view factories. |
void |
remove(EventStream eventStream,
Viewable view)
Removes a view discoupling the view and any of it's parent views up the tree to the last shared parent view. |
Method Detail |
---|
ViewFactoryChain createFactories(EventType parentEventType, List<ViewSpec> viewSpecList, ViewServiceContext context) throws ViewProcessingException
Does not actually hook up the view factories or views against the event stream, but creates view factories and sets parameters on each view factory as supplied. Determines if view factories are compatible in the chain via the attach method.
parentEventType
- - is the event type of the event stream that originates the raw eventsviewSpecList
- - the specification for each view factory in the chain to be createdcontext
- - dependent services
ViewProcessingException
- thrown if a view factory doesn't take parameters as supplied,
or cannot hook onto it's parent view or event streamViewable createViews(Viewable eventStreamViewable, List<ViewFactory> viewFactoryChain, ViewServiceContext context)
Attempts to reuse compatible views under then parent event stream viewable as indicated by each view factories reuse method.
eventStreamViewable
- is the event stream to hook intoviewFactoryChain
- defines the list of view factorys to call makeView or canReuse oncontext
- provides services
void remove(EventStream eventStream, Viewable view)
eventStream
- - the event stream that originates the raw eventsview
- - the view (should be the last in a chain) to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |