public abstract class ClassFactoryImpl extends Object implements ClassFactory
ClassFactory
interface.Modifier | Constructor and Description |
---|---|
protected |
ClassFactoryImpl()
Creates a new class factory.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration config)
Configures this factory.
|
boolean |
equals(Object o)
Tests for equality.
|
Configuration |
getConfig()
Returns the currently set configuration or null, if none was set.
|
ObjectDescription |
getDescriptionForClass(Class c)
Returns an object-description for a class.
|
Iterator |
getRegisteredClasses()
Returns an iterator that provides access to the registered object definitions.
|
ObjectDescription |
getSuperClassObjectDescription(Class d,
ObjectDescription knownSuperClass)
Returns the most concrete object-description for the super class of a class.
|
int |
hashCode()
Returns a hash code.
|
protected void |
registerClass(Class key,
ObjectDescription od)
Registers an object description with the factory.
|
public ObjectDescription getDescriptionForClass(Class c)
getDescriptionForClass
in interface ClassFactory
c
- the class.public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
getSuperClassObjectDescription
in interface ClassFactory
d
- the class.knownSuperClass
- a known supported superclass or null, if no superclass is known yet.protected void registerClass(Class key, ObjectDescription od)
key
- the key.od
- the object description.public Iterator getRegisteredClasses()
getRegisteredClasses
in interface ClassFactory
public void configure(Configuration config)
configure
in interface ClassFactory
config
- the configuration, never nullpublic Configuration getConfig()
public boolean equals(Object o)
equals
in interface ClassFactory
equals
in class Object
o
- the object to test.public int hashCode()
hashCode
in interface ClassFactory
hashCode
in class Object
Copyright © 2017 Hitachi Vantara. All rights reserved.