-
- All Superinterfaces:
Describable
public interface Registry extends Describable
Registry interface.
- Version:
- $Id: $Id
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Map<String,? extends IO>all()all.default <P extends Provider>
Map<String,? extends IO>allByIoType(IOType ioType)allByIoType.default <P extends Provider>
Map<String,? extends IO>allByProvider(Class<P> providerClass)allByProvider.default <P extends Provider>
Map<String,? extends IO>allByProvider(String providerId)allByProvider.default <P extends Provider,T extends IO>
Map<String,T>allByProvider(String providerId, Class<T> ioClass)allByProvider.default <T extends IO>
Map<String,T>allByType(Class<T> ioClass)allByType.default Descriptordescribe()describe.booleanexists(String id)exists.booleanexists(String id, Class<? extends IO> type)exists.<T extends IO>
Tget(String id)get.<T extends IO>
Tget(String id, Class<T> type)get.
-
-
-
Method Detail
-
get
<T extends IO> T get(String id) throws IOInvalidIDException, IONotFoundException
get.
- Type Parameters:
T- a T object.- Parameters:
id- aStringobject.- Returns:
- a T object.
- Throws:
IOInvalidIDException- if any.IONotFoundException- if any.
-
get
<T extends IO> T get(String id, Class<T> type) throws IOInvalidIDException, IONotFoundException
get.
- Type Parameters:
T- a T object.- Parameters:
id- aStringobject.type- aClassobject.- Returns:
- a T object.
- Throws:
IOInvalidIDException- if any.IONotFoundException- if any.
-
allByIoType
default <P extends Provider> Map<String,? extends IO> allByIoType(IOType ioType)
allByIoType.
-
allByProvider
default <P extends Provider> Map<String,? extends IO> allByProvider(Class<P> providerClass)
allByProvider.
-
allByProvider
default <P extends Provider> Map<String,? extends IO> allByProvider(String providerId)
allByProvider.
-
allByProvider
default <P extends Provider,T extends IO> Map<String,T> allByProvider(String providerId, Class<T> ioClass)
allByProvider.
-
describe
default Descriptor describe()
describe.
- Specified by:
describein interfaceDescribable- Returns:
- a
Descriptorobject.
-
-