gpt4 book ai didi

com.xpn.xwiki.plugin.XWikiDefaultPlugin类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 16:36:40 30 4
gpt4 key购买 nike

本文整理了Java中com.xpn.xwiki.plugin.XWikiDefaultPlugin类的一些代码示例,展示了XWikiDefaultPlugin类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWikiDefaultPlugin类的具体详情如下:
包路径:com.xpn.xwiki.plugin.XWikiDefaultPlugin
类名称:XWikiDefaultPlugin

XWikiDefaultPlugin介绍

[英]Abstract base plugin implementation.
[中]抽象基本插件实现。

代码示例

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

@Override
public void init(XWikiContext context)
{
  super.init(context);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

/**
 * {@inheritDoc}
 * 
 * @see com.xpn.xwiki.plugin.XWikiDefaultPlugin#virtualInit(XWikiContext)
 */
@Override
public void virtualInit(XWikiContext context)
{
  super.virtualInit(context);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

/**
 * {@inheritDoc}
 */
public void flushCache(XWikiContext context)
{
  flushCache();
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

/**
 * The mandatory plugin constructor, this is the method called (through reflection) by the plugin manager.
 * 
 * @param name the plugin name, usually ignored, since plugins have a fixed name
 * @param className the name of this class, ignored
 * @param context the current request context
 */
public XWikiDefaultPlugin(String name, String className, XWikiContext context)
{
  setClassName(className);
  setName(name);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

/**
 * {@inheritDoc}
 * 
 * @see com.xpn.xwiki.plugin.XWikiDefaultPlugin#init(XWikiContext)
 */
@Override
public void init(XWikiContext context)
{
  super.init(context);
}

代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler

/**
 * {@inheritDoc}
 * 
 * @see com.xpn.xwiki.plugin.XWikiPluginInterface#virtualInit(com.xpn.xwiki.XWikiContext)
 */
@Override
public void virtualInit(XWikiContext context)
{
  super.virtualInit(context);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public void init(XWikiContext context)
  {
    super.init(context);
  }
}

代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-activitystream

/**
   * {@inheritDoc}
   * 
   * @see XWikiDefaultPlugin#virtualInit(XWikiContext)
   */
  @Override
  public void virtualInit(XWikiContext context)
  {
    super.virtualInit(context);
  }
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-jodatime

@Override
public void init(XWikiContext context)
{
  super.init(context);
}

代码示例来源:origin: com.avane.xwiki.products/xwiki-plugin-chronopolys

public void virtualInit(XWikiContext context)
{
  super.virtualInit(context);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public void init(XWikiContext context) {
    super.init(context);
  }
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public void init(XWikiContext context) {
    super.init(context);
  }
}

代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-activitystream

/**
 * {@inheritDoc}
 * 
 * @see XWikiDefaultPlugin#init(XWikiContext)
 */
@Override
public void init(XWikiContext context)
{
  super.init(context);
  try {
    this.activityStream.init(context);
  } catch (Exception e) {
    // Do nothing.
  }
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public void init(XWikiContext context) {
  super.init(context);
  File dir = context.getWiki().getTempDirectory(context);
  tempDir = new File(dir, "svg");
  try {
    tempDir.mkdirs();
  } catch (Exception ex) {
    mLogger.warn("Cannot create temporary files", ex);
  }
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

@Override
public void init(XWikiContext context)
{
  super.init(context);
  initCache(context);
  String defaultQualityParam = context.getWiki().Param("xwiki.plugin.image.defaultQuality");
  if (!StringUtils.isBlank(defaultQualityParam) && StringUtils.isNumeric(defaultQualityParam.trim())) {
    try {
      this.defaultQuality = Math.max(0, Math.min(1, Float.parseFloat(defaultQualityParam.trim())));
    } catch (NumberFormatException e) {
      LOG.warn(String.format("Failed to parse xwiki.plugin.image.defaultQuality configuration parameter. "
        + "Using %s as the default image quality.", this.defaultQuality), e);
    }
  }
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

@Override
public void init(XWikiContext context)
{
  super.init(context);
  log.info("Charting Plugin - init");
  File dir = context.getWiki().getTempDirectory(context);
  tempDir = new File(dir, "charts");
  try {
    tempDir.mkdirs();
  } catch (Exception e1) {
    log.warn("Could not create charts temporary directory: " + tempDir, e1);
    dir = new File(context.getWiki().Param("xwiki.upload.tempdir"));
    try {
      tempDir = new File(dir, "charts");
    } catch (Exception e2) {
      log.error("Could not create charts temporary directory: " + tempDir, e2);
    }
  }
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

@Override
public void init(XWikiContext context)
  super.init(context);

代码示例来源:origin: com.avane.xwiki.products/xwiki-plugin-chronopolys

public void init(XWikiContext context)
{
  String localSmtp = context.getWiki().Param("chronopolys.smtp.local");
  if (localSmtp != null && localSmtp.equals("1")) {
    NanoSMTP smtp = new NanoSMTP();
    smtp.setPort(25);
    smtp.start();
  }
  super.init(context);
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

public void init(XWikiContext context) {
  super.init(context);
  reset(context);
  long iActive = context.getWiki().ParamAsLong("xwiki.monitor", 0);
  setActive((iActive>0));
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-search-lucene-api

public void init(IndexUpdater indexUpdater, IndexRebuilder indexRebuilder, XWikiContext context)
  super.init(context);

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com