Class ServerApplication

All Implemented Interfaces:
ConnectionManagerProvider, DomainContextProvider, org.tentackle.session.SessionPoolProvider, org.tentackle.session.SessionProvider

public abstract class ServerApplication extends AbstractServerApplication
RMI Application Server.
Author:
harald
  • Constructor Details

    • ServerApplication

      public ServerApplication(String name, String version, Class<? extends RemoteDbConnectionImpl> connectionClass)
      Creates an instance of an application server.
      Parameters:
      name - the application name
      version - the application version
      connectionClass - the class of the connection object to instantiate, null = default or from serverInfo's properties file
  • Method Details

    • getServerApplication

      public static ServerApplication getServerApplication()
      Gets the running server application.
      Returns:
      the application
    • getRmiServer

      public RmiServer getRmiServer()
      Gets the RMI server.
      Returns:
      the RMI server
    • startup

      protected void startup()
      Overrides:
      startup in class AbstractServerApplication
    • initializeScripting

      protected void initializeScripting()
      Overrides:
      initializeScripting in class AbstractApplication
    • validateValidators

      protected void validateValidators()
      Validates the validators.
      The default implementation loads all Validators of all PDO classes and invokes Validator.validate(). This will load all CompoundValues and compiles the scripts, if any.
    • createRmiServer

      protected RmiServer createRmiServer(Class<? extends RemoteDbConnectionImpl> connectionClass)
      Creates the RMI-server instance (but does not start it).
      The default implementation creates a RmiServer.
      Parameters:
      connectionClass - the class of the connection object to instantiate, null = default or from serverInfo's properties file
      Returns:
      the created RmiServer
    • finishStartup

      protected void finishStartup()
      Overrides:
      finishStartup in class AbstractServerApplication
    • startRmiServer

      protected void startRmiServer()
      Starts the RMI-server.
      The default implementation just does rmiServer.start().
    • cleanup

      protected void cleanup()
      Overrides:
      cleanup in class AbstractServerApplication