com.dyuproject.ioc
Class Parser

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

public abstract class Parser
extends StandardJSON

Base class for a parser.

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
protected  Resource.Resolver _resolver
           
static Parser DEFAULT
          The default instance.
 
Fields inherited from class com.dyuproject.json.StandardJSON
_addClass, _convertorCache
 
Constructor Summary
protected Parser(ConvertorCache convertorCache, Resource.Resolver resolver)
           
 
Method Summary
static Parser getDefault()
          Gets the default instance.
 Resource.Resolver getResolver()
          Gets the resolver.
abstract  void parse(Resource resource, ApplicationContext appContext)
          Parses the given resource and loads it into the ApplicationContext
 
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, handleUnknown, newArray, newMap, 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
 

Field Detail

DEFAULT

public static final Parser DEFAULT
The default instance. (DefaultParser)


_resolver

protected final Resource.Resolver _resolver
Constructor Detail

Parser

protected Parser(ConvertorCache convertorCache,
                 Resource.Resolver resolver)
Method Detail

getDefault

public static Parser getDefault()
Gets the default instance.


getResolver

public Resource.Resolver getResolver()
Gets the resolver.


parse

public abstract void parse(Resource resource,
                           ApplicationContext appContext)
Parses the given resource and loads it into the ApplicationContext



Copyright © 2008-2013. All Rights Reserved.