Skip to content

Commit

Permalink
adapted Exec persistence service
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Kreuzer <[email protected]>
  • Loading branch information
kaikreuzer committed Apr 28, 2019
1 parent c118057 commit 8e1a0ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@

import org.eclipse.smarthome.core.items.Item;
import org.openhab.core.persistence.PersistenceService;
import org.osgi.service.component.annotations.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* This is the implementation of the Exec {@link PersistenceService}.
*
* @author Henrik Sjöstrand
* @author Thomas.Eichstaedt-Engelen
* @since 1.1.0
* @author Henrik Sjöstrand - Initial contribution
* @author Thomas.Eichstaedt-Engelen - Initial contribution
* @author Kai Kreuzer - Migration to 2.x
*/
public class ExecService implements PersistenceService {
@Component
public class ExecPersistenceService implements PersistenceService {

private static final Logger logger = LoggerFactory.getLogger(ExecService.class);
private static final Logger logger = LoggerFactory.getLogger(ExecPersistenceService.class);

@Override
public String getId() {
Expand Down Expand Up @@ -89,9 +91,6 @@ public void store(Item item, String alias) {
}
}

/**
* @{inheritDoc
*/
@Override
public void store(Item item) {
throw new UnsupportedOperationException(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
* @author Thomas.Eichstaedt-Engelen
* @since 1.1.0
*/
public class ExecServiceTest {
public class ExecPersistenceServiceTest {

ExecService service;
ExecPersistenceService service;

@Before
public void init() {
service = new ExecService();
service = new ExecPersistenceService();
}

@Test
Expand Down

0 comments on commit 8e1a0ae

Please sign in to comment.