Clearspace API (1.7.0) Core Javadocs

com.jivesoftware.community.lifecycle
Class JiveApplication.ManagerHandler

java.lang.Object
  extended by com.jivesoftware.community.lifecycle.JiveApplication.ManagerHandler
Enclosing class:
JiveApplication

public static class JiveApplication.ManagerHandler
extends java.lang.Object

A class that is used to initialize and retrieve instances of JiveManager. This class is provided to the ApplicationLifeCycle class and the JiveContext implementation.

It is used for initializing manager implementations.


Constructor Summary
JiveApplication.ManagerHandler()
           
 
Method Summary
 void clear()
          Clear all of the manager mappings, This is done if the application is reinitialized.
<U extends JiveManager>
U
getJiveManager(java.lang.Class clazz)
          Returns an instance of a JiveManager when given the class it is mapped too.
 void registerManager(java.lang.Class<?> clazz, JiveManager manager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiveApplication.ManagerHandler

public JiveApplication.ManagerHandler()
Method Detail

registerManager

public void registerManager(java.lang.Class<?> clazz,
                            JiveManager manager)

getJiveManager

public <U extends JiveManager> U getJiveManager(java.lang.Class clazz)
Returns an instance of a JiveManager when given the class it is mapped too. The class passed in should be the interface of the JiveManager if the JiveManager has an interface.

This method is currently only called by JiveContextImpl

Parameters:
clazz - the class to use to return the JiveManager instance
Returns:
the JiveManager instance corresponding to the given class.

clear

public void clear()
Clear all of the manager mappings, This is done if the application is reinitialized.


Clearspace Project Page

Copyright © 1999-2007 Jive Software.