Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.forum
Class StatusLevelManagerFactory

java.lang.Object
  extended by com.jivesoftware.forum.StatusLevelManagerFactory
All Implemented Interfaces:
JiveManager

public final class StatusLevelManagerFactory
extends java.lang.Object
implements JiveManager

A factory that returns a concrete instance of StatusLevelManager


Nested Class Summary
static class StatusLevelManagerFactory.StatusCalculatorPropertyListener
          Checks to see if the calculator implementation has changes and reinitializes it if it has been
 
Field Summary
static java.lang.String STATUS_LEVEL_BLOCK_GROUP_LEADERS
           
static java.lang.String STATUS_LEVEL_CALCULATOR_PROPERTY
           
static java.lang.String STATUS_LEVEL_ENABLE_PROPERTY
           
static java.lang.String STATUS_LEVEL_MANAGER_PROPERTY
           
static java.lang.String STATUS_LEVEL_PRELOAD
           
static Cache statusLevelCache
           
static Cache statusLevelIDCache
           
 
Method Summary
 void destroy()
          Notifies the manager to release any resources that may be holding on too.
static void doInitialize()
           
static StatusLevelCalculator getCalculator()
          Used to acquire the StatusLevelCalculator, this should only be called by implementations of StatusLevelManager that delegate to a StatusLevelCalculator
static StatusLevelManager getInstance()
          Returns a concrete instance of the StatusLevel interface.
 void initialize()
          Initialize the manager.
static boolean isStatusLevelsEnabled()
           
static void setStatusLevelsEnabled(boolean enabled)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_LEVEL_ENABLE_PROPERTY

public static final java.lang.String STATUS_LEVEL_ENABLE_PROPERTY
See Also:
Constant Field Values

STATUS_LEVEL_MANAGER_PROPERTY

public static final java.lang.String STATUS_LEVEL_MANAGER_PROPERTY
See Also:
Constant Field Values

STATUS_LEVEL_CALCULATOR_PROPERTY

public static final java.lang.String STATUS_LEVEL_CALCULATOR_PROPERTY
See Also:
Constant Field Values

STATUS_LEVEL_BLOCK_GROUP_LEADERS

public static final java.lang.String STATUS_LEVEL_BLOCK_GROUP_LEADERS
See Also:
Constant Field Values

STATUS_LEVEL_PRELOAD

public static final java.lang.String STATUS_LEVEL_PRELOAD
See Also:
Constant Field Values

statusLevelCache

public static Cache statusLevelCache

statusLevelIDCache

public static Cache statusLevelIDCache
Method Detail

getInstance

public static StatusLevelManager getInstance()
Returns a concrete instance of the StatusLevel interface.

Note: in general this method intended to be called only by the DbForumFactory.

Returns:
a concrete implementation of status level manager.

initialize

public void initialize()
Description copied from interface: JiveManager
Initialize the manager. It is within this method that it is ok to create, access and/or otherwise use external classes (including caches). Until this method is called implementation should not access any external classes that could possibly either access one of the main Factory classes or any caches since doing so can cause deadlocks and possible clustering issues during startup.

This method is used internally by Jive during application startup and should not be called during normal usage of the class.

Specified by:
initialize in interface JiveManager

destroy

public void destroy()
Description copied from interface: JiveManager
Notifies the manager to release any resources that may be holding on too. This could also be used to clear out the managers caches, etc.

This method is used internally by Jive during application startup and should not be called during normal usage of the class.

Specified by:
destroy in interface JiveManager

doInitialize

public static void doInitialize()

getCalculator

public static StatusLevelCalculator getCalculator()
Used to acquire the StatusLevelCalculator, this should only be called by implementations of StatusLevelManager that delegate to a StatusLevelCalculator

Returns:
An instance of status level calculator

setStatusLevelsEnabled

public static void setStatusLevelsEnabled(boolean enabled)

isStatusLevelsEnabled

public static boolean isStatusLevelsEnabled()

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.