Tabnine Logo
Util.message
Code IndexAdd Tabnine to your IDE (free)

How to use
message
method
in
javax.el.Util

Best Java code snippets using javax.el.Util.message (Showing top 20 results out of 315)

origin: org.apache.tomcat.embed/tomcat-embed-el

private BeanProperty get(ELContext ctx, String name) {
  BeanProperty property = this.properties.get(name);
  if (property == null) {
    throw new PropertyNotFoundException(Util.message(ctx,
        "propertyNotFound", type.getName(), name));
  }
  return property;
}
origin: codefollower/Tomcat-Research

private BeanProperty get(ELContext ctx, String name) {
  BeanProperty property = this.properties.get(name);
  if (property == null) {
    throw new PropertyNotFoundException(Util.message(ctx,
        "propertyNotFound", type.getName(), name));
  }
  return property;
}
origin: codefollower/Tomcat-Research

@Override
public void setValue(ELContext context, Object base, Object property,
    Object value) {
  if (context == null) {
    throw new NullPointerException();
  }
  if (base instanceof ResourceBundle) {
    context.setPropertyResolved(base, property);
    throw new PropertyNotWritableException(Util.message(context,
        "resolverNotWriteable", base.getClass().getName()));
  }
}
origin: org.apache.tomcat/tomcat-el-api

private BeanProperty get(ELContext ctx, String name) {
  BeanProperty property = this.properties.get(name);
  if (property == null) {
    throw new PropertyNotFoundException(Util.message(ctx,
        "propertyNotFound", type.getName(), name));
  }
  return property;
}
origin: org.apache.tomcat/tomcat-el-api

@Override
public void setValue(ELContext context, Object base, Object property,
    Object value) {
  Objects.requireNonNull(context);
  if (base instanceof ResourceBundle) {
    context.setPropertyResolved(base, property);
    throw new PropertyNotWritableException(Util.message(context,
        "resolverNotWriteable", base.getClass().getName()));
  }
}
origin: org.apache.tomcat.embed/tomcat-embed-el

@Override
public void setValue(ELContext context, Object base, Object property,
    Object value) {
  Objects.requireNonNull(context);
  if (base instanceof ResourceBundle) {
    context.setPropertyResolved(base, property);
    throw new PropertyNotWritableException(Util.message(context,
        "resolverNotWriteable", base.getClass().getName()));
  }
}
origin: org.apache.tomcat.embed/tomcat-embed-el

public void importClass(String name) throws javax.el.ELException {
  int lastPeriodIndex = name.lastIndexOf('.');
  if (lastPeriodIndex < 0) {
    throw new ELException(Util.message(
        null, "importHandler.invalidClassName", name));
  }
  String unqualifiedName = name.substring(lastPeriodIndex + 1);
  String currentName = classNames.putIfAbsent(unqualifiedName, name);
  if (currentName != null && !currentName.equals(name)) {
    // Conflict. Same unqualifiedName, different fully qualified names
    throw new ELException(Util.message(null,
        "importHandler.ambiguousImport", name, currentName));
  }
}
origin: org.apache.tomcat/tomcat-el-api

public void importClass(String name) throws javax.el.ELException {
  int lastPeriodIndex = name.lastIndexOf('.');
  if (lastPeriodIndex < 0) {
    throw new ELException(Util.message(
        null, "importHandler.invalidClassName", name));
  }
  String unqualifiedName = name.substring(lastPeriodIndex + 1);
  String currentName = classNames.putIfAbsent(unqualifiedName, name);
  if (currentName != null && !currentName.equals(name)) {
    // Conflict. Same unqualifiedName, different fully qualified names
    throw new ELException(Util.message(null,
        "importHandler.ambiguousImport", name, currentName));
  }
}
origin: org.apache.tomcat.embed/tomcat-embed-el

private Method write(ELContext ctx) {
  if (this.write == null) {
    this.write = Util.getMethod(this.owner, descriptor.getWriteMethod());
    if (this.write == null) {
      throw new PropertyNotWritableException(Util.message(ctx,
          "propertyNotWritable", new Object[] {
              owner.getName(), descriptor.getName() }));
    }
  }
  return this.write;
}
origin: org.apache.tomcat/tomcat-el-api

private Method write(ELContext ctx) {
  if (this.write == null) {
    this.write = Util.getMethod(this.owner, descriptor.getWriteMethod());
    if (this.write == null) {
      throw new PropertyNotWritableException(Util.message(ctx,
          "propertyNotWritable", new Object[] {
              owner.getName(), descriptor.getName() }));
    }
  }
  return this.write;
}
origin: org.apache.tomcat.embed/tomcat-embed-el

  private Method read(ELContext ctx) {
    if (this.read == null) {
      this.read = Util.getMethod(this.owner, descriptor.getReadMethod());
      if (this.read == null) {
        throw new PropertyNotFoundException(Util.message(ctx,
            "propertyNotReadable", new Object[] {
                owner.getName(), descriptor.getName() }));
      }
    }
    return this.read;
  }
}
origin: codefollower/Tomcat-Research

