|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectioio.lib.api.IOIOFactory
public class IOIOFactory
Factory class for creating instances of the IOIO interface.
This class acts as the single entry-point to the IOIO API. It creates the bootstrapping between a specific implementation of the IOIO interface and any dependencies it might have, such as the underlying connection logic.
Typical usage:
IOIO ioio = IOIOFactory.create();
try {
ioio.waitForConnect();
...
ioio.disconnect();
} catch (ConnectionLostException e) {
} finally {
ioio.waitForDisconnect();
}
| Nested Class Summary | |
|---|---|
static interface |
IOIOFactory.ConnectionSpec
A connection specification. |
| Constructor Summary | |
|---|---|
IOIOFactory()
|
|
| Method Summary | |
|---|---|
static IOIO |
create()
Create a IOIO instance. |
static IOIO |
create(IOIOConnection connection)
Create a IOIO instance with a user-provided underlying connection class. |
static IOIO |
create(IOIOFactory.ConnectionSpec spec)
Create a IOIO instance, based on a connection specification. |
static java.util.Collection<ioio.lib.spi.IOIOConnectionBootstrap> |
getBootstraps()
For advanced usage only! Used for special runtime handling of bootstrap classes. |
static java.util.Collection<IOIOFactory.ConnectionSpec> |
getConnectionSpecs()
Get all available connection specifications. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOIOFactory()
| Method Detail |
|---|
public static IOIO create()
public static IOIO create(IOIOFactory.ConnectionSpec spec)
spec - The connection specification, which was obtained from
getConnectionSpecs().
public static java.util.Collection<IOIOFactory.ConnectionSpec> getConnectionSpecs()
create(ConnectionSpec), possibly after filtering based on the
specification's properties.
public static IOIO create(IOIOConnection connection)
connection - An instance of a IOIO connection.
public static java.util.Collection<ioio.lib.spi.IOIOConnectionBootstrap> getBootstraps()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||