Class 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.DefaultPlaceManager
    Custom 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

    1. looks for place request parameters which match the the resource names in the statement context tuple enum.
    2. if found, fires the related selection events (ProfileSelectionEvent, ServerGroupSelectionEvent, HostSelectionEvent or ServerSelectionEvent)
    3. processes the required resources according to the value of the @Requires annotation on the proxy place
    4. 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)