Package com.nomagic.magicdraw.plugins
Enum PluginDescriptor.ClassLookupStrategy
- java.lang.Object
-
- java.lang.Enum<PluginDescriptor.ClassLookupStrategy>
-
- com.nomagic.magicdraw.plugins.PluginDescriptor.ClassLookupStrategy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PluginDescriptor.ClassLookupStrategy>
- Enclosing class:
- PluginDescriptor
public static enum PluginDescriptor.ClassLookupStrategy extends java.lang.Enum<PluginDescriptor.ClassLookupStrategy>
Class lookup strategy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GlobalFirst
Lookup at global classloader firstLocalFirst
Lookup at plugin classloader first.
-
Constructor Summary
Constructors Modifier Constructor Description private
ClassLookupStrategy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PluginDescriptor.ClassLookupStrategy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PluginDescriptor.ClassLookupStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LocalFirst
public static final PluginDescriptor.ClassLookupStrategy LocalFirst
Lookup at plugin classloader first.
-
GlobalFirst
public static final PluginDescriptor.ClassLookupStrategy GlobalFirst
Lookup at global classloader first
-
-
Method Detail
-
values
public static PluginDescriptor.ClassLookupStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PluginDescriptor.ClassLookupStrategy c : PluginDescriptor.ClassLookupStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PluginDescriptor.ClassLookupStrategy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-