Class InMemoryAppLoader

java.lang.Object
com.google.adk.web.InMemoryAppLoader
All Implemented Interfaces:
AppLoader

public final class InMemoryAppLoader extends Object implements AppLoader
An AppLoader serving a fixed set of apps, each under its App.name().
  • Constructor Details

  • Method Details

    • listApps

      public com.google.common.collect.ImmutableList<String> listApps()
      Description copied from interface: AppLoader
      Returns the names of the available apps, each a valid app name; empty if there are none.
      Specified by:
      listApps in interface AppLoader
    • loadApp

      public Optional<App> loadApp(String appName)
      Description copied from interface: AppLoader
      Returns the app served as appName, or empty if there is none.
      Specified by:
      loadApp in interface AppLoader