File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/main/java/io/github/hapjava/services Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,4 +36,10 @@ public interface Service {
3636 * @return the list of linked services.
3737 */
3838 List <Service > getLinkedServices ();
39+
40+ /**
41+ * Add linked services
42+ * @param service linked service
43+ */
44+ void addLinkedService (Service service );
3945}
Original file line number Diff line number Diff line change 99import org .slf4j .LoggerFactory ;
1010
1111abstract class AbstractServiceImpl implements Service {
12- private final Logger logger = LoggerFactory .getLogger (this .getClass ());
1312 private final String type ;
1413 private final List <Characteristic > characteristics = new LinkedList <>();
1514 private final List <Service > linkedServices = new LinkedList <>();
@@ -38,6 +37,7 @@ public void addCharacteristic(Characteristic characteristic) {
3837 this .characteristics .add (characteristic );
3938 }
4039
40+ @ Override
4141 public void addLinkedService (Service service ) {
4242 this .linkedServices .add (service );
4343 }
You can’t perform that action at this time.
0 commit comments