Class ResourcesApplication

    • Constructor Detail

      • ResourcesApplication

        public ResourcesApplication()
    • Method Detail

      • setApplicationName

        public void setApplicationName​(String applicationName)
      • getApplicationName

        public String getApplicationName()
      • getDescriptor

        public Object getDescriptor()
        Description copied from interface: ApplicationContainer
        Returns the deployment descriptor associated with this application
        Specified by:
        getDescriptor in interface ApplicationContainer
        Returns:
        deployment descriptor if they exist or null if not
      • start

        public boolean start​(ApplicationContext startupContext)
                      throws Exception
        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
        Parameters:
        startupContext - the start up context
        Returns:
        true if the container startup was successful.
        Throws:
        Exception - if this application container could not be started
      • suspend

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

        public boolean resume()
                       throws Exception
        Description copied from interface: ApplicationContainer
        Resumes this application container.
        Specified by:
        resume in interface ApplicationContainer
        Returns:
        true if resumption was successful, false otherwise
        Throws:
        Exception - if this application container could not be resumed