Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edu.msu.anr.osgi.structuralintegrity.viewtool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
canr
edu.msu.anr.osgi.structuralintegrity.viewtool
Commits
58cb21a5
Commit
58cb21a5
authored
8 years ago
by
Eric Slenk
Browse files
Options
Downloads
Patches
Plain Diff
Import StructuresSnapshotService.
parent
0544099b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+2
-2
2 additions, 2 deletions
build.gradle
src/main/java/edu/msu/anr/osgi/structuralintegrity/viewtool/Activator.java
+19
-0
19 additions, 0 deletions
.../msu/anr/osgi/structuralintegrity/viewtool/Activator.java
with
21 additions
and
2 deletions
build.gradle
+
2
−
2
View file @
58cb21a5
...
...
@@ -4,7 +4,7 @@ apply plugin: 'war'
apply
plugin:
'eclipse'
sourceCompatibility
=
'1.8'
version
=
'0.1.0-
1
'
version
=
'0.1.0-
3
'
repositories
{
...
...
@@ -14,7 +14,7 @@ repositories {
}
dependencies
{
compile
fileTree
(
dir:
'src/main/resources/libs'
,
include:
'*.jar'
)
compile
fileTree
(
dir:
"${getFelixDirPath()}/load"
,
include:
'*.jar'
)
compile
(
group:
'com.dotcms'
,
name:
'dotcms'
,
version:
'3.3.2'
){
transitive
=
true
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/edu/msu/anr/osgi/structuralintegrity/viewtool/Activator.java
+
19
−
0
View file @
58cb21a5
package
edu.msu.anr.osgi.structuralintegrity.viewtool
;
import
com.dotcms.repackage.org.osgi.framework.BundleContext
;
import
com.dotcms.repackage.org.osgi.util.tracker.ServiceTracker
;
import
com.dotmarketing.osgi.GenericBundleActivator
;
import
com.dotmarketing.util.Logger
;
import
edu.msu.anr.osgi.structuralintegrity.service.StructuresSnapshotService
;
public
class
Activator
extends
GenericBundleActivator
{
private
ServiceTracker
<
StructuresSnapshotService
,
StructuresSnapshotService
>
structuresSnapshotServiceTracker
;
@Override
public
void
start
(
BundleContext
bundleContext
)
throws
Exception
{
//Initializing services...
initializeServices
(
bundleContext
);
// Create a ServiceTracker for the StructuresSnapshotService
try
{
structuresSnapshotServiceTracker
=
new
ServiceTracker
<>(
bundleContext
,
StructuresSnapshotService
.
class
.
getName
(),
null
);
}
catch
(
Exception
e
)
{
Logger
.
error
(
this
,
e
.
getMessage
());
throw
e
;
}
//Registering the ViewTool service
registerViewToolService
(
bundleContext
,
new
StructuresSnapshotServiceToolInfo
()
);
}
...
...
@@ -18,6 +36,7 @@ public class Activator extends GenericBundleActivator {
@Override
public
void
stop
(
BundleContext
bundleContext
)
throws
Exception
{
unregisterViewToolServices
();
structuresSnapshotServiceTracker
.
close
();
}
}
\ No newline at end of file
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