public enum ExtensionScope extends Enum<ExtensionScope>
SPI,
ExtensionDirector| Enum Constant and Description |
|---|
APPLICATION
The extension instance is used within one application, shared with all modules of the application,
and different applications create different extension instances.
|
FRAMEWORK
The extension instance is used within framework, shared with all applications and modules.
|
MODULE
The extension instance is used within one module, and different modules create different extension instances.
|
SELF
self-sufficient, creates an instance for per scope, for special SPI extension, like
ExtensionInjector |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExtensionScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExtensionScope FRAMEWORK
Framework scope SPI extension can only obtain FrameworkModel,
cannot get the ApplicationModel and ModuleModel.
public static final ExtensionScope APPLICATION
Application scope SPI extension can obtain FrameworkModel and ApplicationModel,
cannot get the ModuleModel.
public static final ExtensionScope MODULE
Module scope SPI extension can obtain FrameworkModel, ApplicationModel and ModuleModel.
public static final ExtensionScope SELF
ExtensionInjectorpublic static ExtensionScope[] values()
for (ExtensionScope c : ExtensionScope.values()) System.out.println(c);
public static ExtensionScope valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.