public abstract class ClassMapBuilderFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DefaultFieldMapper[] |
defaults
The DefaultFieldMappers applied by this factory
|
protected MapperFactory |
mapperFactory
The MapperFactory used by this factory
|
protected ClassMapBuilderFactory |
nextClassMapBuilderFactory
The next factory in the chain
|
protected PropertyResolverStrategy |
propertyResolver
The PropertyResolver used by this factory
|
| Constructor and Description |
|---|
ClassMapBuilderFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected <A,B> boolean |
appliesTo(Type<A> aType,
Type<B> bType)
Return true if this implementation of factory is suitable for received types
|
<A,B> ClassMapBuilderFactory |
chooseClassMapBuilderFactory(Type<A> aType,
Type<B> bType)
Choose suitable ClassMapBuilderFactory for types from factories chain
|
boolean |
isInitialized()
Verifies whether the factory has been properly initialized
|
<A,B> ClassMapBuilder<A,B> |
map(Class<A> aType,
Class<B> bType)
Begin a new mapping for the specified classes.
|
<A,B> ClassMapBuilder<A,B> |
map(Class<A> aType,
Type<B> bType)
Begin a new mapping for the specified class and type.
|
<A,B> ClassMapBuilder<A,B> |
map(Type<A> aType,
Class<B> bType)
Begin a new mapping for the specified type and class.
|
<A,B> ClassMapBuilder<A,B> |
map(Type<A> aType,
Type<B> bType)
Begin a new mapping for the specified types.
|
protected abstract <A,B> ClassMapBuilder<A,B> |
newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults)
Generates a new ClassMapBuilder instance
|
void |
setChainClassMapBuilderFactory(ClassMapBuilderFactory classMapBuilderFactory)
Set the next ClassMapBuilderFactory in the chain
|
void |
setDefaultFieldMappers(DefaultFieldMapper... defaults) |
void |
setMapperFactory(MapperFactory mapperFactory) |
void |
setPropertyResolver(PropertyResolverStrategy propertyResolver) |
protected ClassMapBuilderFactory nextClassMapBuilderFactory
protected MapperFactory mapperFactory
protected PropertyResolverStrategy propertyResolver
protected DefaultFieldMapper[] defaults
public void setMapperFactory(MapperFactory mapperFactory)
mapperFactory - the MapperFactory which will be used to register the ClassMapBuilder
instances via their 'register()' methodprotected <A,B> boolean appliesTo(Type<A> aType, Type<B> bType)
aType - bType - public void setChainClassMapBuilderFactory(ClassMapBuilderFactory classMapBuilderFactory)
classMapBuilderFactory - public <A,B> ClassMapBuilderFactory chooseClassMapBuilderFactory(Type<A> aType, Type<B> bType)
A - B - aType - bType - public void setPropertyResolver(PropertyResolverStrategy propertyResolver)
propertyResolver - the PropertyResolverStrategy instance to use when resolving
properties of the mapped typespublic void setDefaultFieldMappers(DefaultFieldMapper... defaults)
defaults - zero or more DefaultFieldMapper instances that should be
applied when the byDefault method of the
ClassMapBuilder is called.public boolean isInitialized()
protected abstract <A,B> ClassMapBuilder<A,B> newClassMapBuilder(Type<A> aType, Type<B> bType, MapperFactory mapperFactory, PropertyResolverStrategy propertyResolver, DefaultFieldMapper[] defaults)
aType - bType - public <A,B> ClassMapBuilder<A,B> map(Type<A> aType, Type<B> bType)
aType - bType - public <A,B> ClassMapBuilder<A,B> map(Class<A> aType, Type<B> bType)
aType - bType - public <A,B> ClassMapBuilder<A,B> map(Type<A> aType, Class<B> bType)
aType - bType - public <A,B> ClassMapBuilder<A,B> map(Class<A> aType, Class<B> bType)
aType - bType - Copyright © 2017 Glasnost. All Rights Reserved.