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(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(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.
|
Ini |
getIni()
Deprecated.
|
static 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 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(Ini ini)
Deprecated.
|
getInstance, isSingleton, setSingleton
public static final String DEFAULT_INI_RESOURCE_PATH
protected IniFactorySupport()
protected IniFactorySupport(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 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 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(Ini ini)
protected abstract T createDefaultInstance()
Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.