Class PluginAvatarCommentAvatarService

  • All Implemented Interfaces:
    ICommentAvatarService

    public class PluginAvatarCommentAvatarService
    extends java.lang.Object
    implements ICommentAvatarService
    PluginAvatarCommentAvatarService : implementation based on the plugin-avatar.

    This is the only class of the module referencing the plugin-avatar API. It must never be referenced statically : it is instantiated by reflection by CommentAvatarService once the plugin-avatar has been detected on the classpath.

    • Constructor Detail

      • PluginAvatarCommentAvatarService

        public PluginAvatarCommentAvatarService()
    • Method Detail

      • getAvatar

        public java.lang.String getAvatar​(Comment comment)
        Display the avatar of the comment's author
        Specified by:
        getAvatar in interface ICommentAvatarService
        Returns:
        The HTML code of the avatar
      • getAvatarUrl

        public java.lang.String getAvatarUrl​(Comment comment)
        Display the avatar of the comment's author
        Specified by:
        getAvatarUrl in interface ICommentAvatarService
        Returns:
        The HTML code of the avatar