public class ProfileContext extends Object
Constructor and Description |
---|
ProfileContext(ClassLoader classLoader,
VariableResolver contextParameters)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader()
Returns a class loader to load services.
|
VariableResolver |
getContextParameters()
Returns context parameters (may be environment variables).
|
static ProfileContext |
system(ClassLoader classLoader)
Creates a new context with system variables as context parameters.
|
public ProfileContext(ClassLoader classLoader, VariableResolver contextParameters)
classLoader
- the class loader to load servicescontextParameters
- the context parametersIllegalArgumentException
- if some parameters were null
public static ProfileContext system(ClassLoader classLoader)
classLoader
- current class loaderIllegalArgumentException
- if some parameters were null
public ClassLoader getClassLoader()
public VariableResolver getContextParameters()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.