public interface ModelElementClassProvider
Most important cases are actors and directors. But also dedicated port or parameter classes can be offered via implementations of this interface.
Modifier and Type | Method and Description |
---|---|
java.lang.Class<? extends NamedObj> |
getClass(java.lang.String className,
VersionSpecification versionSpec)
Return the requested class for the requested version (if specified).
|
java.lang.Class<? extends NamedObj> getClass(java.lang.String className, VersionSpecification versionSpec) throws java.lang.ClassNotFoundException
ClassNotFoundException
.
(Optionally, it could also just return null, for those dvp-ers who don't like exceptions. ;-) )className
- typically a fully qualified Java class name. Mandatory non-null.versionSpec
- optional constraint on desired version for the class that must be provided. If null, no version constraint is imposed.NamedObj
matching the given className.java.lang.ClassNotFoundException
- if this provider can not provide the requested class for the requested version (if specified)VersionSpecification