private void init() throws CmsException {

        // first get all installed plugins
        // plugins are subfolders of the "/plugin/" folder with a template
        // property holdding the name of the plugin class
        List resources = m_cms.readResourcesWithProperty(VFS_PATH_PLUGIN_FOLDER, CmsToolManager.HANDLERCLASS_PROPERTY);
        Iterator i = resources.iterator();
        while (i.hasNext()) {
            CmsResource res = (CmsResource)i.next();
            // ony check folders
            if (res.isFolder()) {
                String classname = m_cms.readPropertyObject(
                    res.getRootPath(),
                    CmsToolManager.HANDLERCLASS_PROPERTY,
                    false).getValue();
                try {
                    Object objectInstance = Class.forName(classname).newInstance();
                    if (objectInstance instanceof I_CmsContentCheck) {
                        I_CmsContentCheck plugin = (I_CmsContentCheck)objectInstance;
                        plugin.init(m_cms);
                        // store the plugin instance
                        m_plugins.add(plugin);
                        LOG.info(Messages.get().getBundle().key(Messages.LOG_CREATE_PLUGIN_1, classname));
                    } else {
                        LOG.warn(Messages.get().getBundle().key(Messages.LOG_CANNOT_CREATE_PLUGIN_1, classname));
                    }
                } catch (Throwable t) {
                    LOG.error(Messages.get().getBundle().key(Messages.LOG_CANNOT_CREATE_PLUGIN_2, classname, t));
                }
            }
        }
    }
private void init ( ) throws CmsException { List resources = m_cms . readResourcesWithProperty ( VFS_PATH_PLUGIN_FOLDER , CmsToolManager . HANDLERCLASS_PROPERTY ) ; Iterator i = resources . iterator ( ) ; while ( i . hasNext ( ) ) { CmsResource res = ( CmsResource ) i . next ( ) ; if ( res . isFolder ( ) ) { String classname = m_cms . readPropertyObject ( res . getRootPath ( ) , CmsToolManager . HANDLERCLASS_PROPERTY , false ) . getValue ( ) ; try { Object objectInstance = Class . forName ( classname ) . newInstance ( ) ; if ( objectInstance instanceof I_CmsContentCheck ) { I_CmsContentCheck plugin = ( I_CmsContentCheck ) objectInstance ; plugin . init ( m_cms ) ; m_plugins . add ( plugin ) ; LOG . info ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_CREATE_PLUGIN_1 , classname ) ) ; } else { LOG . warn ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_CANNOT_CREATE_PLUGIN_1 , classname ) ) ; } } catch ( Throwable t ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_CANNOT_CREATE_PLUGIN_2 , classname , t ) ) ; } } } }
Initializes the CmsContent check and reads all available plugins.<p>

@throws CmsException if somehting goes wrong