Codota Logo
SizeResolver
Code IndexAdd Codota to your IDE (free)

How to use
SizeResolver
in
org.jboss.as.logging.resolvers

Best Java code snippets using org.jboss.as.logging.resolvers.SizeResolver (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.jboss.as/jboss-as-logging

@Override
public String resolveValue(final OperationContext context, final ModelNode value) throws OperationFailedException {
  return String.valueOf(parseSize(value));
}
origin: org.wildfly.core/wildfly-logging

@Override
public String resolveValue(final OperationContext context, final ModelNode value) throws OperationFailedException {
  return String.valueOf(parseSize(value));
}
origin: wildfly/wildfly-core

@Override
public String resolveValue(final OperationContext context, final ModelNode value) throws OperationFailedException {
  return String.valueOf(parseSize(value));
}
origin: wildfly/wildfly-core

  @Override
  public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
    super.validateParameter(parameterName, value);
    if (value.isDefined()) {
      final String stringValue = value.asString();
      try {
        SizeResolver.INSTANCE.parseSize(value);
      } catch (IllegalArgumentException e) {
        throw createOperationFailure(LoggingLogger.ROOT_LOGGER.invalidSize(stringValue));
      } catch (IllegalStateException e) {
        throw createOperationFailure(LoggingLogger.ROOT_LOGGER.invalidSize(stringValue));
      }
    }
  }
}
origin: org.wildfly.core/wildfly-logging

  @Override
  public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
    super.validateParameter(parameterName, value);
    if (value.isDefined()) {
      final String stringValue = value.asString();
      try {
        SizeResolver.INSTANCE.parseSize(value);
      } catch (IllegalArgumentException e) {
        throw createOperationFailure(LoggingLogger.ROOT_LOGGER.invalidSize(stringValue));
      } catch (IllegalStateException e) {
        throw createOperationFailure(LoggingLogger.ROOT_LOGGER.invalidSize(stringValue));
      }
    }
  }
}
origin: org.jboss.as/jboss-as-logging

  @Override
  public void validateParameter(String parameterName, ModelNode value) throws OperationFailedException {
    super.validateParameter(parameterName, value);
    if (value.isDefined()) {
      final String stringValue = value.asString();
      try {
        SizeResolver.INSTANCE.parseSize(value);
      } catch (IllegalArgumentException e) {
        throw createOperationFailure(MESSAGES.invalidSize(stringValue));
      } catch (IllegalStateException e) {
        throw createOperationFailure(MESSAGES.invalidSize(stringValue));
      }
    }
  }
}
org.jboss.as.logging.resolversSizeResolver

Javadoc

Date: 15.12.2011

Most used methods

  • parseSize

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now