org.objectweb.jonas.common.Log.isDebugNaming()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(78)

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

Log.isDebugNaming介绍

[英]Logger for Naming
[中]用于命名的记录器

代码示例

代码示例来源:origin: org.objectweb.jonas/jonas-naming

/**
 * Remove the ComponentContext associated with the given classloader.
 * @param cl the classloader which is bind to the context.
 */
public void unSetComponentContext(ClassLoader cl) {
  if (Log.isDebugNaming()) {
    logger.log(BasicLevel.DEBUG, "class loader = " + cl);
  }
  clBindings.remove(cl);
}

代码示例来源:origin: org.objectweb.jonas/jonas-naming

/**
 * Associate the specified ComponentContext with the given classloader.
 * @param ctx the context to associate to the classloader.
 * @param cl the classloader which is bind to the context.
 */
public void setComponentContext(Context ctx, ClassLoader cl) {
  if (Log.isDebugNaming()) {
    logger.log(BasicLevel.DEBUG, "class loader = " + cl);
  }
  clBindings.put(cl, ctx);
}

代码示例来源:origin: org.objectweb.jonas/jonas-naming

/**
 * Set the context used by client container (per JVM instead of per thread)
 * @param ctx the context to set
 */
public void setClientContainerComponentContext(Context ctx) {
  if (Log.isDebugNaming()) {
    logger.log(BasicLevel.DEBUG, "");
  }
  clientCtx = ctx;
}

代码示例来源:origin: org.objectweb.jonas/jonas-naming

/**
 * Return the ComponentContext associated with the given classloader.
 * @param cl the classloader which is bind to the context.
 * @return the ComponentContext associated with the given classloader.
 */
public Context getComponentContext(ClassLoader cl) {
  if (Log.isDebugNaming()) {
    logger.log(BasicLevel.DEBUG, "class loader = " + cl);
  }
  return (Context) clBindings.get(cl);
}

代码示例来源:origin: org.objectweb.jonas/jonas-tm-jotm

/**
 * Initialize the Context.
 * @throws NamingException if unable to create the InitialContext.
 */
private void init() throws NamingException {
  // Initial Context
  ictx = new InitialContext();
  // Get userTransaction instance
  try {
    userTransaction = ictx.lookup(USER_TRANSACTION_JNDI_NAME);
  } catch (NamingException ne) {
    if (Log.isDebugNaming()) {
      logger.log(BasicLevel.DEBUG, "Cannot lookup " + USER_TRANSACTION_JNDI_NAME + ".");
    }
  }
}

代码示例来源:origin: org.objectweb.jonas/jonas-naming

if (Log.isDebugNaming()) {
  logger.log(BasicLevel.DEBUG, "return Context for ejb");
ctx = (Context) clBindings.get(cl.getParent());
if (ctx != null) {
  if (Log.isDebugNaming()) {
    logger.log(BasicLevel.DEBUG, "return Context for webapp");
ctx = clientCtx;
if (ctx != null) {
  if (Log.isDebugNaming()) {
    logger.log(BasicLevel.DEBUG, "return Context for client");
if (Log.isDebugNaming()) {
  logger.log(BasicLevel.DEBUG, "return default server Context");

相关文章

微信公众号

最新文章

更多