Package org.tomitribe.crest.environments
Class SystemEnvironment
- java.lang.Object
-
- org.tomitribe.crest.environments.SystemEnvironment
-
- All Implemented Interfaces:
Environment
public class SystemEnvironment extends java.lang.Object implements Environment
-
-
Field Summary
-
Fields inherited from interface org.tomitribe.crest.environments.Environment
ENVIRONMENT_THREAD_LOCAL
-
-
Constructor Summary
Constructors Constructor Description SystemEnvironment()SystemEnvironment(java.util.Map<java.lang.Class<?>,java.lang.Object> services)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TfindService(java.lang.Class<T> type)java.io.PrintStreamgetError()java.io.InputStreamgetInput()java.io.PrintStreamgetOutput()java.util.PropertiesgetProperties()protected voidinit()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tomitribe.crest.environments.Environment
getEnv
-
-
-
-
Method Detail
-
getOutput
public java.io.PrintStream getOutput()
- Specified by:
getOutputin interfaceEnvironment
-
getError
public java.io.PrintStream getError()
- Specified by:
getErrorin interfaceEnvironment
-
getInput
public java.io.InputStream getInput()
- Specified by:
getInputin interfaceEnvironment
-
getProperties
public java.util.Properties getProperties()
- Specified by:
getPropertiesin interfaceEnvironment
-
findService
public <T> T findService(java.lang.Class<T> type)
- Specified by:
findServicein interfaceEnvironment
-
init
protected void init()
-
-