/** * Build an jooby environment. * * @author edgar */ interface Builder { /** * Build a new environment from a {@link Config} object. The environment is created from the * <code>application.env</code> property. If such property is missing, env's name must be: * <code>dev</code>. * * Please note an environment created with this method won't have a {@link Env#router()}. * * @param config A config instance. * @return A new environment. */ @Nonnull default Env build(final Config config) { return build(config, null, Locale.getDefault()); } /** * Build a new environment from a {@link Config} object. The environment is created from the * <code>application.env</code> property. If such property is missing, env's name must be: * <code>dev</code>. * * @param config A config instance. * @param router Application router. * @param locale App locale.
/** * @return Utility method for generating keys for named services. */ @Nonnull default ServiceKey serviceKey() { return new ServiceKey(); }
/** * Build an jooby environment. * * @author edgar */ interface Builder { /** * Build a new environment from a {@link Config} object. The environment is created from the * <code>application.env</code> property. If such property is missing, env's name must be: * <code>dev</code>. * * Please note an environment created with this method won't have a {@link Env#router()}. * * @param config A config instance. * @return A new environment. */ @Nonnull default Env build(final Config config) { return build(config, null, Locale.getDefault()); } /** * Build a new environment from a {@link Config} object. The environment is created from the * <code>application.env</code> property. If such property is missing, env's name must be: * <code>dev</code>. * * @param config A config instance. * @param router Application router. * @param locale App locale.
/** * @return Utility method for generating keys for named services. */ @Nonnull default ServiceKey serviceKey() { return new ServiceKey(); }