Alon Bar-Lev has posted comments on this change.

Change subject: aaa: extension-manager: prepare to multiple binding support
......................................................................


Patch Set 1:

(3 comments)

http://gerrit.ovirt.org/#/c/27280/1/backend/manager/modules/extensions-api-root/extensions-api/src/main/java/org/ovirt/engine/api/extensions/Base.java
File 
backend/manager/modules/extensions-api-root/extensions-api/src/main/java/org/ovirt/engine/api/extensions/Base.java:

Line 55:          * Jboss module binding method jboss module name.
Line 56:          * <br>
Line 57:          * Mandatory.
Line 58:          */
Line 59:         public static final String BINDINGS_JBOSSMODULE_MODULE = 
"ovirt.engine.extension.binding.jbossmodule.module";
> can we put specific binding methods properties (such as JBOSS MODULE MODULE
I think it is an overkill.... easier to have a list of available config entries 
with prefix.
Line 60:         /**
Line 61:          * Jboss module binding method class name.
Line 62:          * Used to locate the service at 
META-INF/services/&lt;class&gt;.Extension.
Line 63:          * <br>


Line 75:      * Binding methods.
Line 76:      */
Line 77:     public static class ConfigBindingsMethods {
Line 78:         /**
Line 79:          * Jboss module binding method.
> is this comment really related only to jboss module binding?
well, this is the only bindings we have... :)

if we ever have others we can either refer to this one or move it to different 
place.

or we can move it now...

anything you like.
Line 80:          * Use Jboss module loading method and Java bindings.
Line 81:          * <pre>
Line 82:          * public class MyExtension implements Extension {
Line 83:          *     {@code


http://gerrit.ovirt.org/#/c/27280/1/backend/manager/modules/extensions-manager/src/main/java/org/ovirt/engine/core/extensions/mgr/ExtensionsManager.java
File 
backend/manager/modules/extensions-manager/src/main/java/org/ovirt/engine/core/extensions/mgr/ExtensionsManager.java:

Line 62:                         exception);
Line 63:             }
Line 64:         }
Line 65: 
Line 66:         private Class<?> lookupService(Class<?> serviceInterface, 
String serviceClassName, String moduleName) {
> Bare in mind this part has to do with SPI, and not necessarily JBoss module
when we will reuse we move... for now I do not see any reason to move single 
function out... just like it was already existed here... and just like the 
above function is generic for jboss modules and here...
Line 67:             // Iterate over the service classes, and find the one that 
should
Line 68:             // be instantiated and initialized.
Line 69:             Module module = loadModule(moduleName);
Line 70:             Class<?> serviceClass = null;


-- 
To view, visit http://gerrit.ovirt.org/27280
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Iab0b2efa0ac95c05a3e682bdf51e528a32b3f84a
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to