public void setHighlighter(String highlighter) {

        try {
            m_highlighter = (I_CmsTermHighlighter)Class.forName(highlighter).newInstance();
        } catch (Exception e) {
            m_highlighter = null;
            LOG.error(e.getLocalizedMessage(), e);
        }
    }
public void setHighlighter ( String highlighter ) { try { m_highlighter = ( I_CmsTermHighlighter ) Class . forName ( highlighter ) . newInstance ( ) ; } catch ( Exception e ) { m_highlighter = null ; LOG . error ( e . getLocalizedMessage ( ) , e ) ; } }
Sets the highlighter.<p>

A highlighter is a class implementing org.opencms.search.documents.I_TermHighlighter.<p>

@param highlighter the package/class name of the highlighter