Environment mechanisms instead.@Deprecated public abstract class IniFactorySupport<T> extends AbstractFactory<T>
Factory implementations that generate their instance(s) based on
Ini configuration.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_INI_RESOURCE_PATH
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
protected |
IniFactorySupport()
Deprecated.
|
protected |
IniFactorySupport(org.apache.shiro.config.Ini ini)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createDefaultInstance()
Deprecated.
|
T |
createInstance()
Deprecated.
Creates a new object instance by using a configured INI source.
|
protected abstract T |
createInstance(org.apache.shiro.config.Ini ini)
Deprecated.
|
protected Map<String,?> |
getDefaults()
Deprecated.
Returns a mapping of String to bean representing the default set of object used by the factory.
|
org.apache.shiro.config.Ini |
getIni()
Deprecated.
|
static org.apache.shiro.config.Ini |
loadDefaultClassPathIni()
Deprecated.
Returns a new Ini instance created from the default
classpath:shiro.ini file, or null if
the file does not exist. |
protected org.apache.shiro.config.Ini |
resolveIni()
Deprecated.
Tries to resolve the Ini instance to use for configuration.
|
void |
setDefaults(Map<String,?> defaultBeans)
Deprecated.
Sets the default objects used by this factory.
|
void |
setIni(org.apache.shiro.config.Ini ini)
Deprecated.
|
getInstance, isSingleton, setSingletonpublic static final String DEFAULT_INI_RESOURCE_PATH
protected IniFactorySupport()
protected IniFactorySupport(org.apache.shiro.config.Ini ini)
public org.apache.shiro.config.Ini getIni()
public void setIni(org.apache.shiro.config.Ini ini)
protected Map<String,?> getDefaults()
null.public void setDefaults(Map<String,?> defaultBeans)
defaultBeans - String to object mapping used for default configuration in this factory.public static org.apache.shiro.config.Ini loadDefaultClassPathIni()
classpath:shiro.ini file, or null if
the file does not exist.classpath:shiro.ini file, or null if
the file does not exist.protected org.apache.shiro.config.Ini resolveIni()
Ini instance returned from getIni() will be returned if it is not null or empty.getIni() is null or empty, this implementation will attempt to find and load the
default class path Ini.null is returnedpublic T createInstance()
Resolve the Ini source to use for configuration.createDefaultInstance() method.createInstance in class AbstractFactory<T>SecurityManager instance by using a configured INI source.protected abstract T createInstance(org.apache.shiro.config.Ini ini)
protected abstract T createDefaultInstance()
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.