Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
7edafa8e
Commit
7edafa8e
authored
12 years ago
by
anttil
Browse files
Options
Downloads
Patches
Plain Diff
BIS-139 / SP-229: Make hot deployment work not only on initialization of DSS.
SVN: 28325
parent
f1c56a8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v2/JavaTopLevelDataSetHandlerV2.java
+24
-2
24 additions, 2 deletions
...rver/registrator/api/v2/JavaTopLevelDataSetHandlerV2.java
with
24 additions
and
2 deletions
datastore_server/source/java/ch/systemsx/cisd/etlserver/registrator/api/v2/JavaTopLevelDataSetHandlerV2.java
+
24
−
2
View file @
7edafa8e
...
...
@@ -42,6 +42,10 @@ public class JavaTopLevelDataSetHandlerV2<T extends DataSetInformation> extends
private
Class
<?
extends
IJavaDataSetRegistrationDropboxV2
>
programClass
;
private
String
className
;
private
String
dropboxName
;
/**
* @param globalState
*/
...
...
@@ -50,12 +54,14 @@ public class JavaTopLevelDataSetHandlerV2<T extends DataSetInformation> extends
{
super
(
globalState
);
String
className
=
className
=
PropertyUtils
.
getMandatoryProperty
(
globalState
.
getThreadParameters
()
.
getThreadProperties
(),
PROGRAM_CLASS_KEY
);
dropboxName
=
globalState
.
getThreadParameters
().
getThreadName
();
PluginContainer
container
=
PluginContainer
.
tryGetInstance
(
globalState
.
getThreadParameters
().
getThread
Name
()
);
PluginContainer
.
tryGetInstance
(
dropbox
Name
);
if
(
container
!=
null
)
{
...
...
@@ -160,6 +166,22 @@ public class JavaTopLevelDataSetHandlerV2<T extends DataSetInformation> extends
{
try
{
PluginContainer
container
=
PluginContainer
.
tryGetInstance
(
dropboxName
);
if
(
container
!=
null
)
{
@SuppressWarnings
(
"unchecked"
)
Class
<?
extends
IJavaDataSetRegistrationDropboxV2
>
clazz
=
(
Class
<?
extends
IJavaDataSetRegistrationDropboxV2
>)
container
.
tryGetPluginClassByClassname
(
className
);
if
(
clazz
!=
null
)
{
return
clazz
.
newInstance
();
}
}
return
programClass
.
newInstance
();
}
catch
(
InstantiationException
ex
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment