- java.lang.Object
-
- com.pi4j.provider.ProviderGroup<T>
-
- All Implemented Interfaces:
Describable
public class ProviderGroup<T extends Provider> extends Object implements Describable
ProviderGroup class.
- Version:
- $Id: $Id
- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description ProviderGroup(Providers providers, IOType type)
Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Descriptor
describe()
describe.boolean
exists(String providerId)
exists.T
get(String providerId)
get.
-
-
-
Method Detail
-
get
public T get(String providerId) throws ProviderException
get.
- Parameters:
providerId
- aString
object.- Returns:
- a T object.
- Throws:
ProviderException
- if any.
-
exists
public boolean exists(String providerId) throws ProviderException
exists.
- Parameters:
providerId
- aString
object.- Returns:
- a boolean.
- Throws:
ProviderException
- if any.
-
describe
public Descriptor describe()
describe.
- Specified by:
describe
in interfaceDescribable
- Returns:
- a
Descriptor
object.
-
-