01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.aspect;
08:
09: /**
10: * Interface for that all mixin factories must implement.
11: *
12: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13: */
14: public interface MixinFactory {
15:
16: /**
17: * Creates a new perJVM mixin instance, if it already exists then return it.
18: *
19: * @return the mixin instance
20: */
21: Object mixinOf();
22:
23: /**
24: * Creates a new perClass mixin instance, if it already exists then return it.
25: *
26: * @param klass
27: * @return the mixin instance
28: */
29: Object mixinOf(Class klass);
30:
31: /**
32: * Creates a new perInstance mixin instance, if it already exists then return it.
33: *
34: * @param instance
35: * @return the mixin instance
36: */
37: Object mixinOf(Object instance);
38: }
|