org.milyn.edisax.registry
Class AbstractMappingsRegistry

java.lang.Object
  extended by org.milyn.edisax.registry.AbstractMappingsRegistry
All Implemented Interfaces:
MappingsRegistry
Direct Known Subclasses:
DefaultMappingsRegistry, LazyMappingsRegistry

public abstract class AbstractMappingsRegistry
extends Object
implements MappingsRegistry

Base implementation of MappingsRegistry interface

Author:
zubairov

Field Summary
protected  Map<String,EdifactModel> content
          Internal storage
 
Constructor Summary
AbstractMappingsRegistry()
           
 
Method Summary
protected abstract  Map<String,EdifactModel> demandLoading(String[] nameComponents)
          Loading mapping models on demand.
 EdifactModel getMappingModel(String messageName, Delimiters delimiters)
          Returns an EdifactModel based on the message name and delimiters that should be used to parse message name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

protected final Map<String,EdifactModel> content
Internal storage

Constructor Detail

AbstractMappingsRegistry

public AbstractMappingsRegistry()
Method Detail

getMappingModel

public EdifactModel getMappingModel(String messageName,
                                    Delimiters delimiters)
                             throws EDIConfigurationException,
                                    SAXException,
                                    IOException
Returns an EdifactModel based on the message name and delimiters that should be used to parse message name.

Specified by:
getMappingModel in interface MappingsRegistry
Returns:
Throws:
SAXException
EDIConfigurationException
IOException

demandLoading

protected abstract Map<String,EdifactModel> demandLoading(String[] nameComponents)
                                                   throws EDIConfigurationException,
                                                          IOException,
                                                          SAXException
Loading mapping models on demand. This method should return either one or many mapping models loaded on-demand or just eagerly.

Parameters:
nameComponents -
Returns:
Throws:
SAXException
IOException
EDIConfigurationException


Copyright © 2011. All Rights Reserved.