Package java.lang

Examples of java.lang.Object


        if (className == null) {
            logger.log(Level.WARNING, VALVE_MISSING_CLASS_NAME,
                       new Object[]{valveName, getName()});
            return;
        }
        Object valve = loadInstance(className);
        if (valve == null) {
            return;
        }
        if (!(valve instanceof GlassFishValve) &&
                !(valve instanceof Valve)) {
            logger.log(Level.WARNING, VALVE_CLASS_NAME_NO_VALVE,
                       className);
            return;
        }
        WebProperty[] props = valveDescriptor.getWebProperty();
        if (props != null && props.length > 0) {
            for (WebProperty property: props) {
                String propName = getSetterName(
                    property.getAttributeValue(WebProperty.NAME));
                if (propName != null && propName.length() != 0) {
                    String value = property.getAttributeValue(
                        WebProperty.VALUE);
                    try {
                        Method method = valve.getClass().getMethod(
                            propName, String.class);
                        method.invoke(valve, value);
                    } catch (NoSuchMethodException ex) {
                        String msg = rb.getString(VALVE_SPECIFIED_METHOD_MISSING);
                        msg = MessageFormat.format(msg,
View Full Code Here


     * WebModule.
     *
     * @param listenerName The fully qualified class name of the listener
     */
    protected void addCatalinaListener(String listenerName) {
        Object listener = loadInstance(listenerName);

        if ( listener == null ) return;

        if (listener instanceof ContainerListener) {
            addContainerListener((ContainerListener)listener);
View Full Code Here

        // clear the null ctx indicator
        getThreadLocalData(NULL_CTX_SLOT);

        // see if a reply ctx needs to be sent.

        Object no_reply = getThreadLocalData(NO_REPLY_SLOT);

        if (no_reply == NO_REPLY) {
            return;
        }
View Full Code Here

     *
     * @param className The ProxyHandler implementation class name
     */
    public void setProxyHandler(String className) {

        Object handler = null;
        try {
            Class handlerClass = webContainer.loadCommonClass(className);
            handler = handlerClass.newInstance();
        } catch (Exception e) {
            String msg = MessageFormat.format(_rb.getString(PROXY_HANDLER_CLASS_LOAD_ERROR), className);
View Full Code Here

        return eofValue;
        }

      if(Character.isDigit(ch))
        {
        Object n = readNumber(r, (char) ch);
        if(RT.suppressRead())
          return null;
        return n;
        }

      IFn macroFn = getMacro(ch);
      if(macroFn != null)
        {
        Object ret = macroFn.invoke(r, (char) ch);
        if(RT.suppressRead())
          return null;
        //no op macros return the reader
        if(ret == r)
          continue;
        return ret;
        }

      if(ch == '+' || ch == '-')
        {
        int ch2 = read1(r);
        if(Character.isDigit(ch2))
          {
          unread(r, ch2);
          Object n = readNumber(r, (char) ch);
          if(RT.suppressRead())
            return null;
          return n;
          }
        unread(r, ch2);
View Full Code Here

      }
    sb.append((char) ch);
    }

  String s = sb.toString();
  Object n = matchNumber(s);
  if(n == null)
    throw new NumberFormatException("Invalid number: " + s);
  return n;
}
View Full Code Here

    }
  else if(s.equals("false"))
    {
    return RT.F;
    }
  Object ret = null;

  ret = matchSymbol(s);
  if(ret != null)
    return ret;
View Full Code Here

      break;

    IFn macroFn = getMacro(ch);
    if(macroFn != null)
      {
      Object mret = macroFn.invoke(r, (char) ch);
      //no op macros return the reader
      if(mret != r)
        a.add(mret);
      }
    else
      {
      unread(r, ch);

      Object o = read(r, true, null, isRecursive);
      if(o != r)
        a.add(o);
      }
    }
View Full Code Here

      endch = ']';
    else
      throw Util.runtimeException("Unreadable constructor form starting with \"#" + recordName + (char) ch + "\"");

    Object[] recordEntries = readDelimitedList(endch, r, true).toArray();
    Object ret = null;
    Constructor[] allctors = ((Class)recordClass).getConstructors();

    if(shortForm)
      {
      boolean ctorFound = false;
View Full Code Here

    this.sym = sym;
  }

  public Object invoke(Object reader, Object quote) {
    PushbackReader r = (PushbackReader) reader;
    Object o = read(r, true, null, true);
    return RT.list(sym, o);
  }
View Full Code Here

TOP

Related Classes of java.lang.Object

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.