Skip to content

Commit

Permalink
[WFLY-4598] Remove class name strings from RTS subsystem
Browse files Browse the repository at this point in the history
  • Loading branch information
gytis committed May 6, 2015
1 parent d3d729d commit 152389b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.ClassInfo;
import org.jboss.jandex.DotName;
import org.jboss.narayana.rest.bridge.inbound.EJBExceptionMapper;
import org.jboss.narayana.rest.bridge.inbound.InboundBridgeFilter;
import org.jboss.narayana.rest.bridge.inbound.TransactionalExceptionMapper;

import javax.ejb.TransactionAttribute;
import javax.transaction.Transactional;
Expand All @@ -50,9 +53,9 @@ public class InboundBridgeDeploymentProcessor implements DeploymentUnitProcessor
private static final DotName TRANSACTION_ATTRIBUTE_DOT_NAME = DotName.createSimple(TransactionAttribute.class.getName());

private static final String[] PROVIDERS = new String[] {
"org.jboss.narayana.rest.bridge.inbound.InboundBridgeFilter",
"org.jboss.narayana.rest.bridge.inbound.TransactionalExceptionMapper",
"org.jboss.narayana.rest.bridge.inbound.EJBExceptionMapper",
InboundBridgeFilter.class.getName(),
TransactionalExceptionMapper.class.getName(),
EJBExceptionMapper.class.getName()
};

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.jboss.msc.service.StartContext;
import org.jboss.msc.service.StartException;
import org.jboss.msc.service.StopContext;
import org.wildfly.extension.rts.jaxrs.CoordinatorApplication;
import org.wildfly.extension.rts.logging.RTSLogger;

/**
Expand Down Expand Up @@ -74,7 +75,7 @@ private void deployCoordinator() {
undeployServlet();

final Map<String, String> initialParameters = new HashMap<String, String>();
initialParameters.put("javax.ws.rs.Application", "org.wildfly.extension.rts.jaxrs.CoordinatorApplication");
initialParameters.put("javax.ws.rs.Application", CoordinatorApplication.class.getName());

final DeploymentInfo coordinatorDeploymentInfo = getDeploymentInfo(DEPLOYMENT_NAME, CONTEXT_PATH, initialParameters);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.jboss.msc.service.StopContext;
import org.jboss.narayana.rest.integration.ParticipantResource;
import org.jboss.narayana.rest.integration.api.ParticipantsManagerFactory;
import org.wildfly.extension.rts.jaxrs.ParticipantApplication;
import org.wildfly.extension.rts.logging.RTSLogger;

/**
Expand Down Expand Up @@ -77,7 +78,7 @@ private void deployParticipant() {
undeployServlet();

final Map<String, String> initialParameters = new HashMap<String, String>();
initialParameters.put("javax.ws.rs.Application", "org.wildfly.extension.rts.jaxrs.ParticipantApplication");
initialParameters.put("javax.ws.rs.Application", ParticipantApplication.class.getName());

final DeploymentInfo participantDeploymentInfo = getDeploymentInfo(DEPLOYMENT_NAME, CONTEXT_PATH, initialParameters);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.jboss.msc.service.StopContext;
import org.jboss.narayana.rest.integration.VolatileParticipantResource;
import org.jboss.narayana.rest.integration.api.ParticipantsManagerFactory;
import org.wildfly.extension.rts.jaxrs.VolatileParticipantApplication;
import org.wildfly.extension.rts.logging.RTSLogger;

import java.util.HashMap;
Expand Down Expand Up @@ -76,7 +77,7 @@ private void deployParticipant() {
undeployServlet();

final Map<String, String> initialParameters = new HashMap<String, String>();
initialParameters.put("javax.ws.rs.Application", "org.wildfly.extension.rts.jaxrs.VolatileParticipantApplication");
initialParameters.put("javax.ws.rs.Application", VolatileParticipantApplication.class.getName());

final DeploymentInfo participantDeploymentInfo = getDeploymentInfo(DEPLOYMENT_NAME, CONTEXT_PATH, initialParameters);

Expand Down

0 comments on commit 152389b

Please sign in to comment.