扩展 WildFly 示例

本文介绍 WildFly 文档 Extending WildFly 8acme-subsystem 示例。

详细运行 acme-subsystem 参照 acme-subsystem README.md

以下是本示例中用到的主要接口:

org.jboss.as.controller.Extension

An extension to the WildFly Server, Implementations of this interface should have a zero-arg constructor. Extension modules must contain a META-INF/services/org.jboss.as.controller.Extension file with a line containing the name of the implementation class.

For example, org.jboss.as.controller.Extension contain Simplementation class com.acme.corp.tracker.extension.TrackerExtension.

org.jboss.as.controller.ResourceDefinition

ResourceDefinition provides essential information defining a management resource.

org.jboss.as.controller.OperationStepHandler

A handler for an individual step in the overall execution of a management operation.

A handler is associated with a single org.jboss.as.controller.OperationContext.Stage of operation execution and should only perform functions appropriate for that stage.

org.jboss.as.controller.registry.ManagementResourceRegistration

A registration for a management resource which consists of a resource description plus registered operation handlers.

org.jboss.as.controller.descriptions.ResourceDescriptionResolver

ResourceDescriptionResolver used to resolve localized text descriptions of resources and their components.

org.jboss.as.server.deployment.DeploymentUnitProcessor

The org.jboss.as.server.deployment.DeploymentUnitProcessor is a deployment processor. Instances of this interface represent a step in the deployer chain. They may perform a variety of tasks, including (but not limited to):

  • Parsing a deployment descriptor and adding it to the context
  • Reading a deployment descriptor’s data and using it to produce deployment items
  • Replacing a deployment descriptor with a transformed version of that descriptor
  • Removing a deployment descriptor to prevent it from being processed