Skip to content

Commit

Permalink
Merge pull request logstash-plugins#15 from ceharris/wildfly14
Browse files Browse the repository at this point in the history
Support for Wildfly 14
  • Loading branch information
ceharris authored Dec 11, 2018
2 parents 4479a1d + 09184ac commit 074fc5c
Show file tree
Hide file tree
Showing 8 changed files with 260 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.RestartParentResourceAddHandler;
import org.jboss.as.controller.RestartParentResourceRemoveHandler;
import org.jboss.as.controller.ServiceVerificationHandler;
import org.jboss.as.controller.SimpleResourceDefinition;
import org.jboss.as.controller.registry.ManagementResourceRegistration;
import org.jboss.dmr.ModelNode;
Expand Down Expand Up @@ -102,8 +101,7 @@ protected void populateModel(ModelNode operation, ModelNode model)
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down Expand Up @@ -134,8 +132,7 @@ private AttributeTransformRemove() {
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.jboss.as.controller.PathElement;
import org.jboss.as.controller.RestartParentResourceAddHandler;
import org.jboss.as.controller.RestartParentResourceRemoveHandler;
import org.jboss.as.controller.ServiceVerificationHandler;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinitionBuilder;
import org.jboss.as.controller.SimpleListAttributeDefinition;
Expand Down Expand Up @@ -138,8 +137,7 @@ protected ServiceName getParentServiceName(PathAddress parentAddress) {
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down Expand Up @@ -187,8 +185,7 @@ protected ServiceName getParentServiceName(PathAddress parentAddress) {
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.RestartParentWriteAttributeHandler;
import org.jboss.as.controller.ServiceVerificationHandler;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinitionBuilder;
import org.jboss.as.controller.SimpleResourceDefinition;
Expand Down Expand Up @@ -244,18 +243,19 @@ private ProfileAdd() {
*/
@Override
protected void performRuntime(OperationContext context,
ModelNode operation, ModelNode model,
ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> newControllers)
ModelNode operation, ModelNode model)
throws OperationFailedException {

ServiceController<?> controller =
ProfileService.ServiceUtil.installService(context, model,
PathAddress.pathAddress(
operation.get(ModelDescriptionConstants.OP_ADDR)));

newControllers.add(
(ServiceController<?>) controller);

//,
// ServiceVerificationHandler verificationHandler,
// List<ServiceController<?>> newControllers
//newControllers.add(
// (ServiceController<?>) controller);
}

}
Expand Down Expand Up @@ -316,8 +316,7 @@ protected ServiceName getParentServiceName(PathAddress parentAddress) {
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.RestartParentResourceAddHandler;
import org.jboss.as.controller.RestartParentResourceRemoveHandler;
import org.jboss.as.controller.ServiceVerificationHandler;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinitionBuilder;
import org.jboss.as.controller.SimpleListAttributeDefinition;
Expand Down Expand Up @@ -121,8 +120,7 @@ protected ServiceName getParentServiceName(PathAddress parentAddress) {
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down Expand Up @@ -152,8 +150,7 @@ protected ServiceName getParentServiceName(PathAddress parentAddress) {
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.jboss.as.controller.AbstractRemoveStepHandler;
import org.jboss.as.controller.OperationContext;
import org.jboss.as.controller.OperationFailedException;
import org.jboss.as.controller.ServiceVerificationHandler;
import org.jboss.as.controller.SimpleResourceDefinition;
import org.jboss.as.controller.operations.common.GenericSubsystemDescribeHandler;
import org.jboss.as.controller.registry.ManagementResourceRegistration;
Expand Down Expand Up @@ -85,8 +84,7 @@ protected void populateModel(ModelNode operation, ModelNode model)
*/
@Override
public void performBoottime(OperationContext context, ModelNode operation,
ModelNode model, ServiceVerificationHandler verificationHandler,
List<ServiceController<?>> newControllers)
ModelNode model)
throws OperationFailedException {

DescriptorDeploymentProcessor.addStepHandler(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.jboss.as.controller.PathAddress;
import org.jboss.as.controller.RestartParentResourceAddHandler;
import org.jboss.as.controller.RestartParentResourceRemoveHandler;
import org.jboss.as.controller.ServiceVerificationHandler;
import org.jboss.as.controller.SimpleAttributeDefinition;
import org.jboss.as.controller.SimpleAttributeDefinitionBuilder;
import org.jboss.as.controller.SimpleMapAttributeDefinition;
Expand Down Expand Up @@ -130,8 +129,7 @@ protected void populateModel(ModelNode operation, ModelNode model)
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down Expand Up @@ -162,8 +160,7 @@ private TransformerRemove() {
*/
@Override
protected void recreateParentService(OperationContext context,
PathAddress parentAddress, ModelNode parentModel,
ServiceVerificationHandler verificationHandler)
PathAddress parentAddress, ModelNode parentModel)
throws OperationFailedException {
ProfileService.ServiceUtil.installService(context, parentModel,
parentAddress);
Expand Down
17 changes: 16 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
An extension for Wildfly that supports CAS authentication.
</description>
<properties>
<version.org.jasig.cas.client>3.4.1</version.org.jasig.cas.client>
<version.org.jasig.cas.client>3.5.0</version.org.jasig.cas.client>
<module.name>cas</module.name>
</properties>
<scm>
Expand Down Expand Up @@ -70,6 +70,15 @@
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>wildfly14</id>
<properties>
<java.version>1.8</java.version>
<version.org.wildfly>14.0.1.Final</version.org.wildfly>
<version.org.wildfly.core>6.0.2.Final</version.org.wildfly.core>
<version.io.undertow>2.0.13.Final</version.io.undertow>
</properties>
</profile>
<profile>
<id>wildfly10</id>
<properties>
Expand Down Expand Up @@ -143,6 +152,12 @@
</dependencyManagement>
</profile>
</profiles>
<repositories>
<repository>
<id>jboss</id>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url>
</repository>
</repositories>
<modules>
<module>cas-subsystem</module>
<module>cas-opensaml</module>
Expand Down
Loading

0 comments on commit 074fc5c

Please sign in to comment.