org.apache.shiro.web.env
Class ResourceBasedWebEnvironment

java.lang.Object
  extended by org.apache.shiro.env.DefaultEnvironment
      extended by org.apache.shiro.web.env.DefaultWebEnvironment
          extended by org.apache.shiro.web.env.ResourceBasedWebEnvironment
All Implemented Interfaces:
ResourceConfigurable, Environment, NamedObjectEnvironment, Destroyable, MutableWebEnvironment, WebEnvironment
Direct Known Subclasses:
IniWebEnvironment

public abstract class ResourceBasedWebEnvironment
extends DefaultWebEnvironment
implements ResourceConfigurable

Abstract implementation for WebEnvironments that can be initialized via resource paths (config files).

Since:
1.2

Field Summary
 
Fields inherited from class org.apache.shiro.env.DefaultEnvironment
DEFAULT_SECURITY_MANAGER_KEY, objects
 
Constructor Summary
ResourceBasedWebEnvironment()
           
 
Method Summary
 String[] getConfigLocations()
           
 void setConfigLocations(String locations)
          Convenience method that accepts a comma-delimited string of config locations (resource paths).
 void setConfigLocations(String[] configLocations)
          Sets the configuration locations (resource paths) that will be used to configure the instance.
 
Methods inherited from class org.apache.shiro.web.env.DefaultWebEnvironment
getFilterChainResolver, getSecurityManager, getServletContext, getWebSecurityManager, setFilterChainResolver, setSecurityManager, setServletContext, setWebSecurityManager
 
Methods inherited from class org.apache.shiro.env.DefaultEnvironment
destroy, getObject, getObjects, getSecurityManagerName, lookupSecurityManager, setObject, setSecurityManagerName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBasedWebEnvironment

public ResourceBasedWebEnvironment()
Method Detail

getConfigLocations

public String[] getConfigLocations()

setConfigLocations

public void setConfigLocations(String locations)
Description copied from interface: ResourceConfigurable
Convenience method that accepts a comma-delimited string of config locations (resource paths).

Specified by:
setConfigLocations in interface ResourceConfigurable
Parameters:
locations - comma-delimited list of config locations (resource paths).

setConfigLocations

public void setConfigLocations(String[] configLocations)
Description copied from interface: ResourceConfigurable
Sets the configuration locations (resource paths) that will be used to configure the instance.

Specified by:
setConfigLocations in interface ResourceConfigurable
Parameters:
configLocations - the configuration locations (resource paths) that will be used to configure the instance.


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.