-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WFCORE-6750] Integrate the unstable api annotation scanner
- Loading branch information
Showing
63 changed files
with
2,610 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...em/layers/base/org/wildfly/_internal/unstable-api-annotation-index/main/content/index.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Comment to include file |
22 changes: 22 additions & 0 deletions
22
...es/system/layers/base/org/wildfly/_internal/unstable-api-annotation-index/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
~ Copyright The WildFly Authors | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<module xmlns="urn:jboss:module:1.9" name="org.wildfly._internal.unstable-api-annotation-index"> | ||
|
||
<properties> | ||
<property name="jboss.api" value="private"/> | ||
</properties> | ||
|
||
<resources> | ||
<resource-root path="content"></resource-root> | ||
</resources> | ||
|
||
<exports> | ||
<include path="*"/> | ||
<include path="**/*"/> | ||
</exports> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...es/modules/system/layers/base/org/wildfly/unstable/annotation/api/indexer/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
~ Copyright The WildFly Authors | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<module xmlns="urn:jboss:module:1.9" name="org.wildfly.unstable.annotation.api.indexer"> | ||
<properties> | ||
<property name="jboss.api" value="private"/> | ||
</properties> | ||
|
||
<resources> | ||
<artifact name="${org.wildfly.unstable.api.annotation:unstable-api-annotation-classpath-indexer}"/> | ||
</resources> | ||
|
||
<dependencies> | ||
<module name="org.jboss.logging"/> | ||
<module name="io.smallrye.jandex"/> | ||
</dependencies> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
...rc/main/java/org/wildfly/extension/core/management/CoreManagementSubsystemParser_1_0.java
This file was deleted.
Oops, something went wrong.
71 changes: 71 additions & 0 deletions
71
...rc/main/java/org/wildfly/extension/core/management/CoreManagementSubsystemSchema_1_0.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright The WildFly Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.wildfly.extension.core.management; | ||
|
||
import org.jboss.as.controller.Feature; | ||
import org.jboss.as.controller.PersistentResourceXMLDescription; | ||
import org.jboss.as.controller.PersistentSubsystemSchema; | ||
import org.jboss.as.controller.SubsystemSchema; | ||
import org.jboss.as.controller.xml.VersionedNamespace; | ||
import org.jboss.as.version.Stability; | ||
import org.jboss.staxmapper.IntVersion; | ||
|
||
import java.util.EnumSet; | ||
import java.util.Map; | ||
|
||
/** | ||
* Parser and Marshaller for core-management subsystem. | ||
* | ||
* <em>All resources and attributes must be listed explicitly and not through any collections.</em> | ||
* This ensures that if the resource definitions change in later version (e.g. a new attribute is added), | ||
* this will have no impact on parsing this specific version of the subsystem. | ||
* | ||
* @author <a href="http://jmesnil.net/">Jeff Mesnil</a> (c) 2016 Red Hat inc. | ||
*/ | ||
public enum CoreManagementSubsystemSchema_1_0 implements PersistentSubsystemSchema<CoreManagementSubsystemSchema_1_0> { | ||
|
||
VERSION_1_0(1), | ||
VERSION_1_0_PREVIEW(1, Stability.PREVIEW); | ||
static final Map<Stability, CoreManagementSubsystemSchema_1_0> ALL = Feature.map(EnumSet.of(VERSION_1_0, VERSION_1_0_PREVIEW)); | ||
|
||
private final VersionedNamespace<IntVersion, CoreManagementSubsystemSchema_1_0> namespace; | ||
|
||
CoreManagementSubsystemSchema_1_0(int major) { | ||
this.namespace = SubsystemSchema.createLegacySubsystemURN(CoreManagementExtension.SUBSYSTEM_NAME, new IntVersion(major, 0)); | ||
} | ||
|
||
CoreManagementSubsystemSchema_1_0(int major, Stability stability) { | ||
this.namespace = SubsystemSchema.createLegacySubsystemURN(CoreManagementExtension.SUBSYSTEM_NAME, stability, new IntVersion(major, 0)); | ||
} | ||
|
||
@Override | ||
public VersionedNamespace<IntVersion, CoreManagementSubsystemSchema_1_0> getNamespace() { | ||
return this.namespace; | ||
} | ||
|
||
@Override | ||
public PersistentResourceXMLDescription getXMLDescription() { | ||
PersistentResourceXMLDescription.Factory factory = PersistentResourceXMLDescription.factory(this); | ||
PersistentResourceXMLDescription.Builder builder = factory.builder(CoreManagementExtension.SUBSYSTEM_PATH); | ||
builder.addChild( | ||
factory.builder(ConfigurationChangeResourceDefinition.PATH) | ||
.addAttribute(ConfigurationChangeResourceDefinition.MAX_HISTORY) | ||
.build()); | ||
builder.addChild( | ||
factory.builder(UnstableApiAnnotationResourceDefinition.RESOURCE_REGISTRATION) | ||
.addAttribute(UnstableApiAnnotationResourceDefinition.LEVEL) | ||
.build()); | ||
builder.addChild( | ||
factory.builder(CoreManagementExtension.PROCESS_STATE_LISTENER_PATH) | ||
|
||
.addAttribute(ProcessStateListenerResourceDefinition.LISTENER_CLASS) | ||
.addAttribute(ProcessStateListenerResourceDefinition.LISTENER_MODULE) | ||
.addAttribute(ProcessStateListenerResourceDefinition.PROPERTIES) | ||
.addAttribute(ProcessStateListenerResourceDefinition.TIMEOUT) | ||
.build()); | ||
return builder.build(); | ||
} | ||
} |
Oops, something went wrong.