Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

ClassPreProcessor.java 1.1KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*******************************************************************************
  2. * Copyright (c) 2005 Contributors.
  3. * All rights reserved. This program and the accompanying materials
  4. * are made available under the terms of the Common Public License v1.0
  5. * which accompanies this distribution, and is available at
  6. * http://www.eclipse.org/legal/cpl-v10.html
  7. *
  8. * Contributors:
  9. * Alexandre Vasseur initial implementation
  10. *******************************************************************************/
  11. package org.aspectj.weaver.loadtime;
  12. /**
  13. * Generic class pre processor interface that allows to separate the AspectJ 5 load time weaving
  14. * from Java 5 JVMTI interfaces for further use on Java 1.3 / 1.4
  15. *
  16. * @author <a href="mailto:alex AT gnilux DOT com">Alexandre Vasseur</a>
  17. */
  18. public interface ClassPreProcessor {
  19. /**
  20. * Post constructor initialization, usually empty
  21. */
  22. void initialize();
  23. /**
  24. * Weave
  25. *
  26. * @param className
  27. * @param bytes
  28. * @param classLoader
  29. * @return
  30. */
  31. byte[] preProcess(String className, byte[] bytes, ClassLoader classLoader);
  32. }