org.compass.core.config.binding
Interface MappingBinding

All Known Implementing Classes:
AbstractClassMetaDataMappingBinding, AbstractConfigurationHelperMappingBinding, AbstractInputStreamMappingBinding, AnnotationsMappingBinding, CompassMappingBinding, JsonMetaDataBinding, JsonPlainMappingBinding, MappingBindingSupport, MetaDataBinding, OverrideAnnotationsWithJsonCpmMappingBinding, OverrideAnnotationsWithXmlCpmMappingBinding, PlainMappingBinding, XmlMetaDataBinding, XmlPlainMappingBinding

public interface MappingBinding

Author:
kimchy

Method Summary
 boolean addClass(Class clazz)
           
 boolean addDirectory(File dir)
           
 boolean addFile(File file)
           
 boolean addFile(String filePath)
           
 boolean addInputStream(InputStream is, String resourceName)
           
 boolean addJar(File jar)
           
 boolean addMappingResolver(InputStreamMappingResolver mappingResolver)
           
 boolean addPackage(String packageName)
           
 boolean addResource(String path)
           
 boolean addResource(String path, ClassLoader classLoader)
           
 boolean addResourceMapping(ResourceMapping resourceMapping)
           
 boolean addURL(URL url)
           
 String[] getSuffixes()
           
 void setUpBinding(InternalCompassMapping mapping, CompassMetaData metaData, CompassSettings settings)
           
 

Method Detail

setUpBinding

void setUpBinding(InternalCompassMapping mapping,
                  CompassMetaData metaData,
                  CompassSettings settings)

addResource

boolean addResource(String path)
                    throws ConfigurationException,
                           MappingException
Throws:
ConfigurationException
MappingException

addResource

boolean addResource(String path,
                    ClassLoader classLoader)
                    throws ConfigurationException,
                           MappingException
Throws:
ConfigurationException
MappingException

addURL

boolean addURL(URL url)
               throws ConfigurationException,
                      MappingException
Throws:
ConfigurationException
MappingException

addDirectory

boolean addDirectory(File dir)
                     throws ConfigurationException,
                            MappingException
Throws:
ConfigurationException
MappingException

addPackage

boolean addPackage(String packageName)
                   throws ConfigurationException,
                          MappingException
Throws:
ConfigurationException
MappingException

addJar

boolean addJar(File jar)
               throws ConfigurationException,
                      MappingException
Throws:
ConfigurationException
MappingException

addFile

boolean addFile(String filePath)
                throws ConfigurationException,
                       MappingException
Throws:
ConfigurationException
MappingException

addFile

boolean addFile(File file)
                throws ConfigurationException,
                       MappingException
Throws:
ConfigurationException
MappingException

addClass

boolean addClass(Class clazz)
                 throws ConfigurationException,
                        MappingException
Throws:
ConfigurationException
MappingException

addMappingResolver

boolean addMappingResolver(InputStreamMappingResolver mappingResolver)
                           throws ConfigurationException,
                                  MappingException
Throws:
ConfigurationException
MappingException

addInputStream

boolean addInputStream(InputStream is,
                       String resourceName)
                       throws ConfigurationException,
                              MappingException
Throws:
ConfigurationException
MappingException

addResourceMapping

boolean addResourceMapping(ResourceMapping resourceMapping)
                           throws ConfigurationException,
                                  MappingException
Throws:
ConfigurationException
MappingException

getSuffixes

String[] getSuffixes()


Copyright (c) 2004-2008 The Compass Project.