|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.metadata.ClassMapBuilderFactory
public abstract class ClassMapBuilderFactory
ClassMapBuilderFactory should be used to construct the new instances of ClassMapBuilder needed to register a mapping from one class/type to another class/type.
| Field Summary | |
|---|---|
protected ClassMapBuilderFactory |
chainClassMapBuilderFactory
|
protected DefaultFieldMapper[] |
defaults
|
protected MapperFactory |
mapperFactory
|
protected PropertyResolverStrategy |
propertyResolver
|
| Constructor Summary | |
|---|---|
ClassMapBuilderFactory()
|
|
| Method Summary | ||
|---|---|---|
protected
|
applied(Type<A> aType,
Type<B> bType)
Return true if this implementation of factory is suitable for received types |
|
|
choiceClassMapBuilderFactory(Type<A> aType,
Type<B> bType)
Choice suitable ClassMapBuilderFactory for types from factories chain |
|
boolean |
isInitialized()
Verifies whether the factory has been properly initialized |
|
|
map(Class<A> aType,
Class<B> bType)
Begin a new mapping for the specified classes. |
|
|
map(Class<A> aType,
Type<B> bType)
Begin a new mapping for the specified class and type. |
|
|
map(Type<A> aType,
Class<B> bType)
Begin a new mapping for the specified type and class. |
|
|
map(Type<A> aType,
Type<B> bType)
Begin a new mapping for the specified types. |
|
protected abstract
|
newClassMapBuilder(Type<A> aType,
Type<B> bType,
MapperFactory mapperFactory,
PropertyResolverStrategy propertyResolver,
DefaultFieldMapper[] defaults)
Generates a new ClassMapBuilder instance |
|
void |
setChainClassMapBuilderFactory(ClassMapBuilderFactory classMapBuilderFactory)
|
|
void |
setDefaultFieldMappers(DefaultFieldMapper... defaults)
|
|
void |
setMapperFactory(MapperFactory mapperFactory)
|
|
void |
setPropertyResolver(PropertyResolverStrategy propertyResolver)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClassMapBuilderFactory chainClassMapBuilderFactory
protected MapperFactory mapperFactory
protected PropertyResolverStrategy propertyResolver
protected DefaultFieldMapper[] defaults
| Constructor Detail |
|---|
public ClassMapBuilderFactory()
| Method Detail |
|---|
public void setMapperFactory(MapperFactory mapperFactory)
mapperFactory - the MapperFactory which will be used to register the ClassMapBuilder
instances via their 'register()' method
protected <A,B> boolean applied(Type<A> aType,
Type<B> bType)
aType - bType -
public void setChainClassMapBuilderFactory(ClassMapBuilderFactory classMapBuilderFactory)
public <A,B> ClassMapBuilderFactory choiceClassMapBuilderFactory(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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||