Package org.jboss.hal.core.mvp
Class HalPlaceManager
- java.lang.Object
-
- com.gwtplatform.mvp.client.proxy.PlaceManagerImpl
-
- com.gwtplatform.mvp.client.proxy.DefaultPlaceManager
-
- org.jboss.hal.core.mvp.HalPlaceManager
-
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.ValueChangeHandler<String>,com.google.gwt.event.shared.EventHandler,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.Window.ClosingHandler,com.gwtplatform.mvp.client.proxy.PlaceManager
public class HalPlaceManager extends com.gwtplatform.mvp.client.proxy.DefaultPlaceManagerCustom place manager for HAL. The most important task of this place manager is to extract well-known place request parameters and to process required resources associated with the name token.It's crucial that this happens before the place is revealed. Therefore this place manager intercepts the
doRevealPlace(PlaceRequest, boolean)method and- looks for place request parameters which match the the resource names in the statement context tuple enum.
- if found, fires the related selection events (
ProfileSelectionEvent,ServerGroupSelectionEvent,HostSelectionEventorServerSelectionEvent) - processes the required resources according to the value of the
@Requiresannotation on the proxy place - finally calls
super.doRevealPlace(request, updateBrowserUrl)
-
-
Constructor Summary
Constructors Constructor Description HalPlaceManager(com.google.web.bindery.event.shared.EventBus eventBus, com.gwtplatform.mvp.shared.proxy.TokenFormatter tokenFormatter, String defaultPlaceNameToken, String errorPlaceNameToken, String unauthorizedPlaceNameToken, MetadataProcessor metadataProcessor, javax.inject.Provider<Progress> progress, Resources resources)
-
Method Summary
-
Methods inherited from class com.gwtplatform.mvp.client.proxy.DefaultPlaceManager
revealDefaultPlace, revealErrorPlace, revealUnauthorizedPlace
-
Methods inherited from class com.gwtplatform.mvp.client.proxy.PlaceManagerImpl
buildHistoryToken, buildRelativeHistoryToken, buildRelativeHistoryToken, buildRelativeHistoryToken, fireEvent, getCurrentPlaceHierarchy, getCurrentPlaceRequest, getCurrentTitle, getEventBus, getHierarchyDepth, getTitle, hasPendingNavigation, navigateBack, onValueChange, onWindowClosing, revealCurrentPlace, revealPlace, revealPlace, revealPlaceHierarchy, revealRelativePlace, revealRelativePlace, revealRelativePlace, setOnLeaveConfirmation, unlock, updateHistory
-
-
-
-
Constructor Detail
-
HalPlaceManager
@Inject public HalPlaceManager(com.google.web.bindery.event.shared.EventBus eventBus, com.gwtplatform.mvp.shared.proxy.TokenFormatter tokenFormatter, String defaultPlaceNameToken, String errorPlaceNameToken, String unauthorizedPlaceNameToken, MetadataProcessor metadataProcessor, @Footer javax.inject.Provider<Progress> progress, Resources resources)
-
-