Skip to content

Commit

Permalink
[api]: Create LightBoxDeserializer class
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Aug 27, 2024
1 parent d11b2fe commit b607e49
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package nebulosa.api.lightboxes

import nebulosa.api.connection.ConnectionService
import nebulosa.api.devices.DeviceDeserializer
import nebulosa.indi.device.lightbox.LightBox
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Lazy
import org.springframework.stereotype.Component

@Component
class LightBoxDeserializer : DeviceDeserializer<LightBox>(LightBox::class.java) {

@Autowired @Lazy private lateinit var connectionService: ConnectionService

override fun deviceFor(name: String) = connectionService.lightBox(name)
}

0 comments on commit b607e49

Please sign in to comment.