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


Java TldConfig类代码示例

本文整理汇总了Java中org.apache.catalina.startup.TldConfig的典型用法代码示例。如果您正苦于以下问题:Java TldConfig类的具体用法?Java TldConfig怎么用?Java TldConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: initInternal

import org.apache.catalina.startup.TldConfig; //导入依赖的package包/类
@Override
protected void initInternal() throws LifecycleException {
    super.initInternal();
    
    if (processTlds) {
        this.addLifecycleListener(new TldConfig());
    }

    // Register the naming resources
    if (namingResources != null) {
        namingResources.init();
    }

    // Send j2ee.object.created notification 
    if (this.getObjectName() != null) {
        Notification notification = new Notification("j2ee.object.created",
                this.getObjectName(), sequenceNumber.getAndIncrement());
        broadcaster.sendNotification(notification);
    }
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:21,代码来源:StandardContext.java

示例2: initInternal

import org.apache.catalina.startup.TldConfig; //导入依赖的package包/类
@Override
protected void initInternal() throws LifecycleException {
	super.initInternal();

	if (processTlds) {
		this.addLifecycleListener(new TldConfig());
	}

	// Register the naming resources
	if (namingResources != null) {
		namingResources.init();
	}

	// Send j2ee.object.created notification
	if (this.getObjectName() != null) {
		Notification notification = new Notification("j2ee.object.created", this.getObjectName(),
				sequenceNumber.getAndIncrement());
		broadcaster.sendNotification(notification);
	}
}
 
开发者ID:how2j,项目名称:lazycat,代码行数:21,代码来源:StandardContext.java

示例3: processTlds

import org.apache.catalina.startup.TldConfig; //导入依赖的package包/类
/**
* Processes TLDs.
*
* @throws LifecycleException If an error occurs
*/
protected void processTlds() throws LifecycleException {
  TldConfig tldConfig = new TldConfig();
  tldConfig.setContext(this);

  // (1)  check if the attribute has been defined
  //      on the context element.
  tldConfig.setTldValidation(tldValidation);
  tldConfig.setTldNamespaceAware(tldNamespaceAware);

  // (2) if the attribute wasn't defined on the context
  //     try the host.
  if (!tldValidation) {
    tldConfig.setTldValidation
      (((StandardHost) getParent()).getXmlValidation());
  }

  if (!tldNamespaceAware) {
    tldConfig.setTldNamespaceAware
      (((StandardHost) getParent()).getXmlNamespaceAware());
  }
               
  try {
    tldConfig.execute();
  } catch (Exception ex) {
    log.error("Error reading tld listeners " 
               + ex.toString(), ex); 
  }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:34,代码来源:StandardContext.java


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