| java.lang.Object org.jasig.portal.layout.UserLayoutStoreFactory
UserLayoutStoreFactory | final public class UserLayoutStoreFactory (Code) | | Produces and manages a static singleton instance of IUserLayoutStore.
The
IUserLayoutStore implementation that we use is that named by the
portal.properties property "org.jasig.portal.layout.UserLayoutStoreFactory.implementation".
In the case where that property is not set or the IUserLayoutStore it names cannot
be instantiated, we fall back on the
AggregatedUserLayoutStore as the default.
Prior to uPortal 2.5, this class existed in the package org.jasig.portal.
It has been moved to its present package to express that it is part of the
user layout infrastructure.
This class is final because it is not designed to be subclassed.
author: Ken Weiner, kweiner@unicon.net author: Michael Ivanov, mvi@immagic.com version: $Revision: 35816 $ $Date: 2005-05-18 11:27:43 -0700 (Wed, 18 May 2005) $ |
Field Summary | |
final public static String | LAYOUT_STORE_IMPL_PROPERTY The name of the portal.properties property the value of which is the name
of the IUserLayoutStore implementation we should use. |
Method Summary | |
public static synchronized IUserLayoutStore | getUserLayoutStoreImpl() Returns the singleton IUserLayoutStore instance, which will be that specified in portal.properties,
an instance of the default IUserLayoutStore, or null, in that order.
That is, we return a static singleton IUserLayoutStore instance when possible,
prefering to return an instance of the IUserLayoutStore implementation named
in our portal.properties property. |
LAYOUT_STORE_IMPL_PROPERTY | final public static String LAYOUT_STORE_IMPL_PROPERTY(Code) | | The name of the portal.properties property the value of which is the name
of the IUserLayoutStore implementation we should use.
|
getUserLayoutStoreImpl | public static synchronized IUserLayoutStore getUserLayoutStoreImpl()(Code) | | Returns the singleton IUserLayoutStore instance, which will be that specified in portal.properties,
an instance of the default IUserLayoutStore, or null, in that order.
That is, we return a static singleton IUserLayoutStore instance when possible,
prefering to return an instance of the IUserLayoutStore implementation named
in our portal.properties property. If that property is not set or that implementation
cannot be successfully instantiated, we will return an instance of the default
IUserLayoutStore implementation. If we cannot instantiate that default IUserLayoutStore
we will return null.
This method is synchronized to ensure a consistent return value, resolving a
double checked locking problem. By synchronizing, we ensure that when we
write to the userLayoutStoreImpl static field, that write will be available
to other threads when they obtain the lock and enter this method.
the configured or default IUserLayoutStore implementation, or null |
|
|