public interface ClassLoadingStrategy
In a "plain" Java SE runtime, a default implementation would use
simple Class.forName()
(for Java classes) or local
file-lookup (for actor-oriented classes) or similar.
In an OSGi-based runtime, more advanced options can be implemented to allow dynamic actor class updates, version management etc.
Modifier and Type | Method and Description |
---|---|
CompositeEntity |
loadActorOrientedClass(java.lang.String className,
VersionSpecification versionSpec)
Load an actor-oriented class, which is typically a .moml file.
|
java.lang.Class |
loadJavaClass(java.lang.String className,
VersionSpecification versionSpec)
Load a Java class.
|
java.lang.Class loadJavaClass(java.lang.String className, VersionSpecification versionSpec) throws java.lang.ClassNotFoundException
className
- The namee of the class.versionSpec
- The versionjava.lang.ClassNotFoundException
- If the class is not found.CompositeEntity loadActorOrientedClass(java.lang.String className, VersionSpecification versionSpec) throws java.lang.ClassNotFoundException
className
- The namee of the class.versionSpec
- The versionjava.lang.ClassNotFoundException
- If the class is not found.