@Service
@Configuration
@AutoConfigureAfter(value={HomeKitDataAutoConfiguration.class,HomeKitServiceAutoConfiguration.class})
public class HomeKitBootStrapServer
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| 构造器和说明 |
|---|
HomeKitBootStrapServer(HomeKitProperties homeKitProperties,
HomeKitService homeKitService) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet()
Invoked by the containing
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc. |
void |
destroy()
Invoked by the containing
BeanFactory on destruction of a bean. |
List<io.github.hapjava.accessories.HomekitAccessory> |
getCurrentLoadedHomeKitAccessories() |
List<io.github.hapjava.accessories.HomekitAccessory> |
getCurrentRunningHomeKitAccessories() |
boolean |
isRunning() |
void |
startAccessory(Integer id) |
void |
startServer() |
void |
stopAccessory(Integer id) |
void |
stopServer() |
public HomeKitBootStrapServer(HomeKitProperties homeKitProperties, HomeKitService homeKitService)
public void destroy()
BeanFactory on destruction of a bean.destroy 在接口中 org.springframework.beans.factory.DisposableBeanpublic void afterPropertiesSet()
BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanpublic boolean isRunning()
public void startServer()
public void stopServer()
public List<io.github.hapjava.accessories.HomekitAccessory> getCurrentLoadedHomeKitAccessories()
public List<io.github.hapjava.accessories.HomekitAccessory> getCurrentRunningHomeKitAccessories()
public void startAccessory(Integer id)
public void stopAccessory(Integer id)
Copyright © 2021. All rights reserved.