Java 类org.apache.catalina.startup.TldConfig 实例源码

项目:tomcat7    文件:StandardContext.java   
@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);
    }
}
项目:apache-tomcat-7.0.73-with-comment    文件:StandardContext.java   
@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);
    }
}
项目:lazycat    文件:StandardContext.java   
@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);
    }
}
项目:class-guard    文件:StandardContext.java   
@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);
    }
}
项目:apache-tomcat-7.0.57    文件:StandardContext.java   
@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);
    }
}
项目:apache-tomcat-7.0.57    文件:StandardContext.java   
@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);
    }
}
项目:WBSAirback    文件:StandardContext.java   
@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);
    }
}
项目:lams    文件:StandardContext.java   
/**
* 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); 
  }
}