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.

PerObjectMap.java 1.0KB

12345678910111213141516171819202122232425262728293031
  1. /* *******************************************************************
  2. * Copyright (c) 1999-2001 Xerox Corporation,
  3. * 2002 Palo Alto Research Center, Incorporated (PARC).
  4. * All rights reserved.
  5. * This program and the accompanying materials are made available
  6. * under the terms of the Eclipse Public License v1.0
  7. * which accompanies this distribution and is available at
  8. * http://www.eclipse.org/legal/epl-v10.html
  9. *
  10. * Contributors:
  11. * Xerox/PARC initial implementation
  12. * ******************************************************************/
  13. package org.aspectj.runtime.internal;
  14. //import java.util.WeakHashMap; // XXX REQUIRES JAVA 2!!!!!!!!!!!!!!!!
  15. public class PerObjectMap {
  16. // private WeakHashMap map = new WeakHashMap();
  17. //
  18. // public boolean hasAspect(Object o) { return map.containsKey(o); }
  19. //
  20. // public Object aspectOf(Object o) {
  21. // return map.get(o);
  22. // }
  23. //
  24. // public void bind(Object object, Object _aspect) {
  25. // map.put(object, _aspect);
  26. // }
  27. }