Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DSRV-7] Adjust Service Activators to be able to start from Spring co…
…nfiguration git-svn-id: http://scm.dspace.org/svn/repo/modules/dspace-services/trunk@4939 9c30dcfa-912a-0410-8fc2-9e0234be79fd
- Loading branch information
Showing
8 changed files
with
112 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
impl/src/test/java/org/dspace/activators/FakeActivator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.dspace.activators; | ||
|
||
import org.dspace.kernel.Activator; | ||
import org.dspace.kernel.ServiceManager; | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: mdiggory | ||
* Date: May 13, 2010 | ||
* Time: 7:59:39 AM | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
public class FakeActivator implements Activator { | ||
|
||
public String status = "Not Started"; | ||
|
||
public void start(ServiceManager serviceManager) { | ||
status = "Started"; | ||
} | ||
|
||
public void stop(ServiceManager serviceManager) { | ||
status = "Stopped"; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
impl/src/test/java/org/dspace/activators/FakeActivator2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.dspace.activators; | ||
|
||
import org.dspace.kernel.Activator; | ||
import org.dspace.kernel.ServiceManager; | ||
|
||
/** | ||
* Created by IntelliJ IDEA. | ||
* User: mdiggory | ||
* Date: May 13, 2010 | ||
* Time: 7:59:39 AM | ||
* To change this template use File | Settings | File Templates. | ||
*/ | ||
public class FakeActivator2 implements Activator { | ||
|
||
public String status = "Not Started"; | ||
|
||
public void start(ServiceManager serviceManager) { | ||
status = "Started"; | ||
} | ||
|
||
public void stop(ServiceManager serviceManager) { | ||
status = "Stopped"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters