com.dyuproject.ioc
Class DefaultParser

java.lang.Object
  extended by org.mortbay.util.ajax.JSON
      extended by com.dyuproject.json.StandardJSON
          extended by com.dyuproject.ioc.Parser
              extended by com.dyuproject.ioc.DefaultParser

public class DefaultParser
extends Parser

The default parser which allows the occurrence of $ in json text.

Author:
David Yu
Date created:
Feb 21, 2009

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mortbay.util.ajax.JSON
org.mortbay.util.ajax.JSON.Convertible, org.mortbay.util.ajax.JSON.Convertor, org.mortbay.util.ajax.JSON.Generator, org.mortbay.util.ajax.JSON.Literal, org.mortbay.util.ajax.JSON.Output, org.mortbay.util.ajax.JSON.ReaderSource, org.mortbay.util.ajax.JSON.Source, org.mortbay.util.ajax.JSON.StringSource
 
Field Summary
 
Fields inherited from class com.dyuproject.ioc.Parser
_resolver, DEFAULT
 
Fields inherited from class com.dyuproject.json.StandardJSON
_addClass, _convertorCache
 
Constructor Summary
DefaultParser()
           
DefaultParser(ConvertorCache convertorCache)
           
DefaultParser(ConvertorCache convertorCache, Resource.Resolver resolver)
           
DefaultParser(Resource.Resolver resolver)
           
 
Method Summary
protected  Object handleUnknown(org.mortbay.util.ajax.JSON.Source source, char c)
           
protected  boolean isAllowed(char c)
           
protected  Map newMap()
           
 void parse(Resource resource, ApplicationContext appContext)
          Parses the given resource and loads it into the ApplicationContext
 
Methods inherited from class com.dyuproject.ioc.Parser
getDefault, getResolver
 
Methods inherited from class com.dyuproject.json.StandardJSON
getConvertor, getConvertorCache, getResource, getResource, isAddClass, isCheckParents, loadClass, loadClass, parseObject, setAddClass, setCheckParents
 
Methods inherited from class org.mortbay.util.ajax.JSON
addConvertor, addConvertorFor, append, appendArray, appendArray, appendBoolean, appendJSON, appendJSON, appendJSON, appendMap, appendNull, appendNumber, appendString, complete, contextFor, contextForArray, convertTo, fromJSON, getConvertorFor, getStringBufferSize, newArray, parse, parse, parse, parse, parse, parse, parse, parse, parseArray, parseNumber, parseString, registerConvertor, seekTo, seekTo, setDefault, setStringBufferSize, toJSON, toString, toString, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultParser

public DefaultParser()

DefaultParser

public DefaultParser(ConvertorCache convertorCache)

DefaultParser

public DefaultParser(ConvertorCache convertorCache,
                     Resource.Resolver resolver)

DefaultParser

public DefaultParser(Resource.Resolver resolver)
Method Detail

parse

public void parse(Resource resource,
                  ApplicationContext appContext)
Description copied from class: Parser
Parses the given resource and loads it into the ApplicationContext

Specified by:
parse in class Parser

isAllowed

protected boolean isAllowed(char c)

handleUnknown

protected Object handleUnknown(org.mortbay.util.ajax.JSON.Source source,
                               char c)
Overrides:
handleUnknown in class org.mortbay.util.ajax.JSON

newMap

protected Map newMap()
Overrides:
newMap in class org.mortbay.util.ajax.JSON


Copyright © 2008-2013. All Rights Reserved.