Class DummyApplication

  • All Implemented Interfaces:
    ApplicationContainer<Object>

    public class DummyApplication
    extends Object
    implements ApplicationContainer<Object>
    A dummy implementation of ApplicationContainer class. It can be used by Deployers which only do prepare and clean and don't actually do load/unload of the application.
    • Constructor Detail

      • DummyApplication

        public DummyApplication()
    • Method Detail

      • start

        public boolean start​(ApplicationContext startupContext)
        Description copied from interface: ApplicationContainer
        Starts an application container. ContractProvider starting should not throw an exception but rather should use their prefered Logger instance to log any issue they encounter while starting. Returning false from a start mean that the container failed to start
        Specified by:
        start in interface ApplicationContainer<Object>
        Parameters:
        startupContext - the start up context
        Returns:
        true if the container startup was successful.
      • suspend

        public boolean suspend()
        Suspends this application container.
        Specified by:
        suspend in interface ApplicationContainer<Object>
        Returns:
        true if suspending was successful, false otherwise.
      • resume

        public boolean resume()
        Resumes this application container.
        Specified by:
        resume in interface ApplicationContainer<Object>
        Returns:
        true if resumption was successful, false otherwise.
      • getDescriptor

        public Object getDescriptor()
        Returns the deployment descriptor associated with this application
        Specified by:
        getDescriptor in interface ApplicationContainer<Object>
        Returns:
        deployment descriptor if they exist or null if not