com.anwrt.anycontent.extensions.page
Class AbstractPageExtensionPoint

java.lang.Object
  extended bycom.anwrt.anycontent.plugin.ExtensionPoint
      extended bycom.anwrt.anycontent.extensions.page.AbstractPageExtensionPoint
Direct Known Subclasses:
AdministratorExtensionPoint, ContributorExtensionPoint

public abstract class AbstractPageExtensionPoint
extends ExtensionPoint

This class is an abstract ancestor for extension points the handle pages with configurable icons.


Constructor Summary
AbstractPageExtensionPoint()
           
 
Method Summary
 void configureExtension(java.lang.String pluginName, java.lang.String pluginId, Configuration configuration)
          Add an extension to this point.
protected abstract  StaticEntry createEntry()
          Create an empty static entry
 StaticEntry getItem(java.lang.String id)
          Get the page entry with given if
protected abstract  Logger getLogger()
          Get the logger for current implementation
protected abstract  AbstractPageManager getManager()
          Get the page manager for current implementation
 void initialize()
          Method called at the end of the initialization process.
 boolean isSingle()
          Returns wether this extension point is single
 
Methods inherited from class com.anwrt.anycontent.plugin.ExtensionPoint
configure, getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPageExtensionPoint

public AbstractPageExtensionPoint()
Method Detail

isSingle

public boolean isSingle()
Description copied from class: ExtensionPoint
Returns wether this extension point is single

Specified by:
isSingle in class ExtensionPoint
Returns:
true if this extension point is single

getLogger

protected abstract Logger getLogger()
Get the logger for current implementation

Returns:
A logger

getManager

protected abstract AbstractPageManager getManager()
Get the page manager for current implementation

Returns:
A page manager

configureExtension

public void configureExtension(java.lang.String pluginName,
                               java.lang.String pluginId,
                               Configuration configuration)
                        throws ConfigurationException
Description copied from class: ExtensionPoint
Add an extension to this point. Each implementation knows the meaning of the given configuration.

Specified by:
configureExtension in class ExtensionPoint
Parameters:
configuration - the information about the extension to be added
pluginName - Unique identifier for the plugin hosting the extension (equals to the directory name)
pluginId - Unique plugin identifier (unique for a given pluginName)
Throws:
ConfigurationException

getItem

public StaticEntry getItem(java.lang.String id)
Get the page entry with given if

Parameters:
id - Id of the looked item
Returns:
The page item or null if id is not found

initialize

public void initialize()
Description copied from class: ExtensionPoint
Method called at the end of the initialization process.
At this time, all extensions have been added (through configureExtension())

Specified by:
initialize in class ExtensionPoint

createEntry

protected abstract StaticEntry createEntry()
Create an empty static entry

Returns:
An empty entry


Copyright © 2006 Anyware Technologies. All Rights Reserved.