org.compass.annotations.config.binding
Class AnnotationsMappingBinding

java.lang.Object
  extended by org.compass.core.config.binding.AbstractInputStreamMappingBinding
      extended by org.compass.core.config.binding.AbstractClassMetaDataMappingBinding
          extended by org.compass.annotations.config.binding.AnnotationsMappingBinding
All Implemented Interfaces:
MappingBinding

public class AnnotationsMappingBinding
extends AbstractClassMetaDataMappingBinding

Author:
kimchy

Field Summary
static org.apache.commons.logging.Log log
           
 
Fields inherited from class org.compass.core.config.binding.AbstractInputStreamMappingBinding
metaData
 
Constructor Summary
AnnotationsMappingBinding()
           
 
Method Summary
 boolean addClass(Class clazz)
           
 boolean addPackage(String packageName)
           
 Converter getConverter(Class<?> clazz, Type type)
           
protected  boolean isApplicable(ClassMetaData classMetaData)
           
 void setUpBinding(CompassMapping mapping, CompassMetaData metaData, CompassSettings settings)
           
 
Methods inherited from class org.compass.core.config.binding.AbstractClassMetaDataMappingBinding
doAddInputStream, getSuffixes
 
Methods inherited from class org.compass.core.config.binding.AbstractInputStreamMappingBinding
addDirectory, addFile, addFile, addInputStream, addJar, addMappingResolver, addResoruceMapping, addResource, addResource, addURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.commons.logging.Log log
Constructor Detail

AnnotationsMappingBinding

public AnnotationsMappingBinding()
Method Detail

setUpBinding

public void setUpBinding(CompassMapping mapping,
                         CompassMetaData metaData,
                         CompassSettings settings)
Specified by:
setUpBinding in interface MappingBinding
Overrides:
setUpBinding in class AbstractClassMetaDataMappingBinding

isApplicable

protected boolean isApplicable(ClassMetaData classMetaData)
Specified by:
isApplicable in class AbstractClassMetaDataMappingBinding

addPackage

public boolean addPackage(String packageName)
                   throws ConfigurationException,
                          MappingException
Specified by:
addPackage in interface MappingBinding
Overrides:
addPackage in class AbstractInputStreamMappingBinding
Throws:
ConfigurationException
MappingException

addClass

public boolean addClass(Class clazz)
                 throws ConfigurationException,
                        MappingException
Specified by:
addClass in interface MappingBinding
Overrides:
addClass in class AbstractInputStreamMappingBinding
Throws:
ConfigurationException
MappingException

getConverter

public Converter getConverter(Class<?> clazz,
                              Type type)


Copyright (c) 2004-2008 The Compass Project.