private Method write(ELContext ctx) {
  if (this.write == null) {
    this.write = Util.getMethod(this.owner, descriptor.getWriteMethod());
    if (this.write == null) {
      throw new PropertyNotWritableException(Util.message(ctx,
          "propertyNotWritable", new Object[] {
              owner.getName(), descriptor.getName() }));
    }
  }
  return this.write;
}
origin: codefollower/Tomcat-Research

  private Method read(ELContext ctx) {
    if (this.read == null) {
      this.read = Util.getMethod(this.owner, descriptor.getReadMethod());
      if (this.read == null) {
        throw new PropertyNotFoundException(Util.message(ctx,
            "propertyNotReadable", new Object[] {
                owner.getName(), descriptor.getName() }));
      }
    }
    return this.read;
  }
}
origin: codefollower/Tomcat-Research

public void importClass(String name) throws javax.el.ELException {
  if (!name.contains(".")) {
    throw new ELException(Util.message(
        null, "importHandler.invalidClassName", name));
  }
  Class<?> clazz = findClass(name, true);
  if (clazz == null) {
    throw new ELException(Util.message(
        null, "importHandler.classNotFound", name));
  }
}
origin: org.apache.tomcat.embed/tomcat-embed-el

@Override
public void setValue(ELContext context, Object base, Object property,
    Object value) {
  Objects.requireNonNull(context);
  if (base instanceof ELClass && property instanceof String) {
    Class<?> clazz = ((ELClass) base).getKlass();
    String name = (String) property;
    throw new PropertyNotWritableException(Util.message(context,
        "staticFieldELResolver.notWriteable", name,
        clazz.getName()));
  }
}
origin: org.apache.tomcat/tomcat-el-api

  private Method read(ELContext ctx) {
    if (this.read == null) {
      this.read = Util.getMethod(this.owner, descriptor.getReadMethod());
      if (this.read == null) {
        throw new PropertyNotFoundException(Util.message(ctx,
            "propertyNotReadable", new Object[] {
                owner.getName(), descriptor.getName() }));
      }
    }
    return this.read;
  }
}
origin: org.apache.tomcat/tomcat-el-api

@Override
public void setValue(ELContext context, Object base, Object property,
    Object value) {
  Objects.requireNonNull(context);
  if (base instanceof ELClass && property instanceof String) {
    Class<?> clazz = ((ELClass) base).getKlass();
    String name = (String) property;
    throw new PropertyNotWritableException(Util.message(context,
        "staticFieldELResolver.notWriteable", name,
        clazz.getName()));
  }
}
origin: codefollower/Tomcat-Research

@Override
public void setValue(ELContext context, Object base, Object property,
    Object value) {
  if (context == null) {
    throw new NullPointerException();
  }
  if (base instanceof ELClass && property instanceof String) {
    Class<?> clazz = ((ELClass) base).getKlass();
    String name = (String) property;
    throw new PropertyNotWritableException(Util.message(context,
        "staticFieldELResolver.notWriteable", name,
        clazz.getName()));
  }
}
origin: org.apache.tomcat.embed/tomcat-embed-el

static Method findMethod(Class<?> clazz, String methodName,
    Class<?>[] paramTypes, Object[] paramValues) {
  if (clazz == null || methodName == null) {
    throw new MethodNotFoundException(
        message(null, "util.method.notfound", clazz, methodName,
        paramString(paramTypes)));
  }
  if (paramTypes == null) {
    paramTypes = getTypesFromValues(paramValues);
  }
  Method[] methods = clazz.getMethods();
  List<Wrapper> wrappers = Wrapper.wrap(methods, methodName);
  Wrapper result = findWrapper(clazz, wrappers, methodName, paramTypes, paramValues);
  return getMethod(clazz, (Method) result.unWrap());
}
origin: org.apache.tomcat.embed/tomcat-embed-el

static Constructor<?> findConstructor(Class<?> clazz, Class<?>[] paramTypes,
    Object[] paramValues) {
  String methodName = "<init>";
  if (clazz == null) {
    throw new MethodNotFoundException(
        message(null, "util.method.notfound", null, methodName,
        paramString(paramTypes)));
  }
  if (paramTypes == null) {
    paramTypes = getTypesFromValues(paramValues);
  }
  Constructor<?>[] constructors = clazz.getConstructors();
  List<Wrapper> wrappers = Wrapper.wrap(constructors);
  Wrapper result = findWrapper(clazz, wrappers, methodName, paramTypes, paramValues);
  return getConstructor(clazz, (Constructor<?>) result.unWrap());
}
javax.elUtilmessage

Popular methods of Util

  • findMethod
  • findWrapper
  • getConstructor
  • getExpressionFactory
    Provides a per class loader cache of ExpressionFactory instances without pinning any in memory as th
  • getMethod
  • getTypesFromValues
  • isAssignableFrom
  • isCoercibleFrom
  • paramString
  • resolveAmbiguousWrapper
  • buildParameters
  • findConstructor
  • buildParameters,
  • findConstructor,
  • handleThrowable,
  • getContextClassLoader

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now