Hi,

 

I am currently looking into possibilities to reuse code when implementing 
different implementations with groovy.

For example some ATTR_VALUE_VALIDATOR implementations might share some 
functionality.

Most of these shared code fragments should be implementable as static functions.

Therefore my first idea was to implement it as static function in a groovy 
Implementation but I don’t know how packages for these implementation work and 
If I understand ImplementationManager [1] correctly, the groovy implementations 
are also only created on demand so they would not be available to other groovy 
implementations.

The other option would be to implement them in Java and deploy them with core 
but this would require redeploy whenever something in one of these shared 
“libraries” changes.

 

Is there something that I am missing?

 

[1] 
https://github.com/apache/syncope/blob/b69ecb26fe20c7be64ea0949c7b478d97df4e620/core/spring/src/main/java/org/apache/syncope/core/spring/implementation/ImplementationManager.java#L50

 

Mit freundlichen Grüßen

Clemens (Bergmann)

 

-- 

Clemens Bergmann

[er/ihm; he/him]

Gruppe Nutzermanagement und Entwicklung

Technische Universität Darmstadt

Hochschulrechenzentrum, Alexanderstraße 2, 64283 Darmstadt

Tel. +49 6151 16 71184

 <http://www.hrz.tu-darmstadt.de/> http://www.hrz.tu-darmstadt.de/

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to