com.alee.managers.plugin.data
Class InitializationStrategy

java.lang.Object
  extended by com.alee.managers.plugin.data.InitializationStrategy

public class InitializationStrategy
extends java.lang.Object

Plugin initialization strategy. Used to determine plugins initialization sequence.

Author:
Mikle Garin
See Also:
How to use PluginManager, PluginManager

Field Summary
static java.lang.String ALL_ID
          Custom ID for "all" plugins.
 
Method Summary
static InitializationStrategy after(java.lang.String pluginId)
          Plugin must be initialized strictly after specified plugin.
static InitializationStrategy afterAll()
          Plugin must be initialized strictly after all other plugins.
static InitializationStrategy any()
          Returns default initialization strategy.
static InitializationStrategy before(java.lang.String pluginId)
          Plugin must be initialized strictly before specified plugin.
static InitializationStrategy beforeAll()
          Plugin must be initialized strictly before all other plugins.
 java.lang.String getId()
          Returns strategy plugin ID.
 StrategyType getType()
          Returns plugin initialization strategy type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_ID

public static final java.lang.String ALL_ID
Custom ID for "all" plugins.

See Also:
Constant Field Values
Method Detail

getType

public StrategyType getType()
Returns plugin initialization strategy type.

Returns:
plugin initialization strategy type

getId

public java.lang.String getId()
Returns strategy plugin ID.

Returns:
strategy plugin ID

any

public static InitializationStrategy any()
Returns default initialization strategy.

Returns:
default initialization strategy

afterAll

public static InitializationStrategy afterAll()
Plugin must be initialized strictly after all other plugins.

Returns:
"after all" initialization strategy

beforeAll

public static InitializationStrategy beforeAll()
Plugin must be initialized strictly before all other plugins.

Returns:
"before all" initialization strategy

after

public static InitializationStrategy after(java.lang.String pluginId)
Plugin must be initialized strictly after specified plugin.

Parameters:
pluginId - plugin ID
Returns:
"after plugin" initialization strategy

before

public static InitializationStrategy before(java.lang.String pluginId)
Plugin must be initialized strictly before specified plugin.

Parameters:
pluginId - plugin ID
Returns:
"before plugin" initialization strategy