@Test public void reloadTest() throws LoaderException, IOException { Components.reload(); final RequestMapper mapper = Routes.route().lookup("/v1/reload", RequestMethod.POST); Assert.assertNotNull(mapper); final Object reload = Components.invoke(mapper, null); Assert.assertEquals(reload, "Reload"); }
public static final void reload() throws LoaderException, IOException { destroy(); load(); }
Components { public static final void reload() throws LoaderException, IOException { destroy(); load(); } }
Components { public static final void reload() throws LoaderException, IOException { destroy(); load(); } private  Components(); }
Components { public static final void reload() throws LoaderException, IOException { destroy(); load(); } private  Components(); static final void load(); static final void reload(); static final void destroy(); @SuppressWarnings("deprecation") static final Object[] bindParam(final Method method, final Map<String, Object> params, final Object... objs); static Object invoke(final RequestMapper mapper); static final Object invoke(final RequestMapper mapper, final Map<String, Object> parameter, final Object... objs); }
Components { public static final void reload() throws LoaderException, IOException { destroy(); load(); } private  Components(); static final void load(); static final void reload(); static final void destroy(); @SuppressWarnings("deprecation") static final Object[] bindParam(final Method method, final Map<String, Object> params, final Object... objs); static Object invoke(final RequestMapper mapper); static final Object invoke(final RequestMapper mapper, final Map<String, Object> parameter, final Object... objs);  }