org.compass.annotations.config
Class CompassAnnotationsConfiguration

java.lang.Object
  extended by org.compass.core.config.CompassConfiguration
      extended by org.compass.annotations.config.CompassAnnotationsConfiguration

public class CompassAnnotationsConfiguration
extends CompassConfiguration

A specialized Compass configuration that can handle classes that have search annotations. Allows for integration with other xml mappings (annotations can extend contracts defined in xml files), and also provides the ability to override annotations definition by having a mapping file matching the class with cpm.ann.xml suffix. If the annotated class also have a cpm.xml mapping definitions, both mappings will be joined, with the cpm.xml read first.

Author:
kimchy

Field Summary
 
Fields inherited from class org.compass.core.config.CompassConfiguration
configurationBuilder, log, mappingBinding
 
Constructor Summary
CompassAnnotationsConfiguration()
           
 
Method Summary
protected  void addMappingBindings(CompassMappingBinding mappingBinding)
           
protected  void registerExtraConverters(ConverterLookup converterLookup)
           
 
Methods inherited from class org.compass.core.config.CompassConfiguration
addClass, addDirectory, addFile, addFile, addInputStream, addJar, addMappingResover, addPackage, addResource, addResource, addResourceMapping, addURL, buildCompass, configure, configure, configure, configure, getSettings, registerConverter, setConnection, setSetting, tryAddClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompassAnnotationsConfiguration

public CompassAnnotationsConfiguration()
Method Detail

addMappingBindings

protected void addMappingBindings(CompassMappingBinding mappingBinding)
Overrides:
addMappingBindings in class CompassConfiguration

registerExtraConverters

protected void registerExtraConverters(ConverterLookup converterLookup)
Overrides:
registerExtraConverters in class CompassConfiguration


Copyright (c) 2004-2006 The Compass Project.