Package com.pi4j.system
Class SystemInfoFactory
- java.lang.Object
-
- com.pi4j.system.SystemInfoFactory
-
public class SystemInfoFactory extends Object
This factory class provides a static method to create new 'GpioController' instances.
Before using the Pi4J library, you need to ensure that the Java VM in configured with access to the following system libraries:
- pi4j
- wiringPi
This library depends on the wiringPi native system library. (developed by Gordon Henderson @ http://wiringpi.com/)
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
- See Also:
GpioController
,GpioProvider
, https://pi4j.com/
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SystemInfoProvider
getProvider()
Return default instance ofSystemInfoProvider
.static void
setProvider(SystemInfoProvider provider)
Sets defaultSystemInfoProvider
.
-
-
-
Method Detail
-
getProvider
public static SystemInfoProvider getProvider()
Return default instance of
SystemInfoProvider
.- Returns:
- Return a new SystemInfoProvider impl instance.
-
setProvider
public static void setProvider(SystemInfoProvider provider)
Sets defaultSystemInfoProvider
.- Parameters:
provider
- default system info provider
-
-