Package org.openhab.core.thing.profiles
Interface ProfileFactory
- All Known Implementing Classes:
ScriptProfileFactory
@NonNullByDefault
public interface ProfileFactory
Implementors are capable of creating
Profile
instances.- Author:
- Simon Kaufmann - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable Profile
createProfile
(ProfileTypeUID profileTypeUID, ProfileCallback callback, ProfileContext profileContext) Creates aProfile
instance for the given profile type identifier.Return the identifiers of all supported profile types.
-
Method Details
-
createProfile
@Nullable Profile createProfile(ProfileTypeUID profileTypeUID, ProfileCallback callback, ProfileContext profileContext) Creates aProfile
instance for the given profile type identifier.- Parameters:
profileTypeUID
- the profile type identifiercallback
- theProfileCallback
instance to be used by theProfile
instanceprofileContext
- giving access to the profile's context like configuration, scheduler, etc.- Returns:
- the profile instance or
null
if this factory cannot handle the given link
-
getSupportedProfileTypeUIDs
Collection<ProfileTypeUID> getSupportedProfileTypeUIDs()Return the identifiers of all supported profile types.- Returns:
- a collection of all profile type identifier which this class is capable of creating
-