【仅供内部供应商使用,不提供对外解答和培训】

Page tree

【仅供内部供应商使用,不提供对外解答和培训】

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

接口作用

所有需要附件额外的JS或者CSS的开放接口,都需要继承该接口,该接口描述了各个JS和CSS所在的组件的依赖关系,并且处理了热部署问题。

接口内容

package com.fr.stable.fun.mark;

import com.fr.web.struct.Atom;

/**
 * 带有web资源的扩展接口
 */
public interface WebCoalition extends Mutable {

    /**
     * 需要附加到的主组件
     * @return 主组件
     */
    Atom attach();

    /**
     * 客户端所需的组件
     *
     * @return 组件
     */
    Atom client();
}

其中Atom对象的文档介绍参考:Atom接口

接口介绍

WebCoalition#attach定义了插件组件所依附的主组件,目前主要包含
主组件组件作用
com.fr.decision.web.MainComponent决策平台主体对象
com.fr.decision.web.LoginComponent决策平台登录界面对象
WebCoalition#client定义该插件所使用的web组件,可以参考ThemeVariousProvider接口的实现。
  • No labels