Interface ScopedViewContext
-
- All Superinterfaces:
MutableScope
,Scope
,ViewContext
public interface ScopedViewContext extends ViewContext
AViewContext
onto which additional scopes can be pushed and popped as node tree of a view template is traversed.- Author:
- Carl Harris
-
-
Field Summary
-
Fields inherited from interface org.soulwing.prospecto.api.ViewContext
PATH_DELIMITER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AssociationManagerService
getAssociationManagers()
Gets the collection of association managers.KeyTypeConverterService
getKeyTypeConverters()
Gets the collection of key type converters.NotifiableViewListeners
getListeners()
Gets the collection of view listeners.ObjectFactoryService
getObjectFactories()
Gets the collection of object factory strategiesReferenceResolverService
getReferenceResolvers()
Gets the collection of resource resolvers.ValueTypeConverterService
getValueTypeConverters()
Gets the collection of value type converters.void
pop()
Pops the top frame from the context stackvoid
push(Object key)
Pushes a new frame onto the context stack for an indexed framevoid
push(String name, Class<?> modelType)
Pushes a new frame onto the context stack.-
Methods inherited from interface org.soulwing.prospecto.api.ViewContext
appendScope, copy, currentModelPath, currentViewPath, currentViewPathAsString, get, get, getOptional, getOptional, getOptions, getScopes, getStackFrames, getUrlDecorators, newScope, prependScope, pushFrame, put, put, putAll, putAll, remove
-
-
-
-
Method Detail
-
getListeners
NotifiableViewListeners getListeners()
Gets the collection of view listeners.- Specified by:
getListeners
in interfaceViewContext
- Returns:
- view listners
-
getReferenceResolvers
ReferenceResolverService getReferenceResolvers()
Gets the collection of resource resolvers.- Specified by:
getReferenceResolvers
in interfaceViewContext
- Returns:
- resource resolvers
-
getAssociationManagers
AssociationManagerService getAssociationManagers()
Gets the collection of association managers.- Specified by:
getAssociationManagers
in interfaceViewContext
- Returns:
- association managers
-
getObjectFactories
ObjectFactoryService getObjectFactories()
Gets the collection of object factory strategies- Specified by:
getObjectFactories
in interfaceViewContext
- Returns:
- factory strategies
-
getKeyTypeConverters
KeyTypeConverterService getKeyTypeConverters()
Gets the collection of key type converters.- Specified by:
getKeyTypeConverters
in interfaceViewContext
- Returns:
- converter collection
-
getValueTypeConverters
ValueTypeConverterService getValueTypeConverters()
Gets the collection of value type converters.- Specified by:
getValueTypeConverters
in interfaceViewContext
- Returns:
- converter collection
-
push
void push(String name, Class<?> modelType)
Pushes a new frame onto the context stack.- Parameters:
name
- name of the subject view nodemodelType
- model type associated with the node
-
push
void push(Object key)
Pushes a new frame onto the context stack for an indexed frame- Parameters:
key
- key to associate with the frame; this is either an integer index in the case of a frame for an array-like structure or a key in the case of a frame for a map-like structure
-
pop
void pop()
Pops the top frame from the context stack
-
-