freemind.extensions
Class HookFactoryAdapter

java.lang.Object
  extended by freemind.extensions.HookFactoryAdapter
All Implemented Interfaces:
HookFactory
Direct Known Subclasses:
BrowseHookFactory, MindMapHookFactory

public abstract class HookFactoryAdapter
extends java.lang.Object
implements HookFactory

Author:
foltin

Nested Class Summary
 
Nested classes/interfaces inherited from interface freemind.extensions.HookFactory
HookFactory.RegistrationContainer
 
Field Summary
protected  java.util.HashMap allRegistrationInstances
          Contains PluginType -> Object (baseClass) relations.
 
Constructor Summary
protected HookFactoryAdapter()
           
 
Method Summary
 void deregisterAllRegistrationContainer()
           
 PermanentNodeHook getHookInNode(MindMapNode node, java.lang.String hookName)
           
 void registerRegistrationContainer(HookFactory.RegistrationContainer container, HookRegistration instanciatedRegistrationObject)
          See getRegistrations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface freemind.extensions.HookFactory
createModeControllerHook, createNodeHook, getHookMenuPositions, getInstanciationMethod, getPluginBaseClass, getPossibleModeControllerHooks, getPossibleNodeHooks, getRegistrations
 

Field Detail

allRegistrationInstances

protected java.util.HashMap allRegistrationInstances
Contains PluginType -> Object (baseClass) relations.

Constructor Detail

HookFactoryAdapter

protected HookFactoryAdapter()
Method Detail

getHookInNode

public PermanentNodeHook getHookInNode(MindMapNode node,
                                       java.lang.String hookName)
Specified by:
getHookInNode in interface HookFactory
Returns:
null if not present, the hook otherwise.

registerRegistrationContainer

public void registerRegistrationContainer(HookFactory.RegistrationContainer container,
                                          HookRegistration instanciatedRegistrationObject)
See getRegistrations. The registration makes sense for the factory, as the factory observes every object creation.
Moreover, the factory can tell other hooks it creates, who is its base plugin.

Specified by:
registerRegistrationContainer in interface HookFactory

deregisterAllRegistrationContainer

public void deregisterAllRegistrationContainer()
Specified by:
deregisterAllRegistrationContainer in interface HookFactory