org.apache.jackrabbit.core.config
Class UserManagerConfig
java.lang.Object
org.apache.jackrabbit.core.config.BeanConfig
org.apache.jackrabbit.core.config.UserManagerConfig
public class UserManagerConfig
- extends BeanConfig
User manager configuration. This bean configuration class is used to
create user manager objects.
This configuration is an optional part of the SecurityManager configuration.
- See Also:
SecurityManagerConfig.getUserManagerConfig()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserManagerConfig
public UserManagerConfig(BeanConfig config)
getUserManager
public UserManager getUserManager(Class<? extends UserManager> assignablefrom,
Class<?>[] parameterTypes,
Object... initArgs)
throws ConfigurationException
- Build a new
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
.
- Parameters:
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
.
- Returns:
- A new instance of
UserManager
that is assignable from
the class passed as assignablefrom
.
- Throws:
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.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.