net.sourceforge.blogentis.plugins
Class BlogPluginService

java.lang.Object
  extended bynet.sourceforge.blogentis.plugins.BlogPluginService

public class BlogPluginService
extends java.lang.Object

Author:
abas

Field Summary
static java.lang.String PLUGIN_LIST
           
 
Constructor Summary
BlogPluginService()
           
 
Method Summary
static void deregisterExtensionPoint(Blog blog, IBlogExtensionPoint point)
          Remove a blog-specific extension point
static void deregisterExtensionPoint(IExtensionPoint point)
          Remove a global extension point.
static java.util.Iterator getExtensionPoints(Blog blog)
          Get the list of extension points supported by a blog.
static IPluginService getInstance()
           
static java.util.Iterator getPlugins()
          List the plugins in the order of their definition.
static IBlogExtensionPoint locateExtensionPoint(Blog blog, java.lang.Class name)
          Locate an extension point that extends/implements the specified class.
static IExtensionPoint locateExtensionPoint(java.lang.Class name)
          Locate a global extension point that extends/implements the specified class.
static void registerExtensionPoint(Blog blog, IBlogExtensionPoint point)
          Register a blog-specific extension point.
static void registerExtensionPoint(IExtensionPoint point)
          Register a global extension point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUGIN_LIST

public static final java.lang.String PLUGIN_LIST
See Also:
Constant Field Values
Constructor Detail

BlogPluginService

public BlogPluginService()
Method Detail

getInstance

public static IPluginService getInstance()

getPlugins

public static java.util.Iterator getPlugins()
List the plugins in the order of their definition.

Returns:
an iterator that returns IPlugin

registerExtensionPoint

public static void registerExtensionPoint(IExtensionPoint point)
Register a global extension point.

Parameters:
point - the global extension point to register.

deregisterExtensionPoint

public static void deregisterExtensionPoint(IExtensionPoint point)
Remove a global extension point.

Parameters:
point - the extension point to remove.

registerExtensionPoint

public static void registerExtensionPoint(Blog blog,
                                          IBlogExtensionPoint point)
Register a blog-specific extension point.

Parameters:
blog - the blog that the extension point will apply.
point - the extension point that will be registered.

deregisterExtensionPoint

public static void deregisterExtensionPoint(Blog blog,
                                            IBlogExtensionPoint point)
Remove a blog-specific extension point

Parameters:
blog - the blog that should contain the extension point.
point - the extension point to remove.

locateExtensionPoint

public static IExtensionPoint locateExtensionPoint(java.lang.Class name)
Locate a global extension point that extends/implements the specified class.

Parameters:
name -
Returns:
a global extension point instance that is castable to the specified class.

locateExtensionPoint

public static IBlogExtensionPoint locateExtensionPoint(Blog blog,
                                                       java.lang.Class name)
Locate an extension point that extends/implements the specified class.

Parameters:
blog - the blog to which the extension point will belong.
name -
Returns:
the extension point instance that is castable to the specified class.

getExtensionPoints

public static java.util.Iterator getExtensionPoints(Blog blog)
Get the list of extension points supported by a blog.

Parameters:
blog - the blog whose extension points to list.
Returns:
an Iterator over the extension points.


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.