| |
|
| java.lang.Object de.danet.an.util.userprefs.UserPrefsServiceFactory
UserPrefsServiceFactory | abstract public class UserPrefsServiceFactory (Code) | | Defines a factory API for accessing a user preferences service.
Setting logger priority to DEBUG logs information about
factory lookup.
|
UserPrefsServiceFactory | protected UserPrefsServiceFactory()(Code) | | Constructor. Must be overridden with a parameterless public
constructor by derived class.
|
newInstance | public static UserPrefsServiceFactory newInstance() throws FactoryConfigurationError(Code) | | Obtain a new instance of a
UserPrefsServiceFactory . This static method
creates a new factory instance . The method uses the following
ordered lookup procedure to determine the
UserPrefsServiceFactory implementation class
to load:
- If an
javax.naming.InitialContext initial naming context is available, look for a classname in
java:comp/env/de.danet.an.util.UserPrefsServiceFactory .
- Use the services API (as detailed in the JAR specification)
to determine the classname. The Services API
will look for a classname in the file
META-INF/services/de.danet.an.UserPrefsServiceFactory .
in jars available to the runtime.
an instance of the UserPrefsServiceFactory throws: FactoryConfigurationError - if a factory instance can't becreated |
newUserPrefsService | public UserPrefsService newUserPrefsService(String userId) throws ServiceUnavailableException(Code) | | Creates a new instance of a
UserPrefsServiceUserPrefsService for a specific user. The method
tries to locate a resource
default-user-preferences.properties and, if found,
use the defined properties as defaults for user preferences.
Parameters: userId - the id used to identify the user a new preferences service for the specified user throws: ServiceUnavailableException - may be thrown if the servicecannot be created for the specified user |
newUserPrefsService | abstract public UserPrefsService newUserPrefsService(String userId, Properties props) throws ServiceUnavailableException(Code) | | Creates a new instance of a
UserPrefsServiceUserPrefsService for a specific user. The given
properties are used as defaults for unspecified preferences.
Parameters: userId - the id used to identify the user Parameters: props - used as defaults for unspecified preferences, maybe null a new preferences service for the specified user throws: ServiceUnavailableException - may be thrown if the servicecannot be created for the specified user |
|
|
|