com.ca.commons.datamodel.concurrent
Class ConcurrentBuilder

java.lang.Object
  extended by com.ca.commons.datamodel.concurrent.ConcurrentBuilder
All Implemented Interfaces:
DataModelBuilder

public final class ConcurrentBuilder
extends Object
implements DataModelBuilder


Field Summary
static Logger logger
           
 
Fields inherited from interface com.ca.commons.datamodel.DataModelBuilder
metadataMismatchLogger
 
Constructor Summary
ConcurrentBuilder()
           
 
Method Summary
 ConcurrentDataModel getDataModel()
           
 void mergeFragment(DataModelSource readSource)
          Used to read in a fragment containing values which aren't going to edited, either because the client application is read-only or because this fragment is static as far as it is concerned.
 Set<String> mergeFragments(DataModelSource... readSources)
           
 Set<String> mergeFragments(Iterable<? extends DataModelSource> readSources)
           
 Set<String> refresh()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

ConcurrentBuilder

public ConcurrentBuilder()
Method Detail

getDataModel

@NotNull
public ConcurrentDataModel getDataModel()
Specified by:
getDataModel in interface DataModelBuilder

mergeFragment

public void mergeFragment(@NotNull
                          DataModelSource readSource)
                   throws DataModelException,
                          IOException,
                          javax.xml.bind.JAXBException
Description copied from interface: DataModelBuilder
Used to read in a fragment containing values which aren't going to edited, either because the client application is read-only or because this fragment is static as far as it is concerned.

Specified by:
mergeFragment in interface DataModelBuilder
Parameters:
readSource - Read-only source from which datamodel fragment should be read.
Throws:
DataModelSourceException - Problem getting, or processing, fragment.
DataModelException
IOException
javax.xml.bind.JAXBException

mergeFragments

@NotNull
public Set<String> mergeFragments(@NotNull
                                          DataModelSource... readSources)
                           throws DataModelException,
                                  IOException,
                                  javax.xml.bind.JAXBException
Throws:
DataModelException
IOException
javax.xml.bind.JAXBException

mergeFragments

@NotNull
public Set<String> mergeFragments(@NotNull
                                          Iterable<? extends DataModelSource> readSources)
                           throws DataModelException,
                                  IOException,
                                  javax.xml.bind.JAXBException
Throws:
DataModelException
IOException
javax.xml.bind.JAXBException

refresh

@NotNull
public Set<String> refresh()
                    throws IOException,
                           javax.xml.bind.JAXBException
Throws:
IOException
javax.xml.bind.JAXBException


Created 2011-07-14 13:27 EST