Commit 405388c7 authored by Philippe Merle's avatar Philippe Merle
Browse files

Moved visibility of method getClass() from protected to public in order to...

Moved visibility of method getClass() from protected to public in order to allow to invoke it from other Java packages (e.g., a FraSCAti Assembly Factory plugin).
This is required by the frascati-implementation-widget plugin.
parent caf4a79c
......@@ -67,10 +67,21 @@ public abstract class AbstractInterfaceProcessor<InterfaceType extends Interface
/**
* Get the Java class associated to the SCA interface.
*/
protected static Class<?> getClass(Interface interfaze, ProcessingContext processingContext)
public static Class<?> getClass(Interface interfaze, ProcessingContext processingContext)
{
JavaClass javaClass = processingContext.getData(interfaze, JavaClass.class);
return (javaClass == null) ? null : javaClass.getJavaClass();
if(javaClass == null) {
return null;
}
Class<?> result = javaClass.getJavaClass();
if(result == null) {
try {
result = processingContext.loadClass(javaClass.getClassName());
} catch (ClassNotFoundException cnfe) {
processingContext.warning(cnfe.getMessage());
}
}
return result;
}
//---------------------------------------------------------------------------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment