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 ProfilecreateProfile(ProfileTypeUID profileTypeUID, ProfileCallback callback, ProfileContext profileContext) Creates aProfileinstance 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 aProfileinstance for the given profile type identifier.- Parameters:
 profileTypeUID- the profile type identifiercallback- theProfileCallbackinstance to be used by theProfileinstanceprofileContext- giving access to the profile's context like configuration, scheduler, etc.- Returns:
 - the profile instance or 
nullif 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
 
 
 -