# Class Routes

java.lang.Object
com.codename1.router.generated.Routes

public final class Routes extends Object

Stub overwritten by the Codename One Maven plugin's route processor when an application declares one or more `com.codename1.annotations.Route` targets.

`com.codename1.ui.Display` calls `#bootstrap` once during startup. With this stub on the classpath the call is a no-op and the application sees no deep-link routing -- the framework keeps working exactly as before. When the maven plugin runs against a project that declares routes, the plugin emits a new `Routes.class` in the project's target directory; that file shadows this stub at runtime and its real `bootstrap` installs the generated `RouteDispatcher`.

Application code should not call this class directly.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `bootstrap()`
  Invoked once by the framework during initialization.

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### bootstrap

    public static void bootstrap()
    Invoked once by the framework during initialization. The stub does nothing; the generated replacement installs the project's route dispatcher.