Class ProcessEnvironment


  • @Service
    @Singleton
    public class ProcessEnvironment
    extends Object
    Process environment allow access to information related to the execution or process. This is a bit tricky to rely of @Contract/@Service service lookup for this API since different implementations (server, clients, etc..) can be present of the classpath.
    Author:
    Jerome Dochez
    • Constructor Detail

      • ProcessEnvironment

        public ProcessEnvironment()
        Default initialization is unkown process environment
      • ProcessEnvironment

        public ProcessEnvironment​(ProcessEnvironment.ProcessType type)
        Creates a process environemnt for the inten
        Parameters:
        type - of the execution environemnt
    • Method Detail

      • getProcessType

        public ProcessEnvironment.ProcessType getProcessType()
        Determine and return the modes in which the code is behaving, like application server or application client modes.
        Returns:
        the process type