net.sourceforge.blogentis.plugins.impl
Class PostViewExtensionPointImpl
java.lang.Object
net.sourceforge.blogentis.plugins.AbstractExtensionPoint
net.sourceforge.blogentis.plugins.AbstractBlogExtensionPoint
net.sourceforge.blogentis.plugins.impl.PostViewExtensionPointImpl
- All Implemented Interfaces:
- IBlogExtensionPoint, IExtensionPoint, IPostViewExtensionPoint
- public class PostViewExtensionPointImpl
- extends AbstractBlogExtensionPoint
- implements IPostViewExtensionPoint
- Author:
- abas
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostViewExtensionPointImpl
public PostViewExtensionPointImpl(IPlugin plugin,
Blog blog)
- Parameters:
plugin
- blog
-
getName
public java.lang.String getName()
- Description copied from interface:
IExtensionPoint
- Get the user-visible name of this extension point.
- Specified by:
getName
in interface IExtensionPoint
- Returns:
- the name of this extension point.
getExtensionClass
public java.lang.Class getExtensionClass()
- Description copied from interface:
IExtensionPoint
- Get the class or interface that extensions for this extension point have
to implement.
- Specified by:
getExtensionClass
in interface IExtensionPoint
- Returns:
- this extension points' appropriate base class or inteface.
doPostViewExtensions
public Post doPostViewExtensions(BlogRunData data,
Post post)
- Invoke the extensions to prepare this post for viewing.
- Specified by:
doPostViewExtensions
in interface IPostViewExtensionPoint
- Parameters:
data
- the RunData of the current request.post
- the post to be prepared.
- Returns:
- the actual post that will be viewed.
doPostViewExtensions
public java.util.List doPostViewExtensions(BlogRunData data,
java.util.List posts)
- Apply doPostViewExtensions to a whole List of Posts.
- Specified by:
doPostViewExtensions
in interface IPostViewExtensionPoint
- Parameters:
data
- the RunData of the current requestposts
- a List of Posts to which the doPostViewExtensions() should be
applied.
- Returns:
- a new List containing the results of the invocations in the same
order as the original list.
Copyright © 2003-2004 SourceForge.net. All Rights Reserved.