public enum ExtensionScope extends Enum<ExtensionScope>
SPI,
ExtensionDirector| 枚举常量和说明 |
|---|
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 |
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.