org.skyscreamer.yoga.configuration
Class NullEntityConfigurationRegistry

java.lang.Object
  extended by org.skyscreamer.yoga.configuration.NullEntityConfigurationRegistry
All Implemented Interfaces:
EntityConfigurationRegistry

public class NullEntityConfigurationRegistry
extends Object
implements EntityConfigurationRegistry

Null value implementation of the EntityConfigurationRegistry.

See Also:
EntityConfigurationRegistry, YogaEntityConfiguration

Constructor Summary
NullEntityConfigurationRegistry()
           
 
Method Summary
<T> YogaEntityConfiguration<T>
getEntityConfiguration(Class<T> clazz)
          Lookup the entity configuration for a given class.
 void register(YogaEntityConfiguration<?>... entityConfigurations)
          Register one or more entity configurations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullEntityConfigurationRegistry

public NullEntityConfigurationRegistry()
Method Detail

register

public void register(YogaEntityConfiguration<?>... entityConfigurations)
Description copied from interface: EntityConfigurationRegistry
Register one or more entity configurations. Multiple calls to this method are additive, except in the case of multiple configurations for the same entity class. In that case the last configuration wins.

Specified by:
register in interface EntityConfigurationRegistry
Parameters:
entityConfigurations - The entity configurations to register

getEntityConfiguration

public <T> YogaEntityConfiguration<T> getEntityConfiguration(Class<T> clazz)
Lookup the entity configuration for a given class.

Specified by:
getEntityConfiguration in interface EntityConfigurationRegistry
Parameters:
clazz - The class of the entity configuration to retrieve
Returns:
Entity configuration for a given class


Copyright © 2013. All Rights Reserved.