本文整理汇总了Java中org.jboss.as.controller.ReloadRequiredRemoveStepHandler类的典型用法代码示例。如果您正苦于以下问题:Java ReloadRequiredRemoveStepHandler类的具体用法?Java ReloadRequiredRemoveStepHandler怎么用?Java ReloadRequiredRemoveStepHandler使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ReloadRequiredRemoveStepHandler类属于org.jboss.as.controller包,在下文中一共展示了ReloadRequiredRemoveStepHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RequestControllerRootDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
RequestControllerRootDefinition(boolean registerRuntimeOnly) {
super(RequestControllerExtension.SUBSYSTEM_PATH,
RequestControllerExtension.getResolver(),
new RequestControllerSubsystemAdd(getAttributeDefinitions(registerRuntimeOnly)),
ReloadRequiredRemoveStepHandler.INSTANCE);
this.registerRuntimeOnly = registerRuntimeOnly;
}
示例2: ChildResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
ChildResourceDefinition() {
super(new Parameters(PathElement.pathElement("child"), new NonResolvingResourceDescriptionResolver())
.setAddHandler(new AddChildHandler())
.setRemoveHandler(ReloadRequiredRemoveStepHandler.INSTANCE)
.setIncorporatingCapabilities(Collections.singleton(RootResourceDefinition.CAPABILITY))
);
}
示例3: RootResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
RootResourceDefinition() {
super(new Parameters(PathElement.pathElement(SUBSYSTEM, TestExtension.SUBSYSTEM_NAME), new NonResolvingResourceDescriptionResolver())
.setAddHandler(new AddSubsystemHandler())
.setRemoveHandler(ReloadRequiredRemoveStepHandler.INSTANCE)
.setCapabilities(CAPABILITY)
);
}
示例4: SensitiveResource
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
public SensitiveResource(PathElement pathElement) {
super(new Parameters(pathElement, new NonResolvingResourceDescriptionResolver())
.setAddHandler(new AbstractAddStepHandler())
.setRemoveHandler(ReloadRequiredRemoveStepHandler.INSTANCE)
.setAccessConstraints(SensitiveTargetAccessConstraintDefinition.SECURITY_DOMAIN,
new ApplicationTypeAccessConstraintDefinition(new ApplicationTypeConfig("security", "security-domain"))));
}
示例5: ModelControllerResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
public ModelControllerResourceDefinition(boolean allowExpressions, boolean forStandalone) {
super(PathElement.pathElement("subsystem", "test"), new NonResolvingResourceDescriptionResolver(),
TestSubystemAdd.INSTANCE,
ReloadRequiredRemoveStepHandler.INSTANCE
);
this.allowExpressions = allowExpressions;
this.forStandalone = forStandalone;
init();
}
示例6: initialize
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
@Override
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem("test", ModelVersion.create(1));
ResourceBuilder builder = ResourceBuilder.Factory.create(SUBSYSTEM_PATH, new NonResolvingResourceDescriptionResolver())
.setAddOperation(TestSubystemAdd.INSTANCE)
.pushChild(getChildElement())
.setAddOperation(TestChildAdd.INSTANCE)
.setRemoveOperation(ReloadRequiredRemoveStepHandler.INSTANCE)
.addReadOnlyAttribute(ATTR)
.pop();
subsystem.registerSubsystemModel(builder.build());
}
示例7: AccessIdentityResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
private AccessIdentityResourceDefinition(AbstractAddStepHandler add) {
super(new Parameters(PATH_ELEMENT, DomainManagementResolver.getResolver("core.identity"))
.setAddHandler(add)
.setRemoveHandler(new ReloadRequiredRemoveStepHandler(MANAGEMENT_IDENTITY_RUNTIME_CAPABILITY))
.setAddRestartLevel(OperationEntry.Flag.RESTART_NONE)
.setRemoveRestartLevel(OperationEntry.Flag.RESTART_RESOURCE_SERVICES)
.setAccessConstraints(SensitiveTargetAccessConstraintDefinition.ACCESS_CONTROL));
}
示例8: LoggingResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
protected LoggingResourceDefinition(final PathManager pathManager, final WildFlyLogContextSelector contextSelector) {
super(SUBSYSTEM_PATH,
LoggingExtension.getResourceDescriptionResolver(),
new LoggingSubsystemAdd(pathManager, contextSelector),
ReloadRequiredRemoveStepHandler.INSTANCE);
this.pathManager = pathManager;
}
示例9: RemotingSubsystemRootResource
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
private RemotingSubsystemRootResource(Attributes attributes) {
super(new Parameters(PATH, RemotingExtension.getResourceDescriptionResolver(RemotingExtension.SUBSYSTEM_NAME))
.setAddHandler(new RemotingSubsystemAdd(attributes))
.setAddRestartLevel(OperationEntry.Flag.RESTART_NONE)
.setRemoveHandler(new ReloadRequiredRemoveStepHandler())
.setRemoveRestartLevel(OperationEntry.Flag.RESTART_ALL_SERVICES)
.setCapabilities(REMOTING_ENDPOINT_CAPABILITY)
);
this.attributes = attributes;
}
示例10: SocketBindingGroupResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
private SocketBindingGroupResourceDefinition() {
super(BindingGroupAddHandler.INSTANCE,
new ReloadRequiredRemoveStepHandler() {
@Override
protected boolean requiresRuntime(OperationContext context) {
return true;
}
},
DEFAULT_INTERFACE, SOCKET_BINDING_MANAGER_CAPABILITY);
}
示例11: ThreadSubsystemResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
ThreadSubsystemResourceDefinition(boolean runtimeOnly) {
//noinspection deprecation
super(ThreadsExtension.SUBSYSTEM_PATH,
new DeprecatedResourceDescriptionResolver(ThreadsExtension.SUBSYSTEM_NAME, ThreadsExtension.SUBSYSTEM_NAME, ThreadsExtension.RESOURCE_NAME,
ThreadsExtension.class.getClassLoader(), true, false), ThreadsSubsystemAdd.INSTANCE, ReloadRequiredRemoveStepHandler.INSTANCE,
OperationEntry.Flag.RESTART_NONE, OperationEntry.Flag.RESTART_ALL_SERVICES);
setDeprecated(ThreadsExtension.DEPRECATED_SINCE);
this.registerRuntimeOnly = runtimeOnly;
}
示例12: initialize
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
@Override
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, ModelVersion.create(1));
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(new SimpleResourceDefinition(
PathElement.pathElement(SUBSYSTEM, SUBSYSTEM_NAME),
new NonResolvingResourceDescriptionResolver(),
MainSubsystemAdd.INSTANCE,
ReloadRequiredRemoveStepHandler.INSTANCE
));
//We always need to add a 'describe' operation
registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
subsystem.registerXMLElementWriter(parser);
}
示例13: initialize
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
@Override
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, ModelVersion.create(1));
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(new SimpleResourceDefinition(
PathElement.pathElement(SUBSYSTEM, SUBSYSTEM_NAME),
new NonResolvingResourceDescriptionResolver(),
DependencySubsystemAdd.INSTANCE,
ReloadRequiredRemoveStepHandler.INSTANCE
));
//We always need to add a 'describe' operation
registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
subsystem.registerXMLElementWriter(parser);
}
示例14: initialize
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
@Override
public void initialize(ExtensionContext context) {
final SubsystemRegistration subsystem = context.registerSubsystem(SUBSYSTEM_NAME, ModelVersion.create(1));
final ManagementResourceRegistration registration = subsystem.registerSubsystemModel(new SimpleResourceDefinition(
PathElement.pathElement(SUBSYSTEM, SUBSYSTEM_NAME),
new NonResolvingResourceDescriptionResolver(),
addHandler,
ReloadRequiredRemoveStepHandler.INSTANCE
));
//We always need to add a 'describe' operation
registration.registerOperationHandler(GenericSubsystemDescribeHandler.DEFINITION, GenericSubsystemDescribeHandler.INSTANCE);
subsystem.registerXMLElementWriter(parser);
}
示例15: WorkerResourceDefinition
import org.jboss.as.controller.ReloadRequiredRemoveStepHandler; //导入依赖的package包/类
private WorkerResourceDefinition() {
super(IOExtension.WORKER_PATH,
IOExtension.getResolver(Constants.WORKER),
WorkerAdd.INSTANCE,
new ReloadRequiredRemoveStepHandler()
);
}