Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeeTime-Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nelson Tavares de Sousa
TeeTime-Framework
Commits
2d7466b4
Commit
2d7466b4
authored
10 years ago
by
Christian Wulf
Browse files
Options
Downloads
Patches
Plain Diff
added log blocks
parent
158da1f4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/teetime/framework/pipe/PipeFactoryLoader.java
+3
-1
3 additions, 1 deletion
src/main/java/teetime/framework/pipe/PipeFactoryLoader.java
src/main/java/teetime/framework/pipe/PipeFactoryRegistry.java
+3
-1
3 additions, 1 deletion
...main/java/teetime/framework/pipe/PipeFactoryRegistry.java
with
6 additions
and
2 deletions
src/main/java/teetime/framework/pipe/PipeFactoryLoader.java
+
3
−
1
View file @
2d7466b4
...
@@ -53,7 +53,9 @@ public final class PipeFactoryLoader {
...
@@ -53,7 +53,9 @@ public final class PipeFactoryLoader {
pipeFactories
.
add
(
pipeFactory
);
pipeFactories
.
add
(
pipeFactory
);
}
}
}
catch
(
ClassNotFoundException
e
)
{
}
catch
(
ClassNotFoundException
e
)
{
LOGGER
.
warn
(
"Could not find class: "
+
line
,
e
);
// NOMPD (PMD.GuardLogStatement)
if
(
LOGGER
.
isWarnEnabled
())
{
LOGGER
.
warn
(
"Could not find class: "
+
line
,
e
);
}
}
catch
(
InstantiationException
e
)
{
}
catch
(
InstantiationException
e
)
{
LOGGER
.
warn
(
"Could not instantiate pipe factory"
,
e
);
LOGGER
.
warn
(
"Could not instantiate pipe factory"
,
e
);
}
catch
(
IllegalAccessException
e
)
{
}
catch
(
IllegalAccessException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
src/main/java/teetime/framework/pipe/PipeFactoryRegistry.java
+
3
−
1
View file @
2d7466b4
...
@@ -101,7 +101,9 @@ public final class PipeFactoryRegistry {
...
@@ -101,7 +101,9 @@ public final class PipeFactoryRegistry {
public
void
register
(
final
IPipeFactory
pipeFactory
)
{
public
void
register
(
final
IPipeFactory
pipeFactory
)
{
final
String
key
=
this
.
buildKey
(
pipeFactory
.
getThreadCommunication
(),
pipeFactory
.
getOrdering
(),
pipeFactory
.
isGrowable
());
final
String
key
=
this
.
buildKey
(
pipeFactory
.
getThreadCommunication
(),
pipeFactory
.
getOrdering
(),
pipeFactory
.
isGrowable
());
this
.
pipeFactories
.
put
(
key
,
pipeFactory
);
this
.
pipeFactories
.
put
(
key
,
pipeFactory
);
LOGGER
.
info
(
"Registered pipe factory: "
+
pipeFactory
.
getClass
().
getCanonicalName
());
if
(
LOGGER
.
isInfoEnabled
())
{
LOGGER
.
info
(
"Registered pipe factory: "
+
pipeFactory
.
getClass
().
getCanonicalName
());
}
}
}
private
String
buildKey
(
final
ThreadCommunication
tc
,
final
PipeOrdering
ordering
,
final
boolean
growable
)
{
private
String
buildKey
(
final
ThreadCommunication
tc
,
final
PipeOrdering
ordering
,
final
boolean
growable
)
{
...
...
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