kr.co.hit.live.container.impl
Class XmlServiceDefinitionParser
java.lang.Object
org.xml.sax.helpers.DefaultHandler
kr.co.hit.live.container.impl.XmlServiceDefinitionParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class XmlServiceDefinitionParser
- extends org.xml.sax.helpers.DefaultHandler
하나의 서비스 구성파일을 파싱한다.
다중쓰레드를 지원하지 않으므로 매번 XmlServiceParser 객체를 생성하여 사용해야 한다.
- Since:
- 4.0
- Author:
- 김형도
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PUBLIC_ID
protected static final String PUBLIC_ID
- See Also:
- Constant Field Values
DTD_RESOURCE
protected static final String DTD_RESOURCE
- See Also:
- Constant Field Values
ROOT_NODE
protected static final String ROOT_NODE
- See Also:
- Constant Field Values
ATTR_ROOT_MODULE
protected static final String ATTR_ROOT_MODULE
- See Also:
- Constant Field Values
ATTR_ROOT_PACKAGE
protected static final String ATTR_ROOT_PACKAGE
- See Also:
- Constant Field Values
ATTR_ROOT_RESOURCE
protected static final String ATTR_ROOT_RESOURCE
- See Also:
- Constant Field Values
ATTR_ROOT_PREINIT
protected static final String ATTR_ROOT_PREINIT
- See Also:
- Constant Field Values
SERVICE_NODE
protected static final String SERVICE_NODE
- See Also:
- Constant Field Values
ATTR_SERVICE_NAME
protected static final String ATTR_SERVICE_NAME
- See Also:
- Constant Field Values
ATTR_SERVICE_CLASS
protected static final String ATTR_SERVICE_CLASS
- See Also:
- Constant Field Values
ATTR_SERVICE_INF
protected static final String ATTR_SERVICE_INF
- See Also:
- Constant Field Values
ATTR_SERVICE_INTERCEPTOR
protected static final String ATTR_SERVICE_INTERCEPTOR
- See Also:
- Constant Field Values
ATTR_SERVICE_INIT_METHOD
protected static final String ATTR_SERVICE_INIT_METHOD
- See Also:
- Constant Field Values
ATTR_SERVICE_DESTROY_METHOD
protected static final String ATTR_SERVICE_DESTROY_METHOD
- See Also:
- Constant Field Values
ATTR_SERVICE_SINGLETON
protected static final String ATTR_SERVICE_SINGLETON
- See Also:
- Constant Field Values
ATTR_SERVICE_ACTIVATE
protected static final String ATTR_SERVICE_ACTIVATE
- See Also:
- Constant Field Values
ATTR_SERVICE_PREINIT
protected static final String ATTR_SERVICE_PREINIT
- See Also:
- Constant Field Values
ATTR_SERVICE_LOADPRIORITY
protected static final String ATTR_SERVICE_LOADPRIORITY
- See Also:
- Constant Field Values
PROPERTY_NODE
protected static final String PROPERTY_NODE
- See Also:
- Constant Field Values
ATTR_PROPERTY_NAME
protected static final String ATTR_PROPERTY_NAME
- See Also:
- Constant Field Values
ATTR_PROPERTY_VALUE
protected static final String ATTR_PROPERTY_VALUE
- See Also:
- Constant Field Values
ATTR_PROPERTY_REF
protected static final String ATTR_PROPERTY_REF
- See Also:
- Constant Field Values
CONSTRUCTOR_NODE
protected static final String CONSTRUCTOR_NODE
- See Also:
- Constant Field Values
FACTORY_NODE
protected static final String FACTORY_NODE
- See Also:
- Constant Field Values
ATTR_FACTORY_CLASS
protected static final String ATTR_FACTORY_CLASS
- See Also:
- Constant Field Values
ATTR_FACTORY_METHOD
protected static final String ATTR_FACTORY_METHOD
- See Also:
- Constant Field Values
ATTR_FACTORY_REF
protected static final String ATTR_FACTORY_REF
- See Also:
- Constant Field Values
ARGUMENT_NODE
protected static final String ARGUMENT_NODE
- See Also:
- Constant Field Values
ATTR_ARGUMENT_TYPE
protected static final String ATTR_ARGUMENT_TYPE
- See Also:
- Constant Field Values
ATTR_ARGUMENT_VALUE
protected static final String ATTR_ARGUMENT_VALUE
- See Also:
- Constant Field Values
ATTR_ARGUMENT_REF
protected static final String ATTR_ARGUMENT_REF
- See Also:
- Constant Field Values
XmlServiceDefinitionParser
public XmlServiceDefinitionParser()
parse
public List<ServiceDefinition> parse(InputStream is)
throws SAXException,
IOException
- 서비스 구성 파일을 파싱하여 파싱된 ServiceDefinition 객체들을 List에 담아 리턴한다.
- Parameters:
is - svcRegistry -
- Returns:
-
- Throws:
ServiceContainerException
SAXException
IOException
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
- SAXParser의 EntityResolver 재정의
- Specified by:
resolveEntity in interface EntityResolver- Overrides:
resolveEntity in class org.xml.sax.helpers.DefaultHandler
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startElement
public void startElement(String namespaceURI,
String sName,
String qName,
Attributes attrs)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String namespaceURI,
String sName,
String qName)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
Copyright © 2014. All Rights Reserved.