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
a9ee6f7b
Commit
a9ee6f7b
authored
15 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
SE-191 throw useful exception if plugin not found
SVN: 14461
parent
ec543939
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/openbis/dss/generic/server/plugins/tasks/PluginTaskProvider.java
+12
-2
12 additions, 2 deletions
.../dss/generic/server/plugins/tasks/PluginTaskProvider.java
with
12 additions
and
2 deletions
datastore_server/source/java/ch/systemsx/cisd/openbis/dss/generic/server/plugins/tasks/PluginTaskProvider.java
+
12
−
2
View file @
a9ee6f7b
...
@@ -50,12 +50,12 @@ public class PluginTaskProvider<P>
...
@@ -50,12 +50,12 @@ public class PluginTaskProvider<P>
/** creates an instance of the plugin with the given key */
/** creates an instance of the plugin with the given key */
public
P
createPluginInstance
(
String
pluginKey
,
File
storeRoot
)
public
P
createPluginInstance
(
String
pluginKey
,
File
storeRoot
)
{
{
return
f
actor
ies
.
tryGet
(
pluginKey
).
createPluginInstance
(
storeRoot
);
return
getF
actor
y
(
pluginKey
).
createPluginInstance
(
storeRoot
);
}
}
public
DatastoreServiceDescription
getPluginDescription
(
String
pluginKey
)
public
DatastoreServiceDescription
getPluginDescription
(
String
pluginKey
)
{
{
return
f
actor
ies
.
tryGet
(
pluginKey
).
getPluginDescription
();
return
getF
actor
y
(
pluginKey
).
getPluginDescription
();
}
}
public
List
<
DatastoreServiceDescription
>
getPluginDescriptions
()
public
List
<
DatastoreServiceDescription
>
getPluginDescriptions
()
...
@@ -87,4 +87,14 @@ public class PluginTaskProvider<P>
...
@@ -87,4 +87,14 @@ public class PluginTaskProvider<P>
}
}
}
}
private
AbstractPluginTaskFactory
<
P
>
getFactory
(
String
pluginKey
)
{
AbstractPluginTaskFactory
<
P
>
factory
=
factories
.
tryGet
(
pluginKey
);
if
(
factory
==
null
)
{
throw
new
IllegalArgumentException
(
"No plugin registered for key '"
+
pluginKey
+
"'."
);
}
return
factory
;
}
}
}
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