Package org.apache.catalina.loader

Examples of org.apache.catalina.loader.ResourceEntry


    }

    @Override
    protected ResourceEntry findResourceInternal(String name, String path) {
        initInstrumentor();
        ResourceEntry entry = super.findResourceInternal(name, path);
        if (entry != null && path.endsWith(".class") && entry.binaryContent != null) {
            String className = name.substring(0, name.length() - ".class".length());
            try {
                byte[] res = instrumentor.instrumentClass(className, entry.binaryContent);
                if (res != null)
View Full Code Here


  }


  @Override
  protected ResourceEntry findResourceInternal(String name, String path) {
    ResourceEntry entry = super.findResourceInternal(name, path);
    // Postpone String parsing as much as possible (it is slow).
    if (entry != null && entry.binaryContent != null && path.endsWith(CLASS_SUFFIX)) {
      String className = (name.endsWith(CLASS_SUFFIX) ? name.substring(0, name.length() - CLASS_SUFFIX.length())
          : name);
      byte[] transformed = this.weavingTransformer.transformIfNecessary(className, entry.binaryContent);
View Full Code Here

  }


  @Override
  protected ResourceEntry findResourceInternal(String name, String path) {
    ResourceEntry entry = super.findResourceInternal(name, path);
    // Postpone String parsing as much as possible (it is slow).
    if (entry != null && entry.binaryContent != null && path.endsWith(".class")) {
      byte[] transformed = this.weavingTransformer.transformIfNecessary(name, entry.binaryContent);
      entry.binaryContent = transformed;
    }
View Full Code Here

  }


  @Override
  protected ResourceEntry findResourceInternal(String name, String path) {
    ResourceEntry entry = super.findResourceInternal(name, path);
    // Postpone String parsing as much as possible (it is slow).
    if (entry != null && entry.binaryContent != null && path.endsWith(".class")) {
      byte[] transformed = this.weavingTransformer.transformIfNecessary(name, entry.binaryContent);
      entry.binaryContent = transformed;
    }
View Full Code Here

      url = findResource(name);
      if (url != null)
      {
         if (getAntiJARLocking())
         {
            ResourceEntry entry = (ResourceEntry) this.resourceEntries.get(name);
            try
            {
               String repository = entry.codeBase.toString();
               if ((repository.endsWith(".jar")) && (!(name.endsWith(".class"))))
               {
View Full Code Here

  }


  @Override
  protected ResourceEntry findResourceInternal(String name, String path) {
    ResourceEntry entry = super.findResourceInternal(name, path);
    if (entry != null && entry.binaryContent != null && path.endsWith(CLASS_SUFFIX)) {
      String className = (name.endsWith(CLASS_SUFFIX) ? name.substring(0, name.length() - CLASS_SUFFIX.length()) : name);
      entry.binaryContent = this.weavingTransformer.transformIfNecessary(className, entry.binaryContent);
    }
    return entry;
View Full Code Here

      url = findResource(name);
      if (url != null)
      {
         if (getAntiJARLocking())
         {
            ResourceEntry entry = (ResourceEntry) this.resourceEntries.get(name);
            try
            {
               String repository = entry.codeBase.toString();
               if ((repository.endsWith(".jar")) && (!(name.endsWith(".class"))))
               {
View Full Code Here

    }

    @Override
    protected ResourceEntry findResourceInternal(String name, String path) {
        initInstrumentor();
        ResourceEntry entry = super.findResourceInternal(name, path);
        if (entry != null && path.endsWith(".class") && entry.binaryContent != null) {
            String className = name.substring(0, name.length() - ".class".length());
            try {
                entry.binaryContent = instrumentor.instrumentClass(className, entry.binaryContent);
            } catch (Exception ex) {
View Full Code Here

    }

    @Override
    protected ResourceEntry findResourceInternal(String name, String path) {
        initInstrumentor();
        ResourceEntry entry = super.findResourceInternal(name, path);
        if (entry != null && path.endsWith(".class")) {
            String className = name.substring(0, name.length() - ".class".length());
            try {
                entry.binaryContent = instrumentor.instrumentClass(className, entry.binaryContent);
            } catch (Exception ex) {
View Full Code Here

TOP

Related Classes of org.apache.catalina.loader.ResourceEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.