Interface ProfileFactory

All Known Implementing Classes:
ScriptProfileFactory

@NonNullByDefault public interface ProfileFactory
Implementors are capable of creating Profile instances.
Author:
Simon Kaufmann - Initial contribution
  • Method Details

    • createProfile

      @Nullable Profile createProfile(ProfileTypeUID profileTypeUID, ProfileCallback callback, ProfileContext profileContext)
      Creates a Profile instance for the given profile type identifier.
      Parameters:
      profileTypeUID - the profile type identifier
      callback - the ProfileCallback instance to be used by the Profile instance
      profileContext - 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