You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CustomMungerFactory.java 1.9KB

15 years ago
14 years ago
15 years ago
14 years ago
15 years ago
14 years ago
15 years ago
14 years ago
15 years ago
15 years ago
14 years ago
15 years ago
14 years ago
15 years ago
15 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* *******************************************************************
  2. * Copyright (c) 2007 Contributors
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Linton Ye https://bugs.eclipse.org/bugs/show_bug.cgi?id=193065
  11. * ******************************************************************/
  12. package org.aspectj.weaver;
  13. import java.util.Collection;
  14. /**
  15. * <p>
  16. * This interface is introduced to support tools like PointcutDoctor.
  17. * </p>
  18. * <p>
  19. * A CustomMungerFactory is used to create ShadowMungers and/or ConcreteTypeMungers so that an extender can extract extra
  20. * information during the weaving process.
  21. * </p>
  22. * <p>
  23. * A CustomMungerFactory is assigned to a weaver through its AjCompiler in extenders' code, and gets invoked by the weaver right
  24. * before the weaving starts. The custom shadow/type mungers being created will be added into the shadow/type munger list in the
  25. * weaver and participate the weaving process. For example, the match method of each custom shadow munger will be called against
  26. * each shadow.
  27. * </p>
  28. *
  29. * @author lintonye
  30. *
  31. */
  32. public interface CustomMungerFactory {
  33. /**
  34. * @param aspectType
  35. * @return a Collection&lt;ShadowMunger&gt; of custom shadow mungers for the given aspect
  36. */
  37. public Collection<ShadowMunger> createCustomShadowMungers(ResolvedType aspectType);
  38. /**
  39. * @param aspectType
  40. * @return a Collection&lt;ConcreteTypeMunger&gt; of custom type mungers for the given aspect
  41. */
  42. public Collection<ConcreteTypeMunger> createCustomTypeMungers(ResolvedType aspectType);
  43. public Collection<ShadowMunger> getAllCreatedCustomShadowMungers();
  44. public Collection<ConcreteTypeMunger> getAllCreatedCustomTypeMungers();
  45. }