ObserverSpec.Builder


class ObserverSpec.Builder


Builder for ObserverSpec instances.

Summary

Public constructors

Public functions

ObserverSpec.Builder
addFilterDocumentClasses(documentClasses: Array<Class<Any!>!>)

Restricts an observer using this spec to triggering only for documents of one of the provided document classes.

ObserverSpec.Builder
addFilterDocumentClasses(
    documentClasses: (Mutable)Collection<Class<Any!>!>
)

Restricts an observer using this spec to triggering only for documents of one of the provided document classes.

ObserverSpec.Builder

Restricts an observer using this spec to triggering only for documents of one of the provided schema types.

ObserverSpec.Builder

Restricts an observer using this spec to triggering only for documents of one of the provided schema types.

ObserverSpec

Constructs a new ObserverSpec from the contents of this builder.

Public constructors

Builder

Added in 1.1.0-alpha06
Builder()

Public functions

addFilterDocumentClasses

fun addFilterDocumentClasses(documentClasses: Array<Class<Any!>!>): ObserverSpec.Builder

Restricts an observer using this spec to triggering only for documents of one of the provided document classes.

If unset, the observer will match documents of all types.

Merged list available from getFilterSchemas.

Parameters
documentClasses: Array<Class<Any!>!>

classes annotated with Document.

addFilterDocumentClasses

Added in 1.1.0-alpha06
fun addFilterDocumentClasses(
    documentClasses: (Mutable)Collection<Class<Any!>!>
): ObserverSpec.Builder

Restricts an observer using this spec to triggering only for documents of one of the provided document classes.

If unset, the observer will match documents of all types.

Merged list available from getFilterSchemas.

Parameters
documentClasses: (Mutable)Collection<Class<Any!>!>

classes annotated with Document.

addFilterSchemas

fun addFilterSchemas(schemas: Array<String!>): ObserverSpec.Builder

Restricts an observer using this spec to triggering only for documents of one of the provided schema types.

If unset, the observer will match documents of all types.

addFilterSchemas

Added in 1.1.0-alpha06
fun addFilterSchemas(schemas: (Mutable)Collection<String!>): ObserverSpec.Builder

Restricts an observer using this spec to triggering only for documents of one of the provided schema types.

If unset, the observer will match documents of all types.

build

Added in 1.1.0-alpha06
fun build(): ObserverSpec

Constructs a new ObserverSpec from the contents of this builder.