@Override
    public void initConfiguration(String name, String id, String className) throws CmsConfigurationException {

        if ((OpenCms.getRunLevel() > OpenCms.RUNLEVEL_2_INITIALIZING) && m_staticFrozen) {
            // configuration already frozen
            throw new CmsConfigurationException(
                Messages.get().container(
                    Messages.ERR_CONFIG_FROZEN_3,
                    this.getClass().getName(),
                    getStaticTypeName(),
                    new Integer(getStaticTypeId())));
        }

        if (!RESOURCE_TYPE_NAME.equals(name)) {
            // default resource type MUST have default name
            throw new CmsConfigurationException(
                Messages.get().container(
                    Messages.ERR_INVALID_RESTYPE_CONFIG_NAME_3,
                    this.getClass().getName(),
                    RESOURCE_TYPE_NAME,
                    name));
        }

        // freeze the configuration
        m_staticFrozen = true;

        super.initConfiguration(RESOURCE_TYPE_NAME, id, className);
        // set static members with values from the configuration
        m_staticTypeId = m_typeId;
    }
@ Override public void initConfiguration ( String name , String id , String className ) throws CmsConfigurationException { if ( ( OpenCms . getRunLevel ( ) > OpenCms . RUNLEVEL_2_INITIALIZING ) && m_staticFrozen ) { throw new CmsConfigurationException ( Messages . get ( ) . container ( Messages . ERR_CONFIG_FROZEN_3 , this . getClass ( ) . getName ( ) , getStaticTypeName ( ) , new Integer ( getStaticTypeId ( ) ) ) ) ; } if ( ! RESOURCE_TYPE_NAME . equals ( name ) ) { throw new CmsConfigurationException ( Messages . get ( ) . container ( Messages . ERR_INVALID_RESTYPE_CONFIG_NAME_3 , this . getClass ( ) . getName ( ) , RESOURCE_TYPE_NAME , name ) ) ; } m_staticFrozen = true ; super . initConfiguration ( RESOURCE_TYPE_NAME , id , className ) ; m_staticTypeId = m_typeId ; }
@see org.opencms.file.types.A_CmsResourceType#initConfiguration(java.lang.String, java.lang.String, String)