Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[AS7-6781] Make non-final constants final; reduce visibility in some …

…cases
  • Loading branch information...
commit a823dea8c3c239e406ff7bad619f4fa19ba5d771 1 parent 396713a
@bstansberry bstansberry authored kabir committed
Showing with 144 additions and 151 deletions.
  1. +2 −2 appclient/src/main/java/org/jboss/as/appclient/deployment/ApplicationClientDependencyProcessor.java
  2. +1 −1  cli/src/main/java/org/jboss/as/cli/parsing/arguments/ArgumentValueState.java
  3. +1 −1  connector/src/main/java/org/jboss/as/connector/dynamicresource/operations/ClearStatisticsHandler.java
  4. +1 −1  connector/src/main/java/org/jboss/as/connector/subsystems/common/pool/Constants.java
  5. +3 −3 connector/src/main/java/org/jboss/as/connector/subsystems/common/pool/PoolConfigurationRWHandler.java
  6. +6 −6 connector/src/main/java/org/jboss/as/connector/subsystems/common/pool/PoolOperations.java
  7. +1 −1  connector/src/main/java/org/jboss/as/connector/subsystems/jca/JcaExtension.java
  8. +2 −2 controller/src/main/java/org/jboss/as/controller/CaseParameterCorrector.java
  9. +1 −1  controller/src/main/java/org/jboss/as/controller/MapAttributeDefinition.java
  10. +1 −1  controller/src/main/java/org/jboss/as/controller/PropagatingCorrector.java
  11. +1 −1  controller/src/main/java/org/jboss/as/controller/operations/OperationAttachments.java
  12. +2 −2 controller/src/main/java/org/jboss/as/controller/operations/common/ValidateOperationHandler.java
  13. +4 −4 controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java
  14. +1 −1  controller/src/main/java/org/jboss/as/controller/registry/PlaceholderResource.java
  15. +1 −1  controller/src/main/java/org/jboss/as/controller/registry/Resource.java
  16. +1 −1  ...ontroller/src/main/java/org/jboss/as/domain/controller/operations/coordination/ServerOperationResolver.java
  17. +2 −2 host-controller/src/main/java/org/jboss/as/domain/controller/resources/ProfileResourceDefinition.java
  18. +5 −5 host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
  19. +3 −2 host-controller/src/main/java/org/jboss/as/host/controller/model/host/CoreServiceResourceDefinition.java
  20. +3 −3 jacorb/src/main/java/org/jboss/as/jacorb/deployment/JacORBDependencyProcessor.java
  21. +12 −12 jaxrs/src/main/java/org/jboss/as/jaxrs/deployment/JaxrsDependencyProcessor.java
  22. +1 −1  jdr/jboss-as-jdr/src/main/java/org/jboss/as/jdr/vfs/Filters.java
  23. +1 −1  jpa/core/src/main/java/org/jboss/as/jpa/container/NonTxEmCloser.java
  24. +1 −1  jpa/core/src/main/java/org/jboss/as/jpa/interceptor/SFSBPreCreateInterceptor.java
  25. +8 −8 logging/src/main/java/org/jboss/as/logging/HandlerOperations.java
  26. +5 −5 logging/src/main/java/org/jboss/as/logging/LoggerOperations.java
  27. +2 −1  mail/src/main/java/org/jboss/as/mail/extension/MailSessionDefinition.java
  28. +2 −2 messaging/src/main/java/org/jboss/as/messaging/AddressControlHandler.java
  29. +1 −4 messaging/src/main/java/org/jboss/as/messaging/BridgeDefinition.java
  30. +3 −3 messaging/src/main/java/org/jboss/as/messaging/DiscoveryGroupDefinition.java
  31. +1 −1  messaging/src/main/java/org/jboss/as/messaging/HornetQServerControlHandler.java
  32. +2 −5 messaging/src/main/java/org/jboss/as/messaging/QueueRemove.java
  33. +1 −1  messaging/src/main/java/org/jboss/as/messaging/TransportParamDefinition.java
  34. +1 −1  messaging/src/main/java/org/jboss/as/messaging/jms/ConnectionFactoryType.java
  35. +1 −1  messaging/src/main/java/org/jboss/as/messaging/jms/JMSServerControlHandler.java
  36. +2 −5 messaging/src/main/java/org/jboss/as/messaging/jms/bridge/JMSBridgeRemove.java
  37. +1 −1  osgi/service/src/main/java/org/jboss/as/osgi/management/ActivateOperationHandler.java
  38. +1 −1  osgi/service/src/main/java/org/jboss/as/osgi/management/OperationAssociation.java
  39. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/BufferPoolMXBeanAttributeHandler.java
  40. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/ClassLoadingMXBeanAttributeHandler.java
  41. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/CompilationMXBeanAttributeHandler.java
  42. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/GarbageCollectorMXBeanAttributeHandler.java
  43. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/MemoryMXBeanAttributeHandler.java
  44. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/MemoryManagerMXBeanAttributeHandler.java
  45. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/MemoryPoolMXBeanAttributeHandler.java
  46. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/OperatingSystemMXBeanAttributeHandler.java
  47. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/PlatformLoggingMXBeanAttributeHandler.java
  48. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/RuntimeMXBeanAttributeHandler.java
  49. +2 −2 platform-mbean/src/main/java/org/jboss/as/platform/mbean/ThreadMXBeanAttributeHandler.java
  50. +1 −1  protocol/src/main/java/org/jboss/as/protocol/ProtocolChannelClient.java
  51. +22 −22 server/src/main/java/org/jboss/as/server/controller/resources/DeploymentAttributes.java
  52. +2 −2 server/src/main/java/org/jboss/as/server/controller/resources/VaultResourceDefinition.java
  53. +1 −1  server/src/main/java/org/jboss/as/server/mgmt/domain/ServerToHostRemoteFileRequestAndHandler.java
  54. +1 −1  server/src/main/java/org/jboss/as/server/moduleservice/ExternalModuleService.java
  55. +1 −1  server/src/main/java/org/jboss/as/server/operations/NativeManagementWriteAttributeHandler.java
  56. +1 −1  server/src/main/java/org/jboss/as/server/operations/RootResourceHack.java
  57. +1 −1  server/src/main/java/org/jboss/as/server/services/net/SpecifiedInterfaceAddHandler.java
  58. +1 −1  server/src/main/java/org/jboss/as/server/services/net/SpecifiedInterfaceRemoveHandler.java
  59. +1 −1  threads/src/main/java/org/jboss/as/threads/ThreadsExtension.java
  60. +1 −1  weld/src/main/java/org/jboss/as/weld/services/ModuleGroupSingletonProvider.java
  61. +1 −1  weld/src/main/java/org/jboss/as/weld/services/TCCLSingletonService.java
View
4 appclient/src/main/java/org/jboss/as/appclient/deployment/ApplicationClientDependencyProcessor.java
@@ -49,8 +49,8 @@
*/
public class ApplicationClientDependencyProcessor implements DeploymentUnitProcessor {
- public static ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api");
- public static ModuleIdentifier XNIO = ModuleIdentifier.create("org.jboss.xnio");
+ public static final ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api");
+ public static final ModuleIdentifier XNIO = ModuleIdentifier.create("org.jboss.xnio");
public ApplicationClientDependencyProcessor() {
View
2  cli/src/main/java/org/jboss/as/cli/parsing/arguments/ArgumentValueState.java
@@ -36,7 +36,7 @@
public static final String ID = "ARG_VALUE";
- public static ArgumentValueState INSTANCE = new ArgumentValueState();
+ public static final ArgumentValueState INSTANCE = new ArgumentValueState();
public ArgumentValueState() {
super(ID);
View
2  connector/src/main/java/org/jboss/as/connector/dynamicresource/operations/ClearStatisticsHandler.java
@@ -44,7 +44,7 @@
*/
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();
private final List<StatisticsPlugin> stats;
View
2  connector/src/main/java/org/jboss/as/connector/subsystems/common/pool/Constants.java
@@ -80,7 +80,7 @@
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()))
.setXmlName(CommonPool.Tag.FLUSH_STRATEGY.getLocalName())
.setAllowNull(true)
View
6 connector/src/main/java/org/jboss/as/connector/subsystems/common/pool/PoolConfigurationRWHandler.java
@@ -68,7 +68,7 @@
// 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 PoolConfigurationReadHandler INSTANCE = new PoolConfigurationReadHandler();
+ public static final PoolConfigurationReadHandler INSTANCE = new PoolConfigurationReadHandler();
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
final String parameterName = operation.require(NAME).asString();
@@ -151,7 +151,7 @@ private void updatePoolConfigs(List<PoolConfiguration> poolConfigs, String param
}
public static class LocalAndXaDataSourcePoolConfigurationWriteHandler extends PoolConfigurationWriteHandler {
- public static LocalAndXaDataSourcePoolConfigurationWriteHandler INSTANCE = new LocalAndXaDataSourcePoolConfigurationWriteHandler();
+ public static final LocalAndXaDataSourcePoolConfigurationWriteHandler INSTANCE = new LocalAndXaDataSourcePoolConfigurationWriteHandler();
protected LocalAndXaDataSourcePoolConfigurationWriteHandler() {
super();
@@ -175,7 +175,7 @@ protected LocalAndXaDataSourcePoolConfigurationWriteHandler() {
}
public static class RaPoolConfigurationWriteHandler extends PoolConfigurationWriteHandler {
- public static RaPoolConfigurationWriteHandler INSTANCE = new RaPoolConfigurationWriteHandler();
+ public static final RaPoolConfigurationWriteHandler INSTANCE = new RaPoolConfigurationWriteHandler();
protected RaPoolConfigurationWriteHandler() {
super();
View
12 connector/src/main/java/org/jboss/as/connector/subsystems/common/pool/PoolOperations.java
@@ -99,8 +99,8 @@ public void execute(OperationContext context, ModelNode operation) throws Operat
protected abstract ModelNode invokeCommandOn(Pool pool) throws Exception;
public static class FlushIdleConnectionInPool extends PoolOperations {
- public static FlushIdleConnectionInPool DS_INSTANCE = new FlushIdleConnectionInPool(new DsPoolMatcher());
- public static FlushIdleConnectionInPool RA_INSTANCE = new FlushIdleConnectionInPool(new RaPoolMatcher());
+ public static final FlushIdleConnectionInPool DS_INSTANCE = new FlushIdleConnectionInPool(new DsPoolMatcher());
+ public static final FlushIdleConnectionInPool RA_INSTANCE = new FlushIdleConnectionInPool(new RaPoolMatcher());
protected FlushIdleConnectionInPool(PoolMatcher matcher) {
super(matcher);
@@ -115,8 +115,8 @@ protected ModelNode invokeCommandOn(Pool pool) {
}
public static class FlushAllConnectionInPool extends PoolOperations {
- public static FlushAllConnectionInPool DS_INSTANCE = new FlushAllConnectionInPool(new DsPoolMatcher());
- public static FlushAllConnectionInPool RA_INSTANCE = new FlushAllConnectionInPool(new RaPoolMatcher());
+ public static final FlushAllConnectionInPool DS_INSTANCE = new FlushAllConnectionInPool(new DsPoolMatcher());
+ public static final FlushAllConnectionInPool RA_INSTANCE = new FlushAllConnectionInPool(new RaPoolMatcher());
protected FlushAllConnectionInPool(PoolMatcher matcher) {
super(matcher);
@@ -131,8 +131,8 @@ protected ModelNode invokeCommandOn(Pool pool) {
}
public static class TestConnectionInPool extends PoolOperations {
- public static TestConnectionInPool DS_INSTANCE = new TestConnectionInPool(new DsPoolMatcher());
- public static TestConnectionInPool RA_INSTANCE = new TestConnectionInPool(new RaPoolMatcher());
+ public static final TestConnectionInPool DS_INSTANCE = new TestConnectionInPool(new DsPoolMatcher());
+ public static final TestConnectionInPool RA_INSTANCE = new TestConnectionInPool(new RaPoolMatcher());
protected TestConnectionInPool(PoolMatcher matcher) {
super(matcher);
View
2  connector/src/main/java/org/jboss/as/connector/subsystems/jca/JcaExtension.java
@@ -68,7 +68,7 @@
*/
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_MINOR_VERSION = 2;
View
4 controller/src/main/java/org/jboss/as/controller/CaseParameterCorrector.java
@@ -38,7 +38,7 @@
/**
* 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
public ModelNode correct(final ModelNode newValue, final ModelNode currentValue) {
if (newValue.getType() == ModelType.UNDEFINED) {
@@ -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.
*/
- public static ParameterCorrector TO_LOWER = new ParameterCorrector() {
+ public static final ParameterCorrector TO_LOWER = new ParameterCorrector() {
@Override
public ModelNode correct(final ModelNode newValue, final ModelNode currentValue) {
if (newValue.getType() == ModelType.UNDEFINED) {
View
2  controller/src/main/java/org/jboss/as/controller/MapAttributeDefinition.java
@@ -230,7 +230,7 @@ protected ModelNode convertParameterElementExpressions(ModelNode parameterElemen
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) {
if (newValue.isDefined()) {
if (newValue.getType() == ModelType.LIST) {
View
2  controller/src/main/java/org/jboss/as/controller/PropagatingCorrector.java
@@ -36,7 +36,7 @@
*/
public class PropagatingCorrector implements ParameterCorrector {
- public static PropagatingCorrector INSTANCE = new PropagatingCorrector();
+ public static final PropagatingCorrector INSTANCE = new PropagatingCorrector();
/* (non-Javadoc)
* @see org.jboss.as.controller.AttributeValueCorrector#correct(org.jboss.dmr.ModelNode, org.jboss.dmr.ModelNode)
View
2  controller/src/main/java/org/jboss/as/controller/operations/OperationAttachments.java
@@ -32,7 +32,7 @@
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() {
View
4 controller/src/main/java/org/jboss/as/controller/operations/common/ValidateOperationHandler.java
@@ -52,8 +52,8 @@
*/
public class ValidateOperationHandler implements OperationStepHandler {
- public static ValidateOperationHandler INSTANCE = new ValidateOperationHandler(false);
- public static ValidateOperationHandler SLAVE_HC_INSTANCE = new ValidateOperationHandler(true);
+ public static final ValidateOperationHandler INSTANCE = new ValidateOperationHandler(false);
+ public static final ValidateOperationHandler SLAVE_HC_INSTANCE = new ValidateOperationHandler(true);
private static final SimpleAttributeDefinition VALUE = new SimpleAttributeDefinitionBuilder(ModelDescriptionConstants.VALUE, ModelType.OBJECT)
.setAllowNull(false)
View
8 controller/src/main/java/org/jboss/as/controller/registry/OperationTransformerRegistry.java
@@ -423,7 +423,7 @@ public boolean isInherited() {
}
- static OperationTransformer FORWARD_TRANSFORMER = new OperationTransformer() {
+ static final OperationTransformer FORWARD_TRANSFORMER = new OperationTransformer() {
@Override
public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) {
@@ -431,9 +431,9 @@ public TransformedOperation transformOperation(TransformationContext context, Pa
}
};
- static OperationTransformer DISCARD_TRANSFORMER = OperationTransformer.DISCARD;
+ static final OperationTransformer DISCARD_TRANSFORMER = OperationTransformer.DISCARD;
- public static OperationTransformerEntry DISCARD = new OperationTransformerEntry(DISCARD_TRANSFORMER, true);
- public static OperationTransformerEntry FORWARD = new OperationTransformerEntry(FORWARD_TRANSFORMER, false);
+ public static final OperationTransformerEntry DISCARD = new OperationTransformerEntry(DISCARD_TRANSFORMER, true);
+ public static final OperationTransformerEntry FORWARD = new OperationTransformerEntry(FORWARD_TRANSFORMER, false);
}
View
2  controller/src/main/java/org/jboss/as/controller/registry/PlaceholderResource.java
@@ -41,7 +41,7 @@
public class PlaceholderResource implements Resource {
private static final ModelNode MODEL = new ModelNode();
- public static PlaceholderResource INSTANCE = new PlaceholderResource();
+ public static final PlaceholderResource INSTANCE = new PlaceholderResource();
static {
MODEL.protect();
View
2  controller/src/main/java/org/jboss/as/controller/registry/Resource.java
@@ -186,7 +186,7 @@ public static Resource create() {
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
public boolean accepts(PathAddress address, Resource resource) {
if(resource.isRuntime() || resource.isProxy()) {
View
2  ...roller/src/main/java/org/jboss/as/domain/controller/operations/coordination/ServerOperationResolver.java
@@ -91,7 +91,7 @@
*/
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 {
View
4 host-controller/src/main/java/org/jboss/as/domain/controller/resources/ProfileResourceDefinition.java
@@ -42,7 +42,7 @@
/**
* @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))
.setReplyType(ModelType.LIST)
@@ -52,7 +52,7 @@
.build();
//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))
.setAllowNull(true)
.setResourceOnly()
View
10 host-controller/src/main/java/org/jboss/as/host/controller/ManagedServer.java
@@ -91,17 +91,17 @@
/**
* 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;
}
- public static boolean isServerProcess(String serverProcessName) {
+ static boolean isServerProcess(String serverProcessName) {
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());
}
@@ -612,7 +612,7 @@ private static InternalState nextState(final InternalState state, final Internal
/**
* The managed server boot configuration.
*/
- public interface ManagedServerBootConfiguration {
+ interface ManagedServerBootConfiguration {
/**
* Get the server launch environment.
*
View
5 host-controller/src/main/java/org/jboss/as/host/controller/model/host/CoreServiceResourceDefinition.java
@@ -33,8 +33,9 @@
/**
* @author <a href="mailto:tomaz.cerar@redhat.com">Tomaz Cerar</a> (c) 2012 Red Hat Inc.
*/
-public class CoreServiceResourceDefinition extends SimpleResourceDefinition {
- public static CoreServiceResourceDefinition INSTANCE = new CoreServiceResourceDefinition();
+class CoreServiceResourceDefinition extends SimpleResourceDefinition {
+
+ static final CoreServiceResourceDefinition INSTANCE = new CoreServiceResourceDefinition();
private CoreServiceResourceDefinition() {
super(PathElement.pathElement(CORE_SERVICE, MANAGEMENT), HostModelUtil.getResourceDescriptionResolver("core", "management"));
View
6 jacorb/src/main/java/org/jboss/as/jacorb/deployment/JacORBDependencyProcessor.java
@@ -36,9 +36,9 @@
* @author Stuart Douglas
*/
public class JacORBDependencyProcessor implements DeploymentUnitProcessor {
- public static ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api");
- public static ModuleIdentifier JAVAX_RMI_API_ID = ModuleIdentifier.create("javax.rmi.api");
- public static ModuleIdentifier JACORB_ID = ModuleIdentifier.create("org.jacorb");
+ public static final ModuleIdentifier CORBA_ID = ModuleIdentifier.create("org.omg.api");
+ public static final ModuleIdentifier JAVAX_RMI_API_ID = ModuleIdentifier.create("javax.rmi.api");
+ public static final ModuleIdentifier JACORB_ID = ModuleIdentifier.create("org.jacorb");
@Override
View
24 jaxrs/src/main/java/org/jboss/as/jaxrs/deployment/JaxrsDependencyProcessor.java
@@ -41,24 +41,24 @@
*/
public class JaxrsDependencyProcessor implements DeploymentUnitProcessor {
- public static 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 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 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 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 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 ModuleIdentifier JAXB_API = ModuleIdentifier.create("javax.xml.bind.api");
+ public static final ModuleIdentifier RESTEASY_ATOM = ModuleIdentifier.create("org.jboss.resteasy.resteasy-atom-provider");
+ public static final ModuleIdentifier RESTEASY_CDI = ModuleIdentifier.create("org.jboss.resteasy.resteasy-cdi");
+ public static final ModuleIdentifier RESTEASY_HIBERNATE_VALIDATOR = ModuleIdentifier.create("org.jboss.resteasy.resteasy-hibernatevalidator-provider");
+ public static final ModuleIdentifier RESTEASY_JAXRS = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jaxrs");
+ public static final ModuleIdentifier RESTEASY_JAXB = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jaxb-provider");
+ public static final ModuleIdentifier RESTEASY_JACKSON = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jackson-provider");
+ public static final ModuleIdentifier RESTEASY_JETTISON = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jettison-provider");
+ public static final ModuleIdentifier RESTEASY_JSAPI = ModuleIdentifier.create("org.jboss.resteasy.resteasy-jsapi");
+ public static final ModuleIdentifier RESTEASY_MULTIPART = ModuleIdentifier.create("org.jboss.resteasy.resteasy-multipart-provider");
+ public static final ModuleIdentifier RESTEASY_YAML = ModuleIdentifier.create("org.jboss.resteasy.resteasy-yaml-provider");
+ 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
* 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 {
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
View
2  jdr/jboss-as-jdr/src/main/java/org/jboss/as/jdr/vfs/Filters.java
@@ -37,7 +37,7 @@
*/
public class Filters {
- public static VirtualFileFilter TRUE = MatchAllVirtualFileFilter.INSTANCE;
+ public static final VirtualFileFilter TRUE = MatchAllVirtualFileFilter.INSTANCE;
public static VirtualFileFilter not(final VirtualFileFilter filter) {
return new VirtualFileFilter() {
View
2  jpa/core/src/main/java/org/jboss/as/jpa/container/NonTxEmCloser.java
@@ -39,7 +39,7 @@
* Each thread will have its own list of SB invocations in progress.
* 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
View
2  jpa/core/src/main/java/org/jboss/as/jpa/interceptor/SFSBPreCreateInterceptor.java
@@ -36,7 +36,7 @@
*/
public class SFSBPreCreateInterceptor implements Interceptor {
- public static InterceptorFactory FACTORY = new ImmediateInterceptorFactory(new SFSBPreCreateInterceptor());
+ public static final InterceptorFactory FACTORY = new ImmediateInterceptorFactory(new SFSBPreCreateInterceptor());
@Override
public Object processInvocation(InterceptorContext interceptorContext) throws Exception {
View
16 logging/src/main/java/org/jboss/as/logging/HandlerOperations.java
@@ -280,7 +280,7 @@ protected HandlerConfiguration createHandlerConfiguration(final String className
/**
* A default log handler write attribute step handler.
*/
- public static class LogHandlerWriteAttributeHandler extends LoggingOperations.LoggingWriteAttributeHandler {
+ static class LogHandlerWriteAttributeHandler extends LoggingOperations.LoggingWriteAttributeHandler {
protected LogHandlerWriteAttributeHandler(final AttributeDefinition... attributes) {
super(attributes);
@@ -361,12 +361,12 @@ protected void finishModelStage(final OperationContext context, final ModelNode
/**
* A step handler to remove a handler
*/
- public static OperationStepHandler CHANGE_LEVEL = new HandlerUpdateOperationStepHandler(LEVEL);
+ static final OperationStepHandler CHANGE_LEVEL = new HandlerUpdateOperationStepHandler(LEVEL);
/**
* A step handler to remove a handler
*/
- public static OperationStepHandler REMOVE_HANDLER = new LoggingOperations.LoggingRemoveOperationStepHandler() {
+ static final OperationStepHandler REMOVE_HANDLER = new LoggingOperations.LoggingRemoveOperationStepHandler() {
@Override
public void performRemove(final OperationContext context, final ModelNode operation, final LogContextConfiguration logContextConfiguration, final String name, final ModelNode model) throws OperationFailedException {
@@ -394,7 +394,7 @@ public void performRuntime(final OperationContext context, final ModelNode opera
/**
* The handler for adding a subhandler to an {@link org.jboss.logmanager.handlers.AsyncHandler}.
*/
- public static final OperationStepHandler ADD_SUBHANDLER = new HandlerUpdateOperationStepHandler() {
+ static final OperationStepHandler ADD_SUBHANDLER = new HandlerUpdateOperationStepHandler() {
@Override
public void updateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
HANDLER_NAME.validateAndSet(operation, model);
@@ -418,7 +418,7 @@ public void performRuntime(final OperationContext context, final HandlerConfigur
/**
* The handler for removing a subhandler to an {@link org.jboss.logmanager.handlers.AsyncHandler}.
*/
- public static final OperationStepHandler REMOVE_SUBHANDLER = new HandlerUpdateOperationStepHandler() {
+ static final OperationStepHandler REMOVE_SUBHANDLER = new HandlerUpdateOperationStepHandler() {
@Override
public void updateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
HANDLER_NAME.validateAndSet(operation, model);
@@ -448,9 +448,9 @@ public void performRuntime(final OperationContext context, final HandlerConfigur
/**
* Changes the file for a file handler.
*/
- public static OperationStepHandler CHANGE_FILE = new HandlerUpdateOperationStepHandler(FILE);
+ static final OperationStepHandler CHANGE_FILE = new HandlerUpdateOperationStepHandler(FILE);
- public static LoggingOperations.LoggingUpdateOperationStepHandler ENABLE_HANDLER = new LoggingOperations.LoggingUpdateOperationStepHandler() {
+ static final LoggingOperations.LoggingUpdateOperationStepHandler ENABLE_HANDLER = new LoggingOperations.LoggingUpdateOperationStepHandler() {
@Override
public void updateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
// Set the enable attribute to true
@@ -463,7 +463,7 @@ public void performRuntime(final OperationContext context, final ModelNode opera
}
};
- public static LoggingOperations.LoggingUpdateOperationStepHandler DISABLE_HANDLER = new LoggingOperations.LoggingUpdateOperationStepHandler() {
+ static final LoggingOperations.LoggingUpdateOperationStepHandler DISABLE_HANDLER = new LoggingOperations.LoggingUpdateOperationStepHandler() {
@Override
public void updateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
// Set the enable attribute to false
View
10 logging/src/main/java/org/jboss/as/logging/LoggerOperations.java
@@ -129,7 +129,7 @@ public void performRuntime(final OperationContext context, final ModelNode opera
/**
* A default log handler write attribute step handler.
*/
- public static class LoggerWriteAttributeHandler extends LoggingOperations.LoggingWriteAttributeHandler {
+ static class LoggerWriteAttributeHandler extends LoggingOperations.LoggingWriteAttributeHandler {
protected LoggerWriteAttributeHandler(final AttributeDefinition[] attributes) {
super(attributes);
@@ -173,7 +173,7 @@ protected void finishModelStage(final OperationContext context, final ModelNode
/**
* A step handler to remove a logger
*/
- static OperationStepHandler REMOVE_LOGGER = new LoggingOperations.LoggingRemoveOperationStepHandler() {
+ static final OperationStepHandler REMOVE_LOGGER = new LoggingOperations.LoggingRemoveOperationStepHandler() {
@Override
public void performRemove(final OperationContext context, final ModelNode operation, final LogContextConfiguration logContextConfiguration, final String name, final ModelNode model) throws OperationFailedException {
@@ -195,7 +195,7 @@ public void performRuntime(final OperationContext context, final ModelNode opera
/**
* A step handler to add a handler.
*/
- public static OperationStepHandler ADD_HANDLER = new LoggerUpdateOperationStepHandler() {
+ static final OperationStepHandler ADD_HANDLER = new LoggerUpdateOperationStepHandler() {
@Override
public void updateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
@@ -219,7 +219,7 @@ public void performRuntime(final OperationContext context, final ModelNode opera
/**
* A step handler to remove a handler.
*/
- public static OperationStepHandler REMOVE_HANDLER = new LoggerUpdateOperationStepHandler() {
+ static final OperationStepHandler REMOVE_HANDLER = new LoggerUpdateOperationStepHandler() {
@Override
public void updateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
@@ -250,7 +250,7 @@ public void performRuntime(final OperationContext context, final ModelNode opera
/**
* A step handler to remove a handler.
*/
- public static OperationStepHandler CHANGE_LEVEL = new LoggerUpdateOperationStepHandler() {
+ static final OperationStepHandler CHANGE_LEVEL = new LoggerUpdateOperationStepHandler() {
@Override
public void updateModel(final ModelNode operation, final ModelNode model) throws OperationFailedException {
View
3  mail/src/main/java/org/jboss/as/mail/extension/MailSessionDefinition.java
@@ -43,7 +43,8 @@
* @created 19.12.11 21:04
*/
class MailSessionDefinition extends SimpleResourceDefinition {
- public static MailSessionDefinition INSTANCE = new MailSessionDefinition();
+
+ static final MailSessionDefinition INSTANCE = new MailSessionDefinition();
private MailSessionDefinition() {
super(MailExtension.MAIL_SESSION_PATH,
View
4 messaging/src/main/java/org/jboss/as/messaging/AddressControlHandler.java
@@ -52,9 +52,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class AddressControlHandler extends AbstractRuntimeOnlyHandler {
+class AddressControlHandler extends AbstractRuntimeOnlyHandler {
- public static AddressControlHandler INSTANCE = new AddressControlHandler();
+ static final AddressControlHandler INSTANCE = new AddressControlHandler();
private AddressControlHandler() {
}
View
5 messaging/src/main/java/org/jboss/as/messaging/BridgeDefinition.java
@@ -23,8 +23,6 @@
package org.jboss.as.messaging;
import static org.jboss.as.controller.SimpleAttributeDefinitionBuilder.create;
-import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.START;
-import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.STOP;
import static org.jboss.as.messaging.CommonAttributes.BRIDGE_CONFIRMATION_WINDOW_SIZE;
import static org.jboss.as.messaging.CommonAttributes.CONNECTOR_REF_STRING;
import static org.jboss.as.messaging.CommonAttributes.HA;
@@ -51,7 +49,6 @@
*/
public class BridgeDefinition extends SimpleResourceDefinition {
- public static final String[] OPERATIONS = {START, STOP};
public static final PathElement PATH = PathElement.pathElement(CommonAttributes.BRIDGE);
private final boolean registerRuntimeOnly;
@@ -65,7 +62,7 @@
.setRestartAllServices()
.build();
- public static SimpleAttributeDefinition DISCOVERY_GROUP_NAME = create(CommonAttributes.DISCOVERY_GROUP_NAME, STRING)
+ public static final SimpleAttributeDefinition DISCOVERY_GROUP_NAME = create(CommonAttributes.DISCOVERY_GROUP_NAME, STRING)
.setAllowNull(true)
.setAlternatives(STATIC_CONNECTORS)
.setAttributeMarshaller(AttributeMarshallers.DISCOVERY_GROUP_MARSHALLER)
View
6 messaging/src/main/java/org/jboss/as/messaging/DiscoveryGroupDefinition.java
@@ -51,7 +51,7 @@
public static final PathElement PATH = PathElement.pathElement(CommonAttributes.DISCOVERY_GROUP);
- public static SimpleAttributeDefinition REFRESH_TIMEOUT = create("refresh-timeout", ModelType.LONG)
+ public static final SimpleAttributeDefinition REFRESH_TIMEOUT = create("refresh-timeout", ModelType.LONG)
// FIXME the default value should be set to HornetQDefaultConfiguration.DEFAULT_BROADCAST_REFRESH_TIMEOUT,
.setDefaultValue(new ModelNode(HornetQClient.DEFAULT_DISCOVERY_INITIAL_WAIT_TIMEOUT))
.setMeasurementUnit(MILLISECONDS)
@@ -60,7 +60,7 @@
.setRestartAllServices()
.build();
- public static SimpleAttributeDefinition INITIAL_WAIT_TIMEOUT = create("initial-wait-timeout", ModelType.LONG)
+ public static final SimpleAttributeDefinition INITIAL_WAIT_TIMEOUT = create("initial-wait-timeout", ModelType.LONG)
.setDefaultValue(new ModelNode(HornetQClient.DEFAULT_DISCOVERY_INITIAL_WAIT_TIMEOUT))
.setMeasurementUnit(MILLISECONDS)
.setAllowNull(true)
@@ -95,4 +95,4 @@ public void registerAttributes(ManagementResourceRegistration registry) {
}
}
}
-}
+}
View
2  messaging/src/main/java/org/jboss/as/messaging/HornetQServerControlHandler.java
@@ -59,7 +59,7 @@
*/
public class HornetQServerControlHandler extends AbstractRuntimeOnlyHandler {
- public static HornetQServerControlHandler INSTANCE = new HornetQServerControlHandler();
+ static final HornetQServerControlHandler INSTANCE = new HornetQServerControlHandler();
public static final AttributeDefinition STARTED = new SimpleAttributeDefinition(CommonAttributes.STARTED, ModelType.BOOLEAN,
false, AttributeAccess.Flag.STORAGE_RUNTIME);
View
7 messaging/src/main/java/org/jboss/as/messaging/QueueRemove.java
@@ -26,7 +26,6 @@
package org.jboss.as.messaging;
import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OP_ADDR;
-import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.REMOVE;
import org.jboss.as.controller.AbstractRemoveStepHandler;
import org.jboss.as.controller.OperationContext;
@@ -40,11 +39,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class QueueRemove extends AbstractRemoveStepHandler {
+class QueueRemove extends AbstractRemoveStepHandler {
- public static final String OPERATION_NAME = REMOVE;
-
- public static QueueRemove INSTANCE = new QueueRemove();
+ static final QueueRemove INSTANCE = new QueueRemove();
private QueueRemove() {
}
View
2  messaging/src/main/java/org/jboss/as/messaging/TransportParamDefinition.java
@@ -48,7 +48,7 @@
.setRestartAllServices()
.build();
- public static AttributeDefinition[] ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 = { VALUE };
+ public static final AttributeDefinition[] ATTRIBUTES_WITH_EXPRESSION_ALLOWED_IN_1_2_0 = { VALUE };
static final OperationStepHandler PARAM_ADD = new HornetQReloadRequiredHandlers.AddStepHandler() {
@Override
View
2  messaging/src/main/java/org/jboss/as/messaging/jms/ConnectionFactoryType.java
@@ -55,5 +55,5 @@ public JMSFactoryType getType() {
return type;
}
- public static ParameterValidator VALIDATOR = new EnumValidator<ConnectionFactoryType>(ConnectionFactoryType.class, true, false);
+ public static final ParameterValidator VALIDATOR = new EnumValidator<ConnectionFactoryType>(ConnectionFactoryType.class, true, false);
}
View
2  messaging/src/main/java/org/jboss/as/messaging/jms/JMSServerControlHandler.java
@@ -54,7 +54,7 @@
*/
public class JMSServerControlHandler extends AbstractRuntimeOnlyHandler {
- public static JMSServerControlHandler INSTANCE = new JMSServerControlHandler();
+ public static final JMSServerControlHandler INSTANCE = new JMSServerControlHandler();
public static final String LIST_CONNECTIONS_AS_JSON = "list-connections-as-json";
public static final String LIST_CONSUMERS_AS_JSON = "list-consumers-as-json";
View
7 messaging/src/main/java/org/jboss/as/messaging/jms/bridge/JMSBridgeRemove.java
@@ -23,7 +23,6 @@
package org.jboss.as.messaging.jms.bridge;
import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OP_ADDR;
-import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.REMOVE;
import org.jboss.as.controller.AbstractRemoveStepHandler;
import org.jboss.as.controller.OperationContext;
@@ -41,11 +40,9 @@
*
* @author Jeff Mesnil (c) 2011 Red Hat Inc.
*/
-public class JMSBridgeRemove extends AbstractRemoveStepHandler {
+class JMSBridgeRemove extends AbstractRemoveStepHandler {
- public static final String OPERATION_NAME = REMOVE;
-
- public static JMSBridgeRemove INSTANCE = new JMSBridgeRemove();
+ static final JMSBridgeRemove INSTANCE = new JMSBridgeRemove();
private JMSBridgeRemove() {
}
View
2  osgi/service/src/main/java/org/jboss/as/osgi/management/ActivateOperationHandler.java
@@ -38,7 +38,7 @@
*/
public class ActivateOperationHandler extends AbstractRuntimeOnlyHandler {
- public static ActivateOperationHandler INSTANCE = new ActivateOperationHandler();
+ public static final ActivateOperationHandler INSTANCE = new ActivateOperationHandler();
private ActivateOperationHandler() {
}
View
2  osgi/service/src/main/java/org/jboss/as/osgi/management/OperationAssociation.java
@@ -32,7 +32,7 @@
*/
public final class OperationAssociation {
- public static OperationAssociation INSTANCE = new OperationAssociation();
+ public static final OperationAssociation INSTANCE = new OperationAssociation();
private final ThreadLocal<ModelNode> association = new ThreadLocal<ModelNode>();
private OperationAssociation() {
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/BufferPoolMXBeanAttributeHandler.java
@@ -39,9 +39,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class BufferPoolMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class BufferPoolMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static BufferPoolMXBeanAttributeHandler INSTANCE = new BufferPoolMXBeanAttributeHandler();
+ static final BufferPoolMXBeanAttributeHandler INSTANCE = new BufferPoolMXBeanAttributeHandler();
private BufferPoolMXBeanAttributeHandler() {
}
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/ClassLoadingMXBeanAttributeHandler.java
@@ -38,9 +38,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class ClassLoadingMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class ClassLoadingMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static ClassLoadingMXBeanAttributeHandler INSTANCE = new ClassLoadingMXBeanAttributeHandler();
+ static final ClassLoadingMXBeanAttributeHandler INSTANCE = new ClassLoadingMXBeanAttributeHandler();
private ClassLoadingMXBeanAttributeHandler() {
writeAttributeValidator.registerValidator(ModelDescriptionConstants.VALUE, new ModelTypeValidator(ModelType.BOOLEAN));
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/CompilationMXBeanAttributeHandler.java
@@ -36,9 +36,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class CompilationMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class CompilationMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static CompilationMXBeanAttributeHandler INSTANCE = new CompilationMXBeanAttributeHandler();
+ static final CompilationMXBeanAttributeHandler INSTANCE = new CompilationMXBeanAttributeHandler();
private CompilationMXBeanAttributeHandler() {
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/GarbageCollectorMXBeanAttributeHandler.java
@@ -40,9 +40,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class GarbageCollectorMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class GarbageCollectorMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static GarbageCollectorMXBeanAttributeHandler INSTANCE = new GarbageCollectorMXBeanAttributeHandler();
+ static final GarbageCollectorMXBeanAttributeHandler INSTANCE = new GarbageCollectorMXBeanAttributeHandler();
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/MemoryMXBeanAttributeHandler.java
@@ -38,9 +38,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class MemoryMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class MemoryMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static MemoryMXBeanAttributeHandler INSTANCE = new MemoryMXBeanAttributeHandler();
+ static final MemoryMXBeanAttributeHandler INSTANCE = new MemoryMXBeanAttributeHandler();
private MemoryMXBeanAttributeHandler() {
writeAttributeValidator.registerValidator(ModelDescriptionConstants.VALUE, new ModelTypeValidator(ModelType.BOOLEAN));
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/MemoryManagerMXBeanAttributeHandler.java
@@ -40,9 +40,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class MemoryManagerMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class MemoryManagerMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static MemoryManagerMXBeanAttributeHandler INSTANCE = new MemoryManagerMXBeanAttributeHandler();
+ static final MemoryManagerMXBeanAttributeHandler INSTANCE = new MemoryManagerMXBeanAttributeHandler();
private MemoryManagerMXBeanAttributeHandler() {
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/MemoryPoolMXBeanAttributeHandler.java
@@ -42,9 +42,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class MemoryPoolMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class MemoryPoolMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static MemoryPoolMXBeanAttributeHandler INSTANCE = new MemoryPoolMXBeanAttributeHandler();
+ static final MemoryPoolMXBeanAttributeHandler INSTANCE = new MemoryPoolMXBeanAttributeHandler();
private final ParametersValidator usageValidator = new ParametersValidator();
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/OperatingSystemMXBeanAttributeHandler.java
@@ -36,9 +36,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class OperatingSystemMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class OperatingSystemMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static OperatingSystemMXBeanAttributeHandler INSTANCE = new OperatingSystemMXBeanAttributeHandler();
+ static final OperatingSystemMXBeanAttributeHandler INSTANCE = new OperatingSystemMXBeanAttributeHandler();
private OperatingSystemMXBeanAttributeHandler() {
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/PlatformLoggingMXBeanAttributeHandler.java
@@ -34,9 +34,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class PlatformLoggingMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class PlatformLoggingMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static PlatformLoggingMXBeanAttributeHandler INSTANCE = new PlatformLoggingMXBeanAttributeHandler();
+ static final PlatformLoggingMXBeanAttributeHandler INSTANCE = new PlatformLoggingMXBeanAttributeHandler();
private PlatformLoggingMXBeanAttributeHandler() {
}
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/RuntimeMXBeanAttributeHandler.java
@@ -44,9 +44,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class RuntimeMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class RuntimeMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static RuntimeMXBeanAttributeHandler INSTANCE = new RuntimeMXBeanAttributeHandler();
+ static final RuntimeMXBeanAttributeHandler INSTANCE = new RuntimeMXBeanAttributeHandler();
static final AttributeDefinition OBJECT_NAME = SimpleAttributeDefinitionBuilder.create(PlatformMBeanConstants.OBJECT_NAME, ModelType.STRING)
.setStorageRuntime()
View
4 platform-mbean/src/main/java/org/jboss/as/platform/mbean/ThreadMXBeanAttributeHandler.java
@@ -39,9 +39,9 @@
*
* @author Brian Stansberry (c) 2011 Red Hat Inc.
*/
-public class ThreadMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
+class ThreadMXBeanAttributeHandler extends AbstractPlatformMBeanAttributeHandler {
- public static ThreadMXBeanAttributeHandler INSTANCE = new ThreadMXBeanAttributeHandler();
+ static final ThreadMXBeanAttributeHandler INSTANCE = new ThreadMXBeanAttributeHandler();
private final ParametersValidator enabledValidator = new ParametersValidator();
View
2  protocol/src/main/java/org/jboss/as/protocol/ProtocolChannelClient.java
@@ -93,7 +93,7 @@ public void close() {
}
public static final class Configuration extends ProtocolConnectionConfiguration {
- public static int WINDOW_SIZE = ProtocolConnectionConfiguration.DEFAULT_WINDOW_SIZE;
+ public static final int WINDOW_SIZE = ProtocolConnectionConfiguration.DEFAULT_WINDOW_SIZE;
//Flags to avoid spamming logs with warnings every time someone tries to set these
private static volatile boolean warnedExecutor;
View
44 server/src/main/java/org/jboss/as/server/controller/resources/DeploymentAttributes.java
@@ -63,7 +63,7 @@
*/
public class DeploymentAttributes {
- public static ResourceDescriptionResolver DEPLOYMENT_RESOLVER = ServerDescriptions.getResourceDescriptionResolver(DEPLOYMENT, false);
+ public static final ResourceDescriptionResolver DEPLOYMENT_RESOLVER = ServerDescriptions.getResourceDescriptionResolver(DEPLOYMENT, false);
//Top level attributes
public static final SimpleAttributeDefinition NAME = SimpleAttributeDefinitionBuilder.create(ModelDescriptionConstants.NAME, ModelType.STRING, false)
@@ -200,21 +200,21 @@ public void marshallAsAttribute(AttributeDefinition attribute, ModelNode resourc
@SuppressWarnings("unchecked")
public static final Map<String, AttributeDefinition> ALL_CONTENT_ATTRIBUTES = createAttributeMap(MANAGED_CONTENT_ATTRIBUTES, UNMANAGED_CONTENT_ATTRIBUTES);
- public static OperationDefinition DEPLOY_DEFINITION = new SimpleOperationDefinition(ModelDescriptionConstants.DEPLOY, DEPLOYMENT_RESOLVER);
- public static OperationDefinition UNDEPLOY_DEFINITION = new SimpleOperationDefinition(ModelDescriptionConstants.UNDEPLOY, DEPLOYMENT_RESOLVER);
- public static OperationDefinition REDEPLOY_DEFINITION = new SimpleOperationDefinition(ModelDescriptionConstants.REDEPLOY, DEPLOYMENT_RESOLVER);
+ public static final OperationDefinition DEPLOY_DEFINITION = new SimpleOperationDefinition(ModelDescriptionConstants.DEPLOY, DEPLOYMENT_RESOLVER);
+ public static final OperationDefinition UNDEPLOY_DEFINITION = new SimpleOperationDefinition(ModelDescriptionConstants.UNDEPLOY, DEPLOYMENT_RESOLVER);
+ public static final OperationDefinition REDEPLOY_DEFINITION = new SimpleOperationDefinition(ModelDescriptionConstants.REDEPLOY, DEPLOYMENT_RESOLVER);
/** Server add deployment definition */
- public static OperationDefinition SERVER_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition SERVER_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
.setParameters(SERVER_ADD_ATTRIBUTES)
.build();
/** Server group add deployment definition */
- public static OperationDefinition SERVER_GROUP_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition SERVER_GROUP_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
.setParameters(SERVER_GROUP_ADD_ATTRIBUTES)
.build();
- public static OperationDefinition DOMAIN_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition DOMAIN_DEPLOYMENT_ADD_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.ADD, DEPLOYMENT_RESOLVER)
.setParameters(DOMAIN_ADD_ATTRIBUTES)
.build();
@@ -225,62 +225,62 @@ public void marshallAsAttribute(AttributeDefinition attribute, ModelNode resourc
//Upload deployment bytes definitions
- public static AttributeDefinition BYTES_NOT_NULL = SimpleAttributeDefinitionBuilder.create(DeploymentAttributes.CONTENT_BYTES)
+ public static final AttributeDefinition BYTES_NOT_NULL = SimpleAttributeDefinitionBuilder.create(DeploymentAttributes.CONTENT_BYTES)
.setAllowNull(false)
.build();
- public static OperationDefinition UPLOAD_BYTES_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_BYTES, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition UPLOAD_BYTES_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_BYTES, DEPLOYMENT_RESOLVER)
.setParameters(BYTES_NOT_NULL)
.setReplyParameters(UPLOAD_HASH_REPLY)
.build();
- public static OperationDefinition DOMAIN_UPLOAD_BYTES_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_BYTES, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition DOMAIN_UPLOAD_BYTES_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_BYTES, DEPLOYMENT_RESOLVER)
.setParameters(BYTES_NOT_NULL)
.setReplyParameters(UPLOAD_HASH_REPLY)
.withFlag(Flag.MASTER_HOST_CONTROLLER_ONLY)
.build();
//Upload deployment url definitions
- public static AttributeDefinition URL_NOT_NULL = SimpleAttributeDefinitionBuilder.create(DeploymentAttributes.CONTENT_URL)
+ public static final AttributeDefinition URL_NOT_NULL = SimpleAttributeDefinitionBuilder.create(DeploymentAttributes.CONTENT_URL)
.setAllowNull(false)
.build();
- public static OperationDefinition UPLOAD_URL_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_URL, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition UPLOAD_URL_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_URL, DEPLOYMENT_RESOLVER)
.setParameters(URL_NOT_NULL)
.setReplyParameters(UPLOAD_HASH_REPLY)
.build();
- public static OperationDefinition DOMAIN_UPLOAD_URL_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_URL, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition DOMAIN_UPLOAD_URL_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_URL, DEPLOYMENT_RESOLVER)
.setParameters(URL_NOT_NULL)
.setReplyParameters(UPLOAD_HASH_REPLY)
.withFlag(Flag.MASTER_HOST_CONTROLLER_ONLY)
.build();
//Upload deployment stream definition
- public static AttributeDefinition INPUT_STREAM_INDEX_NOT_NULL = SimpleAttributeDefinitionBuilder.create(DeploymentAttributes.CONTENT_INPUT_STREAM_INDEX)
+ public static final AttributeDefinition INPUT_STREAM_INDEX_NOT_NULL = SimpleAttributeDefinitionBuilder.create(DeploymentAttributes.CONTENT_INPUT_STREAM_INDEX)
.setAllowNull(false)
.build();
//public static Map<String, AttributeDefinition> UPLOAD_INPUT_STREAM_INDEX_ATTRIBUTES = Collections.singletonMap(INPUT_STREAM_INDEX_NOT_NULL.getName(), INPUT_STREAM_INDEX_NOT_NULL);
- public static OperationDefinition UPLOAD_STREAM_ATTACHMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_STREAM, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition UPLOAD_STREAM_ATTACHMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_STREAM, DEPLOYMENT_RESOLVER)
.setParameters(INPUT_STREAM_INDEX_NOT_NULL)
.setReplyParameters(UPLOAD_HASH_REPLY)
.build();
- public static OperationDefinition DOMAIN_UPLOAD_STREAM_ATTACHMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_STREAM, DEPLOYMENT_RESOLVER)
+ public static final OperationDefinition DOMAIN_UPLOAD_STREAM_ATTACHMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.UPLOAD_DEPLOYMENT_STREAM, DEPLOYMENT_RESOLVER)
.setParameters(INPUT_STREAM_INDEX_NOT_NULL)
.setReplyParameters(UPLOAD_HASH_REPLY)
.withFlag(Flag.MASTER_HOST_CONTROLLER_ONLY)
.build();
//Replace deployment definition
- public static Map<String, AttributeDefinition> REPLACE_DEPLOYMENT_ATTRIBUTES = createAttributeMap(NAME, TO_REPLACE, CONTENT_ALL_NILLABLE, RUNTIME_NAME_NILLABLE);
- public static OperationDefinition REPLACE_DEPLOYMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.REPLACE_DEPLOYMENT, DEPLOYMENT_RESOLVER)
+ public static final Map<String, AttributeDefinition> REPLACE_DEPLOYMENT_ATTRIBUTES = createAttributeMap(NAME, TO_REPLACE, CONTENT_ALL_NILLABLE, RUNTIME_NAME_NILLABLE);
+ public static final OperationDefinition REPLACE_DEPLOYMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.REPLACE_DEPLOYMENT, DEPLOYMENT_RESOLVER)
.setParameters(REPLACE_DEPLOYMENT_ATTRIBUTES.values().toArray(new AttributeDefinition[REPLACE_DEPLOYMENT_ATTRIBUTES.size()]))
.build();
- public static Map<String, AttributeDefinition> SERVER_GROUP_REPLACE_DEPLOYMENT_ATTRIBUTES = createAttributeMap(NAME, TO_REPLACE, RUNTIME_NAME_NILLABLE);
- public static OperationDefinition SERVER_GROUP_REPLACE_DEPLOYMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.REPLACE_DEPLOYMENT, DEPLOYMENT_RESOLVER)
+ public static final Map<String, AttributeDefinition> SERVER_GROUP_REPLACE_DEPLOYMENT_ATTRIBUTES = createAttributeMap(NAME, TO_REPLACE, RUNTIME_NAME_NILLABLE);
+ public static final OperationDefinition SERVER_GROUP_REPLACE_DEPLOYMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.REPLACE_DEPLOYMENT, DEPLOYMENT_RESOLVER)
.setParameters(SERVER_GROUP_REPLACE_DEPLOYMENT_ATTRIBUTES.values().toArray(new AttributeDefinition[SERVER_GROUP_REPLACE_DEPLOYMENT_ATTRIBUTES.size()]))
.build();
//Full replace deployment definition
- public static Map<String, AttributeDefinition> FULL_REPLACE_DEPLOYMENT_ATTRIBUTES = createAttributeMap(NAME, RUNTIME_NAME_NILLABLE, CONTENT_ALL);
- public static OperationDefinition FULL_REPLACE_DEPLOYMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.FULL_REPLACE_DEPLOYMENT, DEPLOYMENT_RESOLVER)
+ public static final Map<String, AttributeDefinition> FULL_REPLACE_DEPLOYMENT_ATTRIBUTES = createAttributeMap(NAME, RUNTIME_NAME_NILLABLE, CONTENT_ALL);
+ public static final OperationDefinition FULL_REPLACE_DEPLOYMENT_DEFINITION = new SimpleOperationDefinitionBuilder(ModelDescriptionConstants.FULL_REPLACE_DEPLOYMENT, DEPLOYMENT_RESOLVER)
.setParameters(FULL_REPLACE_DEPLOYMENT_ATTRIBUTES.values().toArray(new AttributeDefinition[FULL_REPLACE_DEPLOYMENT_ATTRIBUTES.size()]))
.build();
View
4 server/src/main/java/org/jboss/as/server/controller/resources/VaultResourceDefinition.java
@@ -48,13 +48,13 @@
*/
public class VaultResourceDefinition extends SimpleResourceDefinition {
- public static SimpleAttributeDefinition CODE = SimpleAttributeDefinitionBuilder.create(ModelDescriptionConstants.CODE, ModelType.STRING, true)
+ public static final SimpleAttributeDefinition CODE = SimpleAttributeDefinitionBuilder.create(ModelDescriptionConstants.CODE, ModelType.STRING, true)
.addFlag(Flag.RESTART_ALL_SERVICES)
.setValidator(new ModelTypeValidator(ModelType.STRING, true))
.setAllowExpression(true)
.build();
- public static PropertiesAttributeDefinition VAULT_OPTIONS = new PropertiesAttributeDefinition.Builder(ModelDescriptionConstants.VAULT_OPTIONS, true)
+ public static final PropertiesAttributeDefinition VAULT_OPTIONS = new PropertiesAttributeDefinition.Builder(ModelDescriptionConstants.VAULT_OPTIONS, true)
.addFlag(Flag.RESTART_ALL_SERVICES)
.setAllowExpression(true)
.setCorrector(MapAttributeDefinition.LIST_TO_MAP_CORRECTOR)
View
2  server/src/main/java/org/jboss/as/server/mgmt/domain/ServerToHostRemoteFileRequestAndHandler.java
@@ -55,7 +55,7 @@ public byte fileEnd() {
}
};
- public static ServerToHostRemoteFileRequestAndHandler INSTANCE = new ServerToHostRemoteFileRequestAndHandler(MAPPER);
+ public static final ServerToHostRemoteFileRequestAndHandler INSTANCE = new ServerToHostRemoteFileRequestAndHandler(MAPPER);
private ServerToHostRemoteFileRequestAndHandler(RemoteFileProtocolIdMapper mapper) {
super(mapper);
View
2  server/src/main/java/org/jboss/as/server/moduleservice/ExternalModuleService.java
@@ -51,7 +51,7 @@
*/
public class ExternalModuleService implements Service<ExternalModuleService> {
- public static String EXTERNAL_MODULE_PREFIX = ServiceModuleLoader.MODULE_PREFIX + "external.";
+ public static final String EXTERNAL_MODULE_PREFIX = ServiceModuleLoader.MODULE_PREFIX + "external.";
private volatile ServiceContainer serviceContainer;
View
2  server/src/main/java/org/jboss/as/server/operations/NativeManagementWriteAttributeHandler.java
@@ -38,7 +38,7 @@
*/
public class NativeManagementWriteAttributeHandler extends ReloadRequiredWriteAttributeHandler {
- public static OperationStepHandler INSTANCE = new NativeManagementWriteAttributeHandler();
+ public static final OperationStepHandler INSTANCE = new NativeManagementWriteAttributeHandler();
private NativeManagementWriteAttributeHandler() {
super(NativeManagementResourceDefinition.ATTRIBUTE_DEFINITIONS);
View
2  server/src/main/java/org/jboss/as/server/operations/RootResourceHack.java
@@ -47,7 +47,7 @@
public static final String NAME = "root-resource-hack";
//Private method does not need resources for description
- public static OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(NAME, null)
+ public static final OperationDefinition DEFINITION = new SimpleOperationDefinitionBuilder(NAME, null)
.setPrivateEntry()
.setRuntimeOnly()
.build();
View
2  server/src/main/java/org/jboss/as/server/services/net/SpecifiedInterfaceAddHandler.java
@@ -39,7 +39,7 @@
*/
public class SpecifiedInterfaceAddHandler extends InterfaceAddHandler {
- public static SpecifiedInterfaceAddHandler INSTANCE = new SpecifiedInterfaceAddHandler();
+ public static final SpecifiedInterfaceAddHandler INSTANCE = new SpecifiedInterfaceAddHandler();
protected SpecifiedInterfaceAddHandler() {
super(true);
View
2  server/src/main/java/org/jboss/as/server/services/net/SpecifiedInterfaceRemoveHandler.java
@@ -32,7 +32,7 @@
*/
public class SpecifiedInterfaceRemoveHandler extends InterfaceRemoveHandler {
- public static SpecifiedInterfaceRemoveHandler INSTANCE = new SpecifiedInterfaceRemoveHandler();
+ public static final SpecifiedInterfaceRemoveHandler INSTANCE = new SpecifiedInterfaceRemoveHandler();
protected SpecifiedInterfaceRemoveHandler() {
}
View
2  threads/src/main/java/org/jboss/as/threads/ThreadsExtension.java
@@ -46,7 +46,7 @@
*/
public class ThreadsExtension implements Extension {
- public static String SUBSYSTEM_NAME = "threads";
+ public static final String SUBSYSTEM_NAME = "threads";
static final PathElement SUBSYSTEM_PATH = PathElement.pathElement(SUBSYSTEM, SUBSYSTEM_NAME);
static final String RESOURCE_NAME = ThreadsExtension.class.getPackage().getName() + ".LocalDescriptions";
View
2  weld/src/main/java/org/jboss/as/weld/services/ModuleGroupSingletonProvider.java
@@ -47,7 +47,7 @@
/**
* Map of the top level class loader to all class loaders in a deployment
*/
- public static Map<ClassLoader, Set<ClassLoader>> deploymentClassLoaders = new ConcurrentHashMap<ClassLoader, Set<ClassLoader>>();
+ public static final Map<ClassLoader, Set<ClassLoader>> deploymentClassLoaders = new ConcurrentHashMap<ClassLoader, Set<ClassLoader>>();
/**
* Maps a top level class loader to all CL's in the deployment
View
2  weld/src/main/java/org/jboss/as/weld/services/TCCLSingletonService.java
@@ -37,7 +37,7 @@
*/
public class TCCLSingletonService implements Service<TCCLSingletonService> {
- public static ServiceName SERVICE_NAME = Services.JBOSS_AS.append("weld", "singleton");
+ public static final ServiceName SERVICE_NAME = Services.JBOSS_AS.append("weld", "singleton");
@Override
public void start(StartContext context) throws StartException {
Please sign in to comment.
Something went wrong with that request. Please try again.