org.onebusaway.presentation.impl
Class InitialSetupServiceImpl

java.lang.Object
  extended by org.onebusaway.presentation.impl.InitialSetupServiceImpl
All Implemented Interfaces:
InitialSetupService

@Component
public class InitialSetupServiceImpl
extends Object
implements InitialSetupService


Constructor Summary
InitialSetupServiceImpl()
           
 
Method Summary
 boolean isInitialSetupRequired(boolean forceRefresh)
          Since this is going to be called for EVERY incoming web-request, we don't want to do something like make a database hit for each request.
 void setUserService(UserService userService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialSetupServiceImpl

public InitialSetupServiceImpl()
Method Detail

setUserService

public void setUserService(UserService userService)

isInitialSetupRequired

public boolean isInitialSetupRequired(boolean forceRefresh)
Since this is going to be called for EVERY incoming web-request, we don't want to do something like make a database hit for each request. Thus, we cache.

Specified by:
isInitialSetupRequired in interface InitialSetupService


Copyright © 2012 OneBusAway. All Rights Reserved.