Class N2oMetadataPersisterFactory
- java.lang.Object
-
- net.n2oapp.framework.config.persister.N2oMetadataPersisterFactory
-
- All Implemented Interfaces:
IOProcessorAware,ElementPersisterFactory<NamespaceUriAware,NamespacePersister<NamespaceUriAware>>,NamespacePersisterFactory<NamespaceUriAware,NamespacePersister<NamespaceUriAware>>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class N2oMetadataPersisterFactory extends Object implements NamespacePersisterFactory<NamespaceUriAware,NamespacePersister<NamespaceUriAware>>, org.springframework.context.ApplicationContextAware, IOProcessorAware
Фабрика, генерирующая сервис для записи объектов в DOM элементы Необходимый класс выбирается по типу объекта для записи, если для этого типа больше одного варианта, то отбирается N2oMetadataPersister с namespaceURI идентичным namespaceURI объекта
-
-
Constructor Summary
Constructors Constructor Description N2oMetadataPersisterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(NamespacePersister<NamespaceUriAware> persister)NamespacePersister<NamespaceUriAware>produce(org.jdom.Namespace namespace, Class clazz)voidsetApplicationContext(org.springframework.context.ApplicationContext context)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.persister.NamespacePersisterFactory
produce
-
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
produce
public NamespacePersister<NamespaceUriAware> produce(org.jdom.Namespace namespace, Class clazz)
- Specified by:
producein interfaceNamespacePersisterFactory<NamespaceUriAware,NamespacePersister<NamespaceUriAware>>
-
add
public void add(NamespacePersister<NamespaceUriAware> persister)
- Specified by:
addin interfaceNamespacePersisterFactory<NamespaceUriAware,NamespacePersister<NamespaceUriAware>>
-
setIOProcessor
public void setIOProcessor(IOProcessor processor)
- Specified by:
setIOProcessorin interfaceIOProcessorAware
-
-