-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Client constructors public #34
Comments
Ok. Why did I make that private? I wonder... I don't think there's a reason why it should remain private. I'll add it to the 5.9.2 to-do. |
Ok, great ! I just tried the connection with the session ID and it also works. |
* Switch to pom-scijava 32.0.0 * Switch to JUnit5 * Send output from tests to target/logs * Change setup to JDK 8 * Add methods to create a screen and refactor code to import images to screens * Add method addAndReplaceTable (#32) * Add test for addAndReplaceTable * Make Client constructor with arguments public (#34) * Add methods to retrieve well, plate and screen from an image (#35) * Add LibraryChecker utility class to check if required libraries are available (#36) * Make specific tests for LibraryChecker * Add time increment to ImagePlus and set the position to the first slice * Use float coordinates for IJ ROI conversion * Split ImageTest * Simplify key/value tests in ImageTest * Prevent GatewayWrapper from containing null fields * Override toString method in GatewayWrapper and add server information to context * Change disconnect method so that a sudo client does not disconnect the gateway * Replace System.err.println with logger * Add tests * Add serialVersionUID to classes that require it * Fix and improve Javadoc * Rename some variables * Minor code improvements
Should be solved in 5.9.2. |
Hello @ppouchin,
We are trying to create an instance of the Client object without asking the user his credentials.
In our project, the user logged-in and the gateway is kept active while his credentials are lost. At some point, we need to create a Client object from the simple-omero-client API. For convienance, we do not want to ask the user to log-in twice.
I saw that Client object has 2 constructors but the interested one is private. For now, we use java reflection methods to get access to the private constructor (you can see how here).
In order to make a cleaner code, I was thinking to put this constructor public.
What do you think about that ? Is it possible ?
Thanks,
Rémy.
ping @lacan, @romainGuiet, @NicoKiaru
The text was updated successfully, but these errors were encountered: