Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
c7abaef3
Commit
c7abaef3
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Full funcional object now, root need to be in the constructor of class
parent
869e1851
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
biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/config/Configurable.scala
+5
-4
5 additions, 4 deletions
.../scala/nl/lumc/sasc/biopet/core/config/Configurable.scala
with
5 additions
and
4 deletions
biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/config/Configurable.scala
+
5
−
4
View file @
c7abaef3
...
...
@@ -4,10 +4,11 @@ import java.io.File
import
org.broadinstitute.sting.queue.util.Logging
trait
Configurable
extends
Logging
{
val
globalConfig
:
Config
val
configPath
:
List
[
String
]
protected
var
configName
=
getClass
.
getSimpleName
.
toLowerCase
protected
var
configFullPath
=
configName
::
configPath
val
root
:
Configurable
val
globalConfig
:
Config
=
if
(
root
!=
null
)
root
.
globalConfig
else
new
Config
()
val
configPath
:
List
[
String
]
=
if
(
root
!=
null
)
root
.
configFullPath
else
List
()
protected
val
configName
=
getClass
.
getSimpleName
.
toLowerCase
protected
val
configFullPath
=
configName
::
configPath
def
config
(
key
:
String
)
=
globalConfig
(
configName
,
configPath
,
key
)
def
config
(
key
:
String
,
default
:
Any
)
=
globalConfig
(
configName
,
configPath
,
key
,
default
)
...
...
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