Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

CustomMungerFactory.java 1.8KB

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 v 2.0
  6. * which accompanies this distribution and is available at
  7. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
  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. 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. Collection<ConcreteTypeMunger> createCustomTypeMungers(ResolvedType aspectType);
  43. Collection<ShadowMunger> getAllCreatedCustomShadowMungers();
  44. Collection<ConcreteTypeMunger> getAllCreatedCustomTypeMungers();
  45. }