Package jadex.microservice
Class MicroserviceClassReader
- java.lang.Object
-
- jadex.microservice.MicroserviceClassReader
-
public class MicroserviceClassReader extends java.lang.Object
Reads microservice classes and generates a model from metainfo and annotations.
-
-
Constructor Summary
Constructors Constructor Description MicroserviceClassReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillMicroModelFromAnnotations(MicroModel micromodel, java.lang.String model, java.lang.Class<?> clazz, java.lang.ClassLoader cl)
Fill the model details using annotation.protected java.lang.Class<?>
getMicroserviceClass(java.lang.String clname, java.lang.String[] imports, java.lang.ClassLoader classloader)
Get the mirco agent class.protected MicroModel
read(java.lang.String model, java.lang.Class<?> cma, java.lang.ClassLoader classloader, IResourceIdentifier rid, IComponentIdentifier root, java.util.List<IComponentFeatureFactory> features)
Load the model.MicroModel
read(java.lang.String model, java.lang.String[] imports, java.lang.ClassLoader classloader, IResourceIdentifier rid, IComponentIdentifier root, java.util.List<IComponentFeatureFactory> features)
Load a model.
-
-
-
Method Detail
-
read
public MicroModel read(java.lang.String model, java.lang.String[] imports, java.lang.ClassLoader classloader, IResourceIdentifier rid, IComponentIdentifier root, java.util.List<IComponentFeatureFactory> features)
Load a model.- Parameters:
model
- The model (e.g. file name).The
- imports (if any).- Returns:
- The loaded model.
-
read
protected MicroModel read(java.lang.String model, java.lang.Class<?> cma, java.lang.ClassLoader classloader, IResourceIdentifier rid, IComponentIdentifier root, java.util.List<IComponentFeatureFactory> features)
Load the model.
-
fillMicroModelFromAnnotations
protected void fillMicroModelFromAnnotations(MicroModel micromodel, java.lang.String model, java.lang.Class<?> clazz, java.lang.ClassLoader cl)
Fill the model details using annotation.
-
getMicroserviceClass
protected java.lang.Class<?> getMicroserviceClass(java.lang.String clname, java.lang.String[] imports, java.lang.ClassLoader classloader)
Get the mirco agent class.
-
-