public class UserManagerConfig extends BeanConfig
This configuration is an optional part of the SecurityManager configuration.
Constructor and Description |
---|
UserManagerConfig(BeanConfig config) |
UserManagerConfig(BeanConfig config,
BeanConfig[] actionConfig) |
Modifier and Type | Method and Description |
---|---|
AuthorizableAction[] |
getAuthorizableActions() |
UserManager |
getUserManager(Class<? extends UserManager> assignableFrom,
Class<?>[] parameterTypes,
Object... initArgs)
Build a new
UserManager instance based on this configuration. |
getClassLoader, getClassName, getDefaultClassLoader, getParameters, newInstance, setClassLoader, setConnectionFactory, setDefaultClassLoader, setInstanceFactory, setValidate
public UserManagerConfig(BeanConfig config)
public UserManagerConfig(BeanConfig config, BeanConfig[] actionConfig)
public UserManager getUserManager(Class<? extends UserManager> assignableFrom, Class<?>[] parameterTypes, Object... initArgs) throws ConfigurationException
UserManager
instance based on this configuration.
Since the initial requirement for the User Management was to allow for
implementations that don't store and retrieve user information from
repository content, the otherwise used init
interface method
has intentionally be omitted. This method attempts to retrieve a
constructor matching the given parameterTypes
and creates
an new instance from the initArgs
matching the
parameterTypes
.assignableFrom
- An UserManager class from which the configured
implementation must be assignable.parameterTypes
- Array of classes used to lookup the constructor.initArgs
- The arguments to create the new user manager instance
matching the parameterTypes
.UserManager
that is assignable from
the class passed as assignableFrom
.ConfigurationException
- If the configured user manager implementation
is not assignable from the given UserManager class, does not provide
a constructor matching parameterTypes
or creating the instance
fails.public AuthorizableAction[] getAuthorizableActions() throws ConfigurationException
ConfigurationException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.