Package org.exolab.castor.persist
Class DatingService
java.lang.Object
org.exolab.castor.persist.DatingService
DataService is a helper class for constructing ClassMolders and
pairing up ClassMolders which depends and extends the other.
- Author:
- Thomas Yip
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
close()
Indicate that all ClassMolder is registered.(package private) boolean
pairDepends
(ClassMolder me, String depName) Pair up ClassMolder and it depends class.(package private) boolean
pairExtends
(ClassMolder me, String extName) Pair up ClassMolder and it extends class.(package private) boolean
pairFieldClass
(FieldMolder fieldMolder, String typeName) Pair the FieldMolder with the ClassMolder of typeName.(package private) void
register
(String name, ClassMolder clsMold) Register the name of a ClassMolder which will be pairing up.(package private) Class
<?> Resolve the java.lang.Class of the fully qualified class name.
-
Constructor Details
-
DatingService
DatingService(ClassLoader loader)
-
-
Method Details
-
close
Indicate that all ClassMolder is registered. DatingService will resolve all the outstanding relation now.- Throws:
MappingException
-
pairExtends
Pair up ClassMolder and it extends class.- Returns:
- true if they can be paired up immediately.
- Throws:
MappingException
-
pairDepends
Pair up ClassMolder and it depends class.- Returns:
- true if they can be paired up immediately.
-
resolve
Resolve the java.lang.Class of the fully qualified class name.- Throws:
ClassNotFoundException
-
pairFieldClass
Pair the FieldMolder with the ClassMolder of typeName.- Parameters:
fieldMolder
- the fieldMolder to be paired.typeName
- Type of the field which the FieldMolder represents.- Throws:
MappingException
- indicates that the pairing failed.
-
register
Register the name of a ClassMolder which will be pairing up.
-