Skip to content

Commit

Permalink
Deleted NGApplication.start(). We start the adaptor, not the application
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Jun 15, 2024
1 parent feedc2a commit 87b2931
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ng-appserver/src/main/java/ng/appserver/NGApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ public static <E extends NGApplication> E runAndReturn( final String[] args, fin
// The application class' package gets added by default // FIXME: Don't like this Hugi 2022-10-10
NGElementUtils.addPackage( applicationClass.getPackageName() );

// FIXME: starting the application should probably be done by the user
application.start();
// FIXME: Eventually the adaptor startup should probably be done by the user
application.createAdaptor().start( application );

if( properties.propWOLifebeatEnabled() ) {
NGDefaultLifeBeatThread.start( application._properties );
Expand Down Expand Up @@ -228,13 +228,6 @@ private void loadPlugins() {
} );
}

/**
* Starts the adaptor
*/
private void start() {
createAdaptor().start( this );
}

/**
* @return The class to use when constructing a new session. By default we look for a class named "Session" in the same package as the application class
*/
Expand Down

0 comments on commit 87b2931

Please sign in to comment.