Skip to content

Commit

Permalink
[AS7-6781] Make non-final constants final; reduce visibility in some …
Browse files Browse the repository at this point in the history
…cases
  • Loading branch information
bstansberry authored and kabir committed Mar 25, 2013
1 parent 396713a commit a823dea
Show file tree
Hide file tree
Showing 61 changed files with 144 additions and 151 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
*/ */
public class ApplicationClientDependencyProcessor implements DeploymentUnitProcessor { public class ApplicationClientDependencyProcessor implements DeploymentUnitProcessor {


public static ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api"); public static final ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api");
public static ModuleIdentifier XNIO = ModuleIdentifier.create("org.jboss.xnio"); public static final ModuleIdentifier XNIO = ModuleIdentifier.create("org.jboss.xnio");




public ApplicationClientDependencyProcessor() { public ApplicationClientDependencyProcessor() {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ArgumentValueState extends DefaultParsingState {


public static final String ID = "ARG_VALUE"; public static final String ID = "ARG_VALUE";


public static ArgumentValueState INSTANCE = new ArgumentValueState(); public static final ArgumentValueState INSTANCE = new ArgumentValueState();


public ArgumentValueState() { public ArgumentValueState() {
super(ID); super(ID);
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/ */
public class ClearStatisticsHandler implements OperationStepHandler { public class ClearStatisticsHandler implements OperationStepHandler {


public static OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(Constants.CLEAR_STATISTICS, ResourceAdaptersExtension.getResourceDescriptionResolver(CONNECTIONDEFINITIONS_NAME)) public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(Constants.CLEAR_STATISTICS, ResourceAdaptersExtension.getResourceDescriptionResolver(CONNECTIONDEFINITIONS_NAME))
.build(); .build();


private final List<StatisticsPlugin> stats; private final List<StatisticsPlugin> stats;
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class Constants {


public static final SimpleAttributeDefinition POOL_USE_STRICT_MIN = new SimpleAttributeDefinition(POOL_USE_STRICT_MIN_NAME, CommonPool.Tag.USE_STRICT_MIN.getLocalName(), new ModelNode(Defaults.USE_STRICT_MIN), ModelType.BOOLEAN, true, true, MeasurementUnit.NONE); public static final SimpleAttributeDefinition POOL_USE_STRICT_MIN = new SimpleAttributeDefinition(POOL_USE_STRICT_MIN_NAME, CommonPool.Tag.USE_STRICT_MIN.getLocalName(), new ModelNode(Defaults.USE_STRICT_MIN), ModelType.BOOLEAN, true, true, MeasurementUnit.NONE);


public static SimpleAttributeDefinition POOL_FLUSH_STRATEGY = new SimpleAttributeDefinitionBuilder(FLUSH_STRATEGY_NAME, ModelType.STRING) public static final SimpleAttributeDefinition POOL_FLUSH_STRATEGY = new SimpleAttributeDefinitionBuilder(FLUSH_STRATEGY_NAME, ModelType.STRING)
.setDefaultValue(new ModelNode(Defaults.FLUSH_STRATEGY.getName())) .setDefaultValue(new ModelNode(Defaults.FLUSH_STRATEGY.getName()))
.setXmlName(CommonPool.Tag.FLUSH_STRATEGY.getLocalName()) .setXmlName(CommonPool.Tag.FLUSH_STRATEGY.getLocalName())
.setAllowNull(true) .setAllowNull(true)
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class PoolConfigurationRWHandler {


// TODO this seems to just do what the default handler does, so registering it is probably unnecessary // TODO this seems to just do what the default handler does, so registering it is probably unnecessary
public static class PoolConfigurationReadHandler implements OperationStepHandler { public static class PoolConfigurationReadHandler implements OperationStepHandler {
public static PoolConfigurationReadHandler INSTANCE = new PoolConfigurationReadHandler(); public static final PoolConfigurationReadHandler INSTANCE = new PoolConfigurationReadHandler();


public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final String parameterName = operation.require(NAME).asString(); final String parameterName = operation.require(NAME).asString();
Expand Down Expand Up @@ -151,7 +151,7 @@ private void updatePoolConfigs(List<PoolConfiguration> poolConfigs, String param
} }


public static class LocalAndXaDataSourcePoolConfigurationWriteHandler extends PoolConfigurationWriteHandler { public static class LocalAndXaDataSourcePoolConfigurationWriteHandler extends PoolConfigurationWriteHandler {
public static LocalAndXaDataSourcePoolConfigurationWriteHandler INSTANCE = new LocalAndXaDataSourcePoolConfigurationWriteHandler(); public static final LocalAndXaDataSourcePoolConfigurationWriteHandler INSTANCE = new LocalAndXaDataSourcePoolConfigurationWriteHandler();


protected LocalAndXaDataSourcePoolConfigurationWriteHandler() { protected LocalAndXaDataSourcePoolConfigurationWriteHandler() {
super(); super();
Expand All @@ -175,7 +175,7 @@ protected List<PoolConfiguration> getMatchingPoolConfigs(String jndiName, Manage
} }


public static class RaPoolConfigurationWriteHandler extends PoolConfigurationWriteHandler { public static class RaPoolConfigurationWriteHandler extends PoolConfigurationWriteHandler {
public static RaPoolConfigurationWriteHandler INSTANCE = new RaPoolConfigurationWriteHandler(); public static final RaPoolConfigurationWriteHandler INSTANCE = new RaPoolConfigurationWriteHandler();


protected RaPoolConfigurationWriteHandler() { protected RaPoolConfigurationWriteHandler() {
super(); super();
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ public void execute(OperationContext context, ModelNode operation) throws Operat
protected abstract ModelNode invokeCommandOn(Pool pool) throws Exception; protected abstract ModelNode invokeCommandOn(Pool pool) throws Exception;


public static class FlushIdleConnectionInPool extends PoolOperations { public static class FlushIdleConnectionInPool extends PoolOperations {
public static FlushIdleConnectionInPool DS_INSTANCE = new FlushIdleConnectionInPool(new DsPoolMatcher()); public static final FlushIdleConnectionInPool DS_INSTANCE = new FlushIdleConnectionInPool(new DsPoolMatcher());
public static FlushIdleConnectionInPool RA_INSTANCE = new FlushIdleConnectionInPool(new RaPoolMatcher()); public static final FlushIdleConnectionInPool RA_INSTANCE = new FlushIdleConnectionInPool(new RaPoolMatcher());


protected FlushIdleConnectionInPool(PoolMatcher matcher) { protected FlushIdleConnectionInPool(PoolMatcher matcher) {
super(matcher); super(matcher);
Expand All @@ -115,8 +115,8 @@ protected ModelNode invokeCommandOn(Pool pool) {
} }


public static class FlushAllConnectionInPool extends PoolOperations { public static class FlushAllConnectionInPool extends PoolOperations {
public static FlushAllConnectionInPool DS_INSTANCE = new FlushAllConnectionInPool(new DsPoolMatcher()); public static final FlushAllConnectionInPool DS_INSTANCE = new FlushAllConnectionInPool(new DsPoolMatcher());
public static FlushAllConnectionInPool RA_INSTANCE = new FlushAllConnectionInPool(new RaPoolMatcher()); public static final FlushAllConnectionInPool RA_INSTANCE = new FlushAllConnectionInPool(new RaPoolMatcher());


protected FlushAllConnectionInPool(PoolMatcher matcher) { protected FlushAllConnectionInPool(PoolMatcher matcher) {
super(matcher); super(matcher);
Expand All @@ -131,8 +131,8 @@ protected ModelNode invokeCommandOn(Pool pool) {
} }


public static class TestConnectionInPool extends PoolOperations { public static class TestConnectionInPool extends PoolOperations {
public static TestConnectionInPool DS_INSTANCE = new TestConnectionInPool(new DsPoolMatcher()); public static final TestConnectionInPool DS_INSTANCE = new TestConnectionInPool(new DsPoolMatcher());
public static TestConnectionInPool RA_INSTANCE = new TestConnectionInPool(new RaPoolMatcher()); public static final TestConnectionInPool RA_INSTANCE = new TestConnectionInPool(new RaPoolMatcher());


protected TestConnectionInPool(PoolMatcher matcher) { protected TestConnectionInPool(PoolMatcher matcher) {
super(matcher); super(matcher);
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
*/ */
public class JcaExtension implements Extension { public class JcaExtension implements Extension {


public static String SUBSYSTEM_NAME = "jca"; public static final String SUBSYSTEM_NAME = "jca";


private static final int MANAGEMENT_API_MAJOR_VERSION = 1; private static final int MANAGEMENT_API_MAJOR_VERSION = 1;
private static final int MANAGEMENT_API_MINOR_VERSION = 2; private static final int MANAGEMENT_API_MINOR_VERSION = 2;
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CaseParameterCorrector {
/** /**
* Converts the string value of the {@code newValue} into uppercase only if the value is not already in uppercase. * Converts the string value of the {@code newValue} into uppercase only if the value is not already in uppercase.
*/ */
public static ParameterCorrector TO_UPPER = new ParameterCorrector() { public static final ParameterCorrector TO_UPPER = new ParameterCorrector() {
@Override @Override
public ModelNode correct(final ModelNode newValue, final ModelNode currentValue) { public ModelNode correct(final ModelNode newValue, final ModelNode currentValue) {
if (newValue.getType() == ModelType.UNDEFINED) { if (newValue.getType() == ModelType.UNDEFINED) {
Expand All @@ -59,7 +59,7 @@ public ModelNode correct(final ModelNode newValue, final ModelNode currentValue)
/** /**
* Converts the string value of the {@code newValue} into lowercase only if the value is not already in lowercase. * Converts the string value of the {@code newValue} into lowercase only if the value is not already in lowercase.
*/ */
public static ParameterCorrector TO_LOWER = new ParameterCorrector() { public static final ParameterCorrector TO_LOWER = new ParameterCorrector() {
@Override @Override
public ModelNode correct(final ModelNode newValue, final ModelNode currentValue) { public ModelNode correct(final ModelNode newValue, final ModelNode currentValue) {
if (newValue.getType() == ModelType.UNDEFINED) { if (newValue.getType() == ModelType.UNDEFINED) {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ protected ModelNode convertParameterElementExpressions(ModelNode parameterElemen
return isAllowExpression() ? convertStringExpression(parameterElementValue) : parameterElementValue; return isAllowExpression() ? convertStringExpression(parameterElementValue) : parameterElementValue;
} }


public static ParameterCorrector LIST_TO_MAP_CORRECTOR = new ParameterCorrector() { public static final ParameterCorrector LIST_TO_MAP_CORRECTOR = new ParameterCorrector() {
public ModelNode correct(ModelNode newValue, ModelNode currentValue) { public ModelNode correct(ModelNode newValue, ModelNode currentValue) {
if (newValue.isDefined()) { if (newValue.isDefined()) {
if (newValue.getType() == ModelType.LIST) { if (newValue.getType() == ModelType.LIST) {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/ */
public class PropagatingCorrector implements ParameterCorrector { public class PropagatingCorrector implements ParameterCorrector {


public static PropagatingCorrector INSTANCE = new PropagatingCorrector(); public static final PropagatingCorrector INSTANCE = new PropagatingCorrector();


/* (non-Javadoc) /* (non-Javadoc)
* @see org.jboss.as.controller.AttributeValueCorrector#correct(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode) * @see org.jboss.as.controller.AttributeValueCorrector#correct(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class OperationAttachments { public class OperationAttachments {




public static OperationContext.AttachmentKey<List<DomainOperationTransformer>> SLAVE_SERVER_OPERATION_TRANSFORMERS = OperationContext.AttachmentKey.create(List.class); public static final OperationContext.AttachmentKey<List<DomainOperationTransformer>> SLAVE_SERVER_OPERATION_TRANSFORMERS = OperationContext.AttachmentKey.create(List.class);




private OperationAttachments() { private OperationAttachments() {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
*/ */
public class ValidateOperationHandler implements OperationStepHandler { public class ValidateOperationHandler implements OperationStepHandler {


public static ValidateOperationHandler INSTANCE = new ValidateOperationHandler(false); public static final ValidateOperationHandler INSTANCE = new ValidateOperationHandler(false);
public static ValidateOperationHandler SLAVE_HC_INSTANCE = new ValidateOperationHandler(true); public static final ValidateOperationHandler SLAVE_HC_INSTANCE = new ValidateOperationHandler(true);


private static final SimpleAttributeDefinition VALUE = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.VALUE, ModelType.OBJECT) private static final SimpleAttributeDefinition VALUE = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.VALUE, ModelType.OBJECT)
.setAllowNull(false) .setAllowNull(false)
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -423,17 +423,17 @@ public boolean isInherited() {


} }


static OperationTransformer FORWARD_TRANSFORMER = new OperationTransformer() { static final OperationTransformer FORWARD_TRANSFORMER = new OperationTransformer() {


@Override @Override
public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) { public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) {
return new TransformedOperation(operation, OperationResultTransformer.ORIGINAL_RESULT); return new TransformedOperation(operation, OperationResultTransformer.ORIGINAL_RESULT);
} }
}; };


static OperationTransformer DISCARD_TRANSFORMER = OperationTransformer.DISCARD; static final OperationTransformer DISCARD_TRANSFORMER = OperationTransformer.DISCARD;


public static OperationTransformerEntry DISCARD = new OperationTransformerEntry(DISCARD_TRANSFORMER, true); public static final OperationTransformerEntry DISCARD = new OperationTransformerEntry(DISCARD_TRANSFORMER, true);
public static OperationTransformerEntry FORWARD = new OperationTransformerEntry(FORWARD_TRANSFORMER, false); public static final OperationTransformerEntry FORWARD = new OperationTransformerEntry(FORWARD_TRANSFORMER, false);


} }
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
public class PlaceholderResource implements Resource { public class PlaceholderResource implements Resource {


private static final ModelNode MODEL = new ModelNode(); private static final ModelNode MODEL = new ModelNode();
public static PlaceholderResource INSTANCE = new PlaceholderResource(); public static final PlaceholderResource INSTANCE = new PlaceholderResource();


static { static {
MODEL.protect(); MODEL.protect();
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static Resource create() {


public static class Tools { public static class Tools {


public static ResourceFilter ALL_BUT_RUNTIME_AND_PROXIES_FILTER = new ResourceFilter() { public static final ResourceFilter ALL_BUT_RUNTIME_AND_PROXIES_FILTER = new ResourceFilter() {
@Override @Override
public boolean accepts(PathAddress address, Resource resource) { public boolean accepts(PathAddress address, Resource resource) {
if(resource.isRuntime() || resource.isProxy()) { if(resource.isRuntime() || resource.isProxy()) {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
*/ */
public class ServerOperationResolver { public class ServerOperationResolver {


public static AttachmentKey<Set<ModelNode>> DONT_PROPAGATE_TO_SERVERS_ATTACHMENT = AttachmentKey.create(Set.class); public static final AttachmentKey<Set<ModelNode>> DONT_PROPAGATE_TO_SERVERS_ATTACHMENT = AttachmentKey.create(Set.class);


private enum DomainKey { private enum DomainKey {


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
/** /**
* @author <a href="kabir.khan@jboss.com">Kabir Khan</a> * @author <a href="kabir.khan@jboss.com">Kabir Khan</a>
*/ */
public class ProfileResourceDefinition extends SimpleResourceDefinition { class ProfileResourceDefinition extends SimpleResourceDefinition {


private static OperationDefinition DESCRIBE = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.DESCRIBE, DomainResolver.getResolver(PROFILE, false)) private static OperationDefinition DESCRIBE = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.DESCRIBE, DomainResolver.getResolver(PROFILE, false))
.setReplyType(ModelType.LIST) .setReplyType(ModelType.LIST)
Expand All @@ -52,7 +52,7 @@ public class ProfileResourceDefinition extends SimpleResourceDefinition {
.build(); .build();


//This attribute exists in 7.1.2 and 7.1.3 but was always nillable //This attribute exists in 7.1.2 and 7.1.3 but was always nillable
public static SimpleAttributeDefinition NAME = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.NAME, ModelType.STRING) private static final SimpleAttributeDefinition NAME = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.NAME, ModelType.STRING)
.setValidator(new StringLengthValidator(1, true)) .setValidator(new StringLengthValidator(1, true))
.setAllowNull(true) .setAllowNull(true)
.setResourceOnly() .setResourceOnly()
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ class ManagedServer {
/** /**
* Prefix applied to a server's name to create it's process name. * Prefix applied to a server's name to create it's process name.
*/ */
public static String SERVER_PROCESS_NAME_PREFIX = "Server:"; private static final String SERVER_PROCESS_NAME_PREFIX = "Server:";


public static String getServerProcessName(String serverName) { static String getServerProcessName(String serverName) {
return SERVER_PROCESS_NAME_PREFIX + serverName; return SERVER_PROCESS_NAME_PREFIX + serverName;
} }


public static boolean isServerProcess(String serverProcessName) { static boolean isServerProcess(String serverProcessName) {
return serverProcessName.startsWith(SERVER_PROCESS_NAME_PREFIX); return serverProcessName.startsWith(SERVER_PROCESS_NAME_PREFIX);
} }


public static String getServerName(String serverProcessName) { static String getServerName(String serverProcessName) {
return serverProcessName.substring(SERVER_PROCESS_NAME_PREFIX.length()); return serverProcessName.substring(SERVER_PROCESS_NAME_PREFIX.length());
} }


Expand Down Expand Up @@ -612,7 +612,7 @@ private static InternalState nextState(final InternalState state, final Internal
/** /**
* The managed server boot configuration. * The managed server boot configuration.
*/ */
public interface ManagedServerBootConfiguration { interface ManagedServerBootConfiguration {
/** /**
* Get the server launch environment. * Get the server launch environment.
* *
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
/** /**
* @author <a href="mailto:tomaz.cerar@redhat.com">Tomaz Cerar</a> (c) 2012 Red Hat Inc. * @author <a href="mailto:tomaz.cerar@redhat.com">Tomaz Cerar</a> (c) 2012 Red Hat Inc.
*/ */
public class CoreServiceResourceDefinition extends SimpleResourceDefinition { class CoreServiceResourceDefinition extends SimpleResourceDefinition {
public static CoreServiceResourceDefinition INSTANCE = new CoreServiceResourceDefinition();
static final CoreServiceResourceDefinition INSTANCE = new CoreServiceResourceDefinition();


private CoreServiceResourceDefinition() { private CoreServiceResourceDefinition() {
super(PathElement.pathElement(CORE_SERVICE, MANAGEMENT), HostModelUtil.getResourceDescriptionResolver("core", "management")); super(PathElement.pathElement(CORE_SERVICE, MANAGEMENT), HostModelUtil.getResourceDescriptionResolver("core", "management"));
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
* @author Stuart Douglas * @author Stuart Douglas
*/ */
public class JacORBDependencyProcessor implements DeploymentUnitProcessor { public class JacORBDependencyProcessor implements DeploymentUnitProcessor {
public static ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api"); public static final ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api");
public static ModuleIdentifier JAVAX_RMI_API_ID = ModuleIdentifier.create("javax.rmi.api"); public static final ModuleIdentifier JAVAX_RMI_API_ID = ModuleIdentifier.create("javax.rmi.api");
public static ModuleIdentifier JACORB_ID = ModuleIdentifier.create("org.jacorb"); public static final ModuleIdentifier JACORB_ID = ModuleIdentifier.create("org.jacorb");




@Override @Override
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -41,24 +41,24 @@
*/ */
public class JaxrsDependencyProcessor implements DeploymentUnitProcessor { public class JaxrsDependencyProcessor implements DeploymentUnitProcessor {


public static ModuleIdentifier RESTEASY_ATOM = ModuleIdentifier.create("org.jboss.resteasy.resteasy-atom-provider"); public static final ModuleIdentifier RESTEASY_ATOM = ModuleIdentifier.create("org.jboss.resteasy.resteasy-atom-provider");
public static ModuleIdentifier RESTEASY_CDI = ModuleIdentifier.create("org.jboss.resteasy.resteasy-cdi"); public static final ModuleIdentifier RESTEASY_CDI = ModuleIdentifier.create("org.jboss.resteasy.resteasy-cdi");
public static ModuleIdentifier RESTEASY_HIBERNATE_VALIDATOR = ModuleIdentifier.create("org.jboss.resteasy.resteasy-hibernatevalidator-provider"); public static final ModuleIdentifier RESTEASY_HIBERNATE_VALIDATOR = ModuleIdentifier.create("org.jboss.resteasy.resteasy-hibernatevalidator-provider");
public static ModuleIdentifier RESTEASY_JAXRS = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jaxrs"); public static final ModuleIdentifier RESTEASY_JAXRS = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jaxrs");
public static ModuleIdentifier RESTEASY_JAXB = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jaxb-provider"); public static final ModuleIdentifier RESTEASY_JAXB = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jaxb-provider");
public static ModuleIdentifier RESTEASY_JACKSON = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jackson-provider"); public static final ModuleIdentifier RESTEASY_JACKSON = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jackson-provider");
public static ModuleIdentifier RESTEASY_JETTISON = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jettison-provider"); public static final ModuleIdentifier RESTEASY_JETTISON = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jettison-provider");
public static ModuleIdentifier RESTEASY_JSAPI = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jsapi"); public static final ModuleIdentifier RESTEASY_JSAPI = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jsapi");
public static ModuleIdentifier RESTEASY_MULTIPART = ModuleIdentifier.create("org.jboss.resteasy.resteasy-multipart-provider"); public static final ModuleIdentifier RESTEASY_MULTIPART = ModuleIdentifier.create("org.jboss.resteasy.resteasy-multipart-provider");
public static ModuleIdentifier RESTEASY_YAML = ModuleIdentifier.create("org.jboss.resteasy.resteasy-yaml-provider"); public static final ModuleIdentifier RESTEASY_YAML = ModuleIdentifier.create("org.jboss.resteasy.resteasy-yaml-provider");
public static ModuleIdentifier JAXB_API = ModuleIdentifier.create("javax.xml.bind.api"); public static final ModuleIdentifier JAXB_API = ModuleIdentifier.create("javax.xml.bind.api");


/** /**
* We include this so that jackson annotations will be available, otherwise they will be ignored which leads * We include this so that jackson annotations will be available, otherwise they will be ignored which leads
* to confusing behaviour. * to confusing behaviour.
* *
*/ */
public static ModuleIdentifier JACKSON_CORE_ASL = ModuleIdentifier.create("org.codehaus.jackson.jackson-core-asl"); public static final ModuleIdentifier JACKSON_CORE_ASL = ModuleIdentifier.create("org.codehaus.jackson.jackson-core-asl");


public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException { public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit(); final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/ */
public class Filters { public class Filters {


public static VirtualFileFilter TRUE = MatchAllVirtualFileFilter.INSTANCE; public static final VirtualFileFilter TRUE = MatchAllVirtualFileFilter.INSTANCE;


public static VirtualFileFilter not(final VirtualFileFilter filter) { public static VirtualFileFilter not(final VirtualFileFilter filter) {
return new VirtualFileFilter() { return new VirtualFileFilter() {
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class NonTxEmCloser {
* Each thread will have its own list of SB invocations in progress. * Each thread will have its own list of SB invocations in progress.
* Key = scoped persistence unit name * Key = scoped persistence unit name
*/ */
public static ThreadLocalStack<Map<String, EntityManager>> nonTxStack = new ThreadLocalStack<Map<String, EntityManager>>(); public static final ThreadLocalStack<Map<String, EntityManager>> nonTxStack = new ThreadLocalStack<Map<String, EntityManager>>();


/** /**
* entered new session bean invocation, start new collection for tracking transactional entity managers created * entered new session bean invocation, start new collection for tracking transactional entity managers created
Expand Down
Loading

0 comments on commit a823dea

Please sign in to comment.