Package org.aspectj.weaver.loadtime.definition

Examples of org.aspectj.weaver.loadtime.definition.Definition


    if (!xmlFiles.isEmpty()) {
      xmlConfiguration = new WeavingXmlConfig(this, WeavingXmlConfig.MODE_COMPILE);
    }
    for (File xmlfile : xmlFiles) {
      try {
        Definition d = DocumentParser.parse(xmlfile.toURI().toURL());
        xmlConfiguration.add(d);
      } catch (MalformedURLException e) {
        raiseError("Unexpected problem processing XML config file '" + xmlfile.getName() + "' :" + e.getMessage());
      } catch (Exception e) {
        raiseError("Unexpected problem processing XML config file '" + xmlfile.getName() + "' :" + e.getMessage());
View Full Code Here


   * @param definitions
   */
  private void registerOptions(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
    StringBuffer allOptions = new StringBuffer();
    for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
      Definition definition = (Definition) iterator.next();
      allOptions.append(definition.getWeaverOptions()).append(' ');
    }

    Options.WeaverOption weaverOption = Options.parse(allOptions.toString(), loader, getMessageHandler());

    // configure the weaver and world
View Full Code Here

   * @param definitions
   */
  private void registerIncludeExclude(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
    String fastMatchInfo = null;
    for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
      Definition definition = (Definition) iterator.next();
      for (Iterator iterator1 = definition.getIncludePatterns().iterator(); iterator1.hasNext();) {
        hasIncludes = true;
        String include = (String) iterator1.next();
        fastMatchInfo = looksLikeStartsWith(include);
        if (fastMatchInfo != null) {
          m_includeStartsWith.add(fastMatchInfo);
        } else if (include.equals("*")) {
          includeStar = true;
        } else if ((fastMatchInfo = looksLikeExactName(include)) != null) {
          includeExactName.add(fastMatchInfo);
        } else {
          TypePattern includePattern = new PatternParser(include).parseTypePattern();
          includeTypePattern.add(includePattern);
        }
      }
      for (Iterator iterator1 = definition.getExcludePatterns().iterator(); iterator1.hasNext();) {
        hasExcludes = true;
        String exclude = (String) iterator1.next();
        fastMatchInfo = looksLikeStartsWith(exclude);
        if (fastMatchInfo != null) {
          excludeStartsWith.add(fastMatchInfo);
View Full Code Here

   * @param loader
   * @param definitions
   */
  private void registerDump(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
    for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
      Definition definition = (Definition) iterator.next();
      for (Iterator iterator1 = definition.getDumpPatterns().iterator(); iterator1.hasNext();) {
        String dump = (String) iterator1.next();
        TypePattern pattern = new PatternParser(dump).parseTypePattern();
        m_dumpTypePattern.add(pattern);
      }
      if (definition.shouldDumpBefore()) {
        m_dumpBefore = true;
      }
      if (definition.createDumpDirPerClassloader()) {
        dumpDirPerClassloader = true;
      }
    }
  }
View Full Code Here

    if (!xmlFiles.isEmpty()) {
      xmlConfiguration = new WeavingXmlConfig(this, WeavingXmlConfig.MODE_COMPILE);
    }
    for (File xmlfile : xmlFiles) {
      try {
        Definition d = DocumentParser.parse(xmlfile.toURI().toURL());
        xmlConfiguration.add(d);
      } catch (MalformedURLException e) {
        raiseError("Unexpected problem processing XML config file '" + xmlfile.getName() + "' :" + e.getMessage());
      } catch (Exception e) {
        raiseError("Unexpected problem processing XML config file '" + xmlfile.getName() + "' :" + e.getMessage());
View Full Code Here

   * @param definitions
   */
  private void registerOptions(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
    StringBuffer allOptions = new StringBuffer();
    for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
      Definition definition = (Definition) iterator.next();
      allOptions.append(definition.getWeaverOptions()).append(' ');
    }

    Options.WeaverOption weaverOption = Options.parse(allOptions.toString(), loader, getMessageHandler());

    // configure the weaver and world
View Full Code Here

   * @param definitions
   */
  private void registerIncludeExclude(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
    String fastMatchInfo = null;
    for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
      Definition definition = (Definition) iterator.next();
      for (Iterator iterator1 = definition.getIncludePatterns().iterator(); iterator1.hasNext();) {
        hasIncludes = true;
        String include = (String) iterator1.next();
        fastMatchInfo = looksLikeStartsWith(include);
        if (fastMatchInfo != null) {
          m_includeStartsWith.add(fastMatchInfo);
        } else if (include.equals("*")) {
          includeStar = true;
        } else if ((fastMatchInfo = looksLikeExactName(include)) != null) {
          includeExactName.add(fastMatchInfo);
        } else {
          TypePattern includePattern = new PatternParser(include).parseTypePattern();
          includeTypePattern.add(includePattern);
        }
      }
      for (Iterator iterator1 = definition.getExcludePatterns().iterator(); iterator1.hasNext();) {
        hasExcludes = true;
        String exclude = (String) iterator1.next();
        fastMatchInfo = looksLikeStartsWith(exclude);
        if (fastMatchInfo != null) {
          excludeStartsWith.add(fastMatchInfo);
View Full Code Here

   * @param loader
   * @param definitions
   */
  private void registerDump(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
    for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
      Definition definition = (Definition) iterator.next();
      for (Iterator iterator1 = definition.getDumpPatterns().iterator(); iterator1.hasNext();) {
        String dump = (String) iterator1.next();
        TypePattern pattern = new PatternParser(dump).parseTypePattern();
        m_dumpTypePattern.add(pattern);
      }
      if (definition.shouldDumpBefore()) {
        m_dumpBefore = true;
      }
      if (definition.createDumpDirPerClassloader()) {
        dumpDirPerClassloader = true;
      }
    }
  }
View Full Code Here

    if (!xmlFiles.isEmpty()) {
      xmlConfiguration = new WeavingXmlConfig(this, WeavingXmlConfig.MODE_COMPILE);
    }
    for (File xmlfile : xmlFiles) {
      try {
        Definition d = DocumentParser.parse(xmlfile.toURI().toURL());
        xmlConfiguration.add(d);
      } catch (MalformedURLException e) {
        raiseError("Unexpected problem processing XML config file '" + xmlfile.getName() + "' :" + e.getMessage());
      } catch (Exception e) {
        raiseError("Unexpected problem processing XML config file '" + xmlfile.getName() + "' :" + e.getMessage());
View Full Code Here

     * @param definitions
     */
    private void registerOptions(final BcelWeaver weaver, final ClassLoader loader, final List definitions) {
        StringBuffer allOptions = new StringBuffer();
        for (Iterator iterator = definitions.iterator(); iterator.hasNext();) {
            Definition definition = (Definition) iterator.next();
            allOptions.append(definition.getWeaverOptions()).append(' ');
        }

        Options.WeaverOption weaverOption = Options.parse(allOptions.toString(), loader, getMessageHandler());

        // configure the weaver and world
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.loadtime.definition.Definition

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.