org.jboss.as.controller.ControllerMessages.MESSAGES-sorg.jboss.as.controller.logging.ControllerLogger



Project wildfly/wildfly in file ...boss.as.connector.subsystems.jca.JcaExtension.java (2014-02-04)
@@ -33,7 +33,6 @@ import static org.jboss.as.connector.subsystems.jca.Constants.WORKMANAGER;
 import static org.jboss.as.connector.subsystems.jca.Constants.WORKMANAGER_LONG_RUNNING;
 import static org.jboss.as.connector.subsystems.jca.Constants.WORKMANAGER_SHORT_RUNNING;
 import static org.jboss.as.connector.subsystems.jca.JcaArchiveValidationDefinition.ArchiveValidationParameters;
-import static org.jboss.as.controller.ControllerMessages.MESSAGES;
 import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.ADD;
 import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.NAME;
 import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.OP;
@@ -50,6 +49,7 @@ import javax.xml.stream.XMLStreamConstants;
 import javax.xml.stream.XMLStreamException;
 import javax.xml.stream.XMLStreamReader;
 
+import org.jboss.as.controller.logging.ControllerLogger;
 import org.jboss.as.controller.Extension;
 import org.jboss.as.controller.ExtensionContext;
 import org.jboss.as.controller.PropertiesAttributeDefinition;
@@ -535,7 +535,7 @@ public class JcaExtension implements Extension {
                     }
 
                     if (name == null) {
-                        throw MESSAGES.missingRequiredAttributes(new StringBuilder(name), reader.getLocation());
+                        throw ControllerLogger.ROOT_LOGGER.missingRequiredAttributes(new StringBuilder(name), reader.getLocation());
                     }
 
                     final ModelNode distributedWorkManagerAddress = parentAddress.clone();
Project wildfly/wildfly in file ...s.controller.PersistentResourceXMLDescription.java (2014-02-04)
@@ -11,6 +11,7 @@ import javax.xml.stream.XMLStreamConstants;
 import javax.xml.stream.XMLStreamException;
 
 import org.jboss.as.controller.descriptions.ModelDescriptionConstants;
+import org.jboss.as.controller.logging.ControllerLogger;
 import org.jboss.as.controller.operations.common.Util;
 import org.jboss.as.controller.parsing.Element;
 import org.jboss.as.controller.parsing.ParseUtils;
@@ -20,7 +21,6 @@ import org.jboss.staxmapper.XMLExtendedStreamReader;
 import org.jboss.staxmapper.XMLExtendedStreamWriter;
 
 import static javax.xml.stream.XMLStreamConstants.END_ELEMENT;
-import static org.jboss.as.controller.ControllerMessages.MESSAGES;
 import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.ADDRESS;
 import static org.jboss.as.controller.descriptions.ModelDescriptionConstants.NAME;
 
@@ -93,7 +93,7 @@ public class PersistentResourceXMLDescription {
             }
         }
         if (wildcard && name == null) {
-            throw MESSAGES.missingRequiredAttributes(new StringBuilder(NAME), reader.getLocation());
+            throw ControllerLogger.ROOT_LOGGER.missingRequiredAttributes(new StringBuilder(NAME), reader.getLocation());
         }
         PathElement path = wildcard ? PathElement.pathElement(resourceDefinition.getPathElement().getKey(), name) : resourceDefinition.getPathElement();
         PathAddress address = parentAddress.append(path);
Project wildfly/wildfly in file ...as.controller.interfaces.AnyInterfaceCriteria.java (2014-02-04)
@@ -25,8 +25,6 @@
  */
 package org.jboss.as.controller.interfaces;
 
-import static org.jboss.as.controller.ControllerMessages.MESSAGES;
-
 import java.net.InetAddress;
 import java.net.NetworkInterface;
 import java.net.SocketException;
@@ -35,6 +33,8 @@ import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 
+import org.jboss.as.controller.logging.ControllerLogger;
+
 /**
  * {@link InterfaceCriteria} that tests whether a given network interface and
  * address satisfy <i>any</i> of a contained set of {@link InterfaceCriteria}.
@@ -57,7 +57,7 @@ public class AnyInterfaceCriteria implements InterfaceCriteria {
      */
     public AnyInterfaceCriteria(Set<InterfaceCriteria> criteria) {
         if (criteria == null)
-            throw MESSAGES.nullVar("criteria");
+            throw ControllerLogger.ROOT_LOGGER.nullVar("criteria");
         this.criteria.addAll(criteria);
     }
 
Project wildfly/wildfly in file ...boss.as.controller.interfaces.InetAddressUtil.java (2014-02-04)
@@ -25,7 +25,7 @@ package org.jboss.as.controller.interfaces;
 import java.net.InetAddress;
 import java.net.UnknownHostException;
 
-import static org.jboss.as.controller.ControllerMessages.MESSAGES;
+import org.jboss.as.controller.logging.ControllerLogger;
 
 /**
  * @author Tomaz Cerar
@@ -57,7 +57,7 @@ public class InetAddressUtil {
             InetAddress address = getLocalHost();
             return address != null ? canonize(address.getHostName()) : null;
         } catch (UnknownHostException e) {
-            throw MESSAGES.cannotDetermineDefaultName(e);
+            throw ControllerLogger.ROOT_LOGGER.cannotDetermineDefaultName(e);
         }
     }
 
Project wildfly/wildfly in file ...as.controller.interfaces.NicInterfaceCriteria.java (2014-02-04)
@@ -25,12 +25,12 @@
  */
 package org.jboss.as.controller.interfaces;
 
-import static org.jboss.as.controller.ControllerMessages.MESSAGES;
-
 import java.net.InetAddress;
 import java.net.NetworkInterface;
 import java.net.SocketException;
 
+import org.jboss.as.controller.logging.ControllerLogger;
+
 /**
  * {@link InterfaceCriteria} that tests whether a given name matches the
  * network interface's {@link NetworkInterface#getName() name}.
@@ -53,7 +53,7 @@ public class NicInterfaceCriteria extends AbstractInterfaceCriteria {
      */
     public NicInterfaceCriteria(String name) {
         if (name == null)
-            throw MESSAGES.nullVar("name");
+            throw ControllerLogger.ROOT_LOGGER.nullVar("name");
         this.name = name;
     }