Class NotificationModelBuilder
java.lang.Object
org.mule.runtime.extension.api.model.notification.NotificationModelBuilder
Builder pattern implementation to build
NotificationModel instances.- Since:
- 1.1
-
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.meta.model.notification.NotificationModelbuild()static NotificationModelBuildernewNotification(String identifier, String namespace) Creates a builder to be able to createNotificationModelinstancesstatic NotificationModelBuildernewNotification(org.mule.runtime.api.component.ComponentIdentifier identifier) Creates a builder to be able to createNotificationModelinstances from a notificationComponentIdentifierwithType(org.mule.metadata.api.model.MetadataType type)
-
Method Details
-
newNotification
Creates a builder to be able to createNotificationModelinstances- Parameters:
identifier- The identifier of theNotificationModelto create.namespace- adds a namespace to theNotificationModelthat is being built- Returns:
- An
NotificationModelBuilderinitialized with thetypeName
-
newNotification
public static NotificationModelBuilder newNotification(org.mule.runtime.api.component.ComponentIdentifier identifier) Creates a builder to be able to createNotificationModelinstances from a notificationComponentIdentifier- Parameters:
identifier- The identifier of the notification to create.- Returns:
- An
NotificationModelBuilderinitialized with the identifiers name and namespace
-
withType
- Parameters:
type- the type of data theNotificationModelprovides- Returns:
- the contributed
NotificationModelBuilder
-
build
public org.mule.runtime.api.meta.model.notification.NotificationModel build()- Returns:
- a new
NotificationModelinstance
-