Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community
Interface JiveManager

All Known Subinterfaces:
AbuseManager, ActivityManager, AnnouncementManager, ArchiveManager, AttachmentManager, BanManager, BinaryBodyManager, BlogManager, CommentManager, CommunityManager, DocumentFieldManager, DocumentFieldTypeManager, DocumentManager, DocumentTypeManager, DraftManager, EmailManager, ForumManager, GroupManager, ImageManager, InterceptorManager, IntrospectiveGroupManager, LinkManager, LocaleManager, OldModerationManager, PermissionsManager, PresenceManager, PrivateMessageManager, ProfileFieldManager, ProfileManager, ProfileSearchManager, ProjectManager, QuestionManager, RatingManager, ReadTracker, ReadTrackerManager, RecentContentManager, RegistrationManager, RenderManager, SearchEngineManager, SearchManager, SearchQueryManager, SocialGroupManager, StorageManager, TagManager, TagSetManager, TaskManager, TrackbackManager, WatchManager, WidgetManager
All Known Implementing Classes:
IMManager, PluginManagerImpl

public interface JiveManager

An interface that all Jive Managers should implement. This interface is designed to solve some intriguing startup issues with clustering by separating the loading of the core Jive managers and factories from their initialization phase. By doing this we solve many possible deadlock situations where Jive classes are being initialized at the same time that clustering is starting up and populating caches in separate threads.

The general contract that any implementing manager must follow is as follows: implementations should not access, either through an instance or via static calls, any other class that could possibly (directly or indirectly) either access one of the main Factory classes or any caches until #initialize(JiveContext) is called. This restriction includes static class variables.

Not following this contract can cause deadlocks and possible clustering issues during startup.


Method Summary
 void destroy()
          Notifies the manager to release any resources that may be holding on too.
 

Method Detail

destroy

void destroy()
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.


Clearspace Project Page

Copyright © 1999-2007 Jive Software.