Clearspace API (1.10.16) Core Javadocs

com.jivesoftware.community
Class TrackbackManagerFactory

java.lang.Object
  extended by com.jivesoftware.community.TrackbackManagerFactory
All Implemented Interfaces:
JiveManager

public class TrackbackManagerFactory
extends java.lang.Object
implements JiveManager

A factory that returns a concrete instance of a TrackbackManager


Field Summary
static com.jivesoftware.community.cache.Cache<java.lang.Long,Trackback> trackbackCache
          A cache for user objects.
 
Method Summary
 void destroy()
          Notifies the manager to release any resources that may be holding on too.
static void doInitialize()
           
static TrackbackManager getInstance(int objectType, long objectID, JiveContext jiveContext)
          Returns a concrete instance of the trackback manager interface.
 void initialize(JiveContext jiveContext)
          Initialize the manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

trackbackCache

public static com.jivesoftware.community.cache.Cache<java.lang.Long,Trackback> trackbackCache
A cache for user objects. This cache is not instantiated until after this factory is initialized.

Method Detail

getInstance

public static TrackbackManager getInstance(int objectType,
                                           long objectID,
                                           JiveContext jiveContext)
Returns a concrete instance of the trackback manager interface. This method will return null until this class has been initialized.

Returns:
a concrete implementation of a TrackbackManager.

initialize

public void initialize(JiveContext jiveContext)
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) with the possible exception of other JiveManagers. 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. Attempting to access other JiveManager's may or may not work depending on the initialization order of the managers.

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
Parameters:
jiveContext - the context to use during initialization

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()

Clearspace Project Page

Copyright © 1999-2007 Jive Software.