public class ClassFactoryCollector extends ClassFactoryImpl
Constructor and Description |
---|
ClassFactoryCollector()
Creates a new class factory collector.
|
Modifier and Type | Method and Description |
---|---|
void |
addFactory(ClassFactory factory)
Adds a class factory to the collection.
|
void |
configure(Configuration config)
Configures this factory.
|
boolean |
equals(Object o)
Tests for equality.
|
ObjectDescription |
getDescriptionForClass(Class c)
Returns an object description for a class.
|
Iterator |
getFactories()
Returns an iterator the provides access to all the factories in the collection.
|
Iterator |
getRegisteredClasses()
Returns an iterator that provices access to the registered classes.
|
ObjectDescription |
getSuperClassObjectDescription(Class d,
ObjectDescription knownSuperClass)
Returns an object-description for the super class of a class.
|
int |
hashCode()
Returns a hash code for the object.
|
getConfig, registerClass
public ClassFactoryCollector()
public void addFactory(ClassFactory factory)
factory
- the factory.public Iterator getFactories()
public ObjectDescription getDescriptionForClass(Class c)
getDescriptionForClass
in interface ClassFactory
getDescriptionForClass
in class ClassFactoryImpl
c
- the class.public ObjectDescription getSuperClassObjectDescription(Class d, ObjectDescription knownSuperClass)
getSuperClassObjectDescription
in interface ClassFactory
getSuperClassObjectDescription
in class ClassFactoryImpl
d
- the class.knownSuperClass
- the last known super class or null.public Iterator getRegisteredClasses()
getRegisteredClasses
in interface ClassFactory
getRegisteredClasses
in class ClassFactoryImpl
public void configure(Configuration config)
configure
in interface ClassFactory
configure
in class ClassFactoryImpl
config
- the configuration, never nullpublic boolean equals(Object o)
equals
in interface ClassFactory
equals
in class ClassFactoryImpl
o
- the object to test.public int hashCode()
hashCode
in interface ClassFactory
hashCode
in class ClassFactoryImpl
Copyright © 2017 Hitachi Vantara. All rights reserved.