@ApplicationScoped @Named(value="environment") public class ServletBasedEnvironment extends DefaultEnvironment
Environment implementation which loads the environment file
based on VRAPTOR_ENV system property or br.com.caelum.vraptor
.environment property in the context init parameter.| Modifier and Type | Field and Description |
|---|---|
static String |
ENVIRONMENT_PROPERTY |
| Modifier | Constructor and Description |
|---|---|
protected |
ServletBasedEnvironment()
Deprecated.
CDI eyes only
|
|
ServletBasedEnvironment(javax.servlet.ServletContext context) |
get, get, getKeys, getName, getResource, has, isDevelopment, isProduction, isTest, set, supportspublic static final String ENVIRONMENT_PROPERTY
protected ServletBasedEnvironment()
throws IOException
IOException@Inject
public ServletBasedEnvironment(javax.servlet.ServletContext context)
throws IOException
IOExceptionCopyright © 2014 Caelum. All rights reserved.