当前位置: 首页>>代码示例>>Java>>正文


Java InterpretationContext.removeInPlayListener方法代码示例

本文整理汇总了Java中ch.qos.logback.core.joran.spi.InterpretationContext.removeInPlayListener方法的典型用法代码示例。如果您正苦于以下问题:Java InterpretationContext.removeInPlayListener方法的具体用法?Java InterpretationContext.removeInPlayListener怎么用?Java InterpretationContext.removeInPlayListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ch.qos.logback.core.joran.spi.InterpretationContext的用法示例。


在下文中一共展示了InterpretationContext.removeInPlayListener方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: end

import ch.qos.logback.core.joran.spi.InterpretationContext; //导入方法依赖的package包/类
@Override
public void end(InterpretationContext ic, String name) throws ActionException {
  if(!weAreActive(ic)) return;

  ThenActionState state = stateStack.pop();
  if (state.isRegistered) {
    ic.removeInPlayListener(state);
    Object o = ic.peekObject();
    if (o instanceof IfAction) {
      IfAction ifAction = (IfAction) o;
      removeFirstAndLastFromList(state.eventList);
      registerEventList(ifAction, state.eventList);
    } else {
      throw new IllegalStateException("Missing IfAction on top of stack");
    }
  }
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:18,代码来源:ThenOrElseActionBase.java

示例2: end

import ch.qos.logback.core.joran.spi.InterpretationContext; //导入方法依赖的package包/类
@Override
public void end(InterpretationContext ic, String name) throws ActionException {
	this.depth--;
	if (this.depth != 0) {
		return;
	}
	ic.removeInPlayListener(this);
	verifyAndPop(ic);
	if (this.acceptsProfile) {
		addEventsToPlayer(ic);
	}
}
 
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:13,代码来源:SpringProfileAction.java

示例3: end

import ch.qos.logback.core.joran.spi.InterpretationContext; //导入方法依赖的package包/类
@Override
public void end(InterpretationContext ec, String name) throws ActionException {
  ec.removeInPlayListener(this);
  
  Object o = ec.peekObject();
  if(o instanceof FruitShell) {
    FruitShell fs = (FruitShell) o;
    FruitFactory fruitFactory = new FruitFactory();
    fruitFactory.setEventList(new ArrayList<SaxEvent>(seList));
    fs.setFruitFactory(fruitFactory);
  }
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:13,代码来源:FruitFactoryAction.java

示例4: end

import ch.qos.logback.core.joran.spi.InterpretationContext; //导入方法依赖的package包/类
@Override
public void end(InterpretationContext ic, String name) throws ActionException {
  ic.removeInPlayListener(this);
  Object o = ic.peekObject();
  if (o instanceof SiftingAppender) {
    SiftingAppender sa = (SiftingAppender) o;
    Map<String, String> propertyMap = ic.getCopyOfPropertyMap();
    AppenderFactoryUsingJoran appenderFactory = new AppenderFactoryUsingJoran(seList, sa
        .getDiscriminatorKey(), propertyMap);
    sa.setAppenderFactory(appenderFactory);
  }
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:13,代码来源:SiftAction.java

示例5: end

import ch.qos.logback.core.joran.spi.InterpretationContext; //导入方法依赖的package包/类
@Override
public void end(InterpretationContext ic, String name) throws ActionException {
  ic.removeInPlayListener(this);
  Object o = ic.peekObject();
  if (o instanceof SiftingAppender) {
    SiftingAppender siftingAppender = (SiftingAppender) o;
    Map<String, String> propertyMap = ic.getCopyOfPropertyMap();
    AppenderFactoryUsingJoran appenderFactory = new AppenderFactoryUsingJoran(seList, siftingAppender.getDiscriminatorKey(), propertyMap);
    siftingAppender.setAppenderFactory(appenderFactory);
  }
}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:12,代码来源:SiftAction.java

示例6: end

import ch.qos.logback.core.joran.spi.InterpretationContext; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
public void end(InterpretationContext ic, String name) throws ActionException {
    depth--;
    if (depth != 0) {
        return;
    }
    ic.removeInPlayListener(this);
    if (accepts) {
        events.remove(0);
        events.remove(events.size() - 1);
        ic.getJoranInterpreter().getEventPlayer().addEventsDynamically(events, 1);
    }
    events.clear();
}
 
开发者ID:akihyro,项目名称:logback-access-spring-boot-starter,代码行数:16,代码来源:LogbackAccessJoranConfigurator.java

示例7: end

import ch.qos.logback.core.joran.spi.InterpretationContext; //导入方法依赖的package包/类
@Override
public void end(InterpretationContext ec, String name) throws ActionException {
  ec.removeInPlayListener(this);

}
 
开发者ID:cscfa,项目名称:bartleby,代码行数:6,代码来源:ListenAction.java


注:本文中的ch.qos.logback.core.joran.spi.InterpretationContext.removeInPlayListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。