org.glassfish.api.admin
Class ProcessEnvironment

java.lang.Object
  extended by org.glassfish.api.admin.ProcessEnvironment

@Service
@Scoped(value=org.jvnet.hk2.component.Singleton.class)
public class ProcessEnvironment
extends java.lang.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

Nested Class Summary
static class ProcessEnvironment.ProcessType
          Enumeration of the supported process types Server is the application server ACC is the application client Other is a standalone java.
 
Constructor Summary
ProcessEnvironment()
          Default initialization is unkown process environment
ProcessEnvironment(ProcessEnvironment.ProcessType type)
          Creates a process environemnt for the inten
 
Method Summary
 ProcessEnvironment.ProcessType getProcessType()
          Determine and return the modes in which the code is behaving, like application server or application client modes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2012 GlassFish Community. All Rights Reserved.