1616 * specific language governing permissions and limitations
1717 * under the License.
1818 */
19- package org .jooby .hotreload ;
19+ package org .jooby .run ;
2020
2121import java .io .File ;
2222import java .io .FileInputStream ;
4545import org .jboss .modules .ModuleLoader ;
4646import org .jboss .modules .log .ModuleLogger ;
4747
48- public class AppModule {
48+ public class Main {
4949
5050 private static boolean DEBUG ;
5151
@@ -67,7 +67,7 @@ public class AppModule {
6767 private String mainClass ;
6868 private volatile Module module ;
6969
70- public AppModule (final String mId , final String mainClass , final File ... cp )
70+ public Main (final String mId , final String mainClass , final File ... cp )
7171 throws Exception {
7272 this .mainClass = mainClass ;
7373 loader = AppModuleLoader .build (mId , mainClass , cp );
@@ -115,7 +115,7 @@ public static void main(final String[] args) throws Exception {
115115 cp .add (new File (System .getProperty ("user.dir" )));
116116 }
117117
118- AppModule launcher = new AppModule (args [0 ], args [1 ], cp .toArray (new File [cp .size ()]))
118+ Main launcher = new Main (args [0 ], args [1 ], cp .toArray (new File [cp .size ()]))
119119 .includes (includes )
120120 .excludes (excludes );
121121 launcher .run ();
@@ -203,12 +203,12 @@ private void stopApp(final Object app) {
203203
204204 }
205205
206- public AppModule includes (final String includes ) {
206+ public Main includes (final String includes ) {
207207 this .includes = pathMatcher (includes );
208208 return this ;
209209 }
210210
211- public AppModule excludes (final String excludes ) {
211+ public Main excludes (final String excludes ) {
212212 this .excludes = pathMatcher (excludes );
213213 return this ;
214214 }
@@ -280,58 +280,58 @@ private static void logLevel() {
280280 @ Override
281281 public void trace (final Throwable t , final String format , final Object arg1 ,
282282 final Object arg2 , final Object arg3 ) {
283- AppModule .trace (format , arg1 , arg2 , arg3 , t );
283+ Main .trace (format , arg1 , arg2 , arg3 , t );
284284 }
285285
286286 @ Override
287287 public void trace (final Throwable t , final String format , final Object arg1 ,
288288 final Object arg2 ) {
289- AppModule .trace (format , arg1 , arg2 , t );
289+ Main .trace (format , arg1 , arg2 , t );
290290 }
291291
292292 @ Override
293293 public void trace (final String format , final Object arg1 , final Object arg2 ,
294294 final Object arg3 ) {
295- AppModule .trace (format , arg1 , arg2 , arg3 );
295+ Main .trace (format , arg1 , arg2 , arg3 );
296296 }
297297
298298 @ Override
299299 public void trace (final Throwable t , final String format , final Object ... args ) {
300300 Object [] values = new Object [args .length + 1 ];
301301 System .arraycopy (args , 0 , values , 0 , args .length );
302302 values [values .length - 1 ] = t ;
303- AppModule .trace (format , values );
303+ Main .trace (format , values );
304304 }
305305
306306 @ Override
307307 public void trace (final Throwable t , final String format , final Object arg1 ) {
308- AppModule .trace (format , arg1 , t );
308+ Main .trace (format , arg1 , t );
309309 }
310310
311311 @ Override
312312 public void trace (final String format , final Object arg1 , final Object arg2 ) {
313- AppModule .trace (format , arg1 , arg2 );
313+ Main .trace (format , arg1 , arg2 );
314314
315315 }
316316
317317 @ Override
318318 public void trace (final Throwable t , final String message ) {
319- AppModule .trace (message , t );
319+ Main .trace (message , t );
320320 }
321321
322322 @ Override
323323 public void trace (final String format , final Object ... args ) {
324- AppModule .trace (format , args );
324+ Main .trace (format , args );
325325 }
326326
327327 @ Override
328328 public void trace (final String format , final Object arg1 ) {
329- AppModule .trace (format , arg1 );
329+ Main .trace (format , arg1 );
330330 }
331331
332332 @ Override
333333 public void trace (final String message ) {
334- AppModule .trace (message );
334+ Main .trace (message );
335335 }
336336
337337 @ Override
0 commit comments