Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.base
Class PollManagerFactory

java.lang.Object
  extended by com.jivesoftware.base.PollManagerFactory
All Implemented Interfaces:
JiveManager

public class PollManagerFactory
extends java.lang.Object
implements JiveManager

A factory that returns a concrete instance of a poll manager.


Field Summary
static Cache pollCache
           
static Cache pollQueryCache
           
static Cache voteCache
           
 
Method Summary
 void destroy()
          Notifies the manager to release any resources that may be holding on too.
static void doInitialize()
           
static PollManager getInstance()
          Returns a concrete instance of the poll manager interface.
 void initialize()
          Initialize the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pollCache

public static Cache pollCache

pollQueryCache

public static Cache pollQueryCache

voteCache

public static Cache voteCache
Method Detail

getInstance

public static PollManager getInstance()
Returns a concrete instance of the poll manager interface.

Note: in general, this method is not intended to be called by outside polls of the API. Doing so is dangerous since the PollManager implementation returned will not be secured by a protection proxy.

Returns:
a concrete implementation of a poll 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()

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.