org.codehaus.aspectwerkz
Class DeploymentModel
java.lang.Object
org.codehaus.aspectwerkz.DeploymentModel
- public final class DeploymentModel
- extends Object
Enum containing the different deployment model types. Used to be type-safe but that added to much overhead (0.00004
ms/call) compared to the current implementation.
- Author:
- Jonas Bonér
Method Summary |
static int |
getDeploymentModelAsInt(String type)
Converts the deployment model from string to int type. |
static String |
getDeploymentModelAsString(int type)
Converts the deployment model from int to string type. |
static boolean |
isMixinDeploymentModelCompatible(int mixinModel,
int aspectModel)
Check mixin deployment model is compatible with aspect' ones Supported models are: Mixin Aspect perJVM perJVM
perClass perJVM,perClass perInstance perJVM,perClass,perInstance perThread perThread |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PER_JVM
public static final int PER_JVM
- See Also:
- Constant Field Values
PER_CLASS
public static final int PER_CLASS
- See Also:
- Constant Field Values
PER_INSTANCE
public static final int PER_INSTANCE
- See Also:
- Constant Field Values
PER_THREAD
public static final int PER_THREAD
- See Also:
- Constant Field Values
DeploymentModel
public DeploymentModel()
getDeploymentModelAsInt
public static int getDeploymentModelAsInt(String type)
- Converts the deployment model from string to int type.
- Parameters:
type
- the string type
- Returns:
- the matched deployment type
getDeploymentModelAsString
public static String getDeploymentModelAsString(int type)
- Converts the deployment model from int to string type.
- Parameters:
type
- the int type
- Returns:
- the string type
isMixinDeploymentModelCompatible
public static boolean isMixinDeploymentModelCompatible(int mixinModel,
int aspectModel)
- Check mixin deployment model is compatible with aspect' ones Supported models are: Mixin Aspect perJVM perJVM
perClass perJVM,perClass perInstance perJVM,perClass,perInstance perThread perThread
- Parameters:
mixinModel
- aspectModel
-
- Returns:
- true if compatible
Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.