Class N2oNamespaceReaderFactory<T extends NamespaceUriAware>
- java.lang.Object
-
- net.n2oapp.framework.config.reader.N2oNamespaceReaderFactory<T>
-
- All Implemented Interfaces:
IOProcessorAware,ElementReaderFactory<T,NamespaceReader<T>>,NamespaceReaderFactory<T,NamespaceReader<T>>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class N2oNamespaceReaderFactory<T extends NamespaceUriAware> extends Object implements NamespaceReaderFactory<T,NamespaceReader<T>>, org.springframework.context.ApplicationContextAware, IOProcessorAware
Фабрика, генерирующая сервисы чтения xml файлов(метаданных) в объекты n2o. Подходящий сервис отыскивается сначала по имени DOM элемента, если он неуникальный поиск уточняется по namespaceUri.
-
-
Constructor Summary
Constructors Constructor Description N2oNamespaceReaderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(NamespaceReader<T> reader)NamespaceReader<T>produce(org.jdom.Namespace namespace, String elementName)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetIOProcessor(IOProcessor processor)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.n2oapp.framework.api.metadata.reader.NamespaceReaderFactory
produce, produce
-
-
-
-
Method Detail
-
produce
public NamespaceReader<T> produce(org.jdom.Namespace namespace, String elementName)
- Specified by:
producein interfaceNamespaceReaderFactory<T extends NamespaceUriAware,NamespaceReader<T extends NamespaceUriAware>>
-
add
public void add(NamespaceReader<T> reader)
- Specified by:
addin interfaceNamespaceReaderFactory<T extends NamespaceUriAware,NamespaceReader<T extends NamespaceUriAware>>
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setIOProcessor
public void setIOProcessor(IOProcessor processor)
- Specified by:
setIOProcessorin interfaceIOProcessorAware
-
-