org.optaplanner.core.impl.domain.variable.listener

## Interface SourcedVariableListener<Entity_>

- All Superinterfaces:
    AutoCloseable, Closeable, StatefulVariableListener<Entity_>, Supply, VariableListener<Entity_>
  All Known Implementing Classes:
    ExternalizedAnchorVariableSupply, ExternalizedCollectionInverseVariableSupply, ExternalizedSingletonInverseVariableSupply

      public interface SourcedVariableListener<Entity_>
      extends StatefulVariableListener<Entity_>

  Often used to externalize data for a `Supply` from the domain model itself.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `VariableDescriptor` | `getSourceVariableDescriptor()`

    - ### Methods inherited from interface org.optaplanner.core.impl.domain.variable.listener.StatefulVariableListener

      `clearWorkingSolution, resetWorkingSolution`

    - ### Methods inherited from interface org.optaplanner.core.impl.domain.variable.listener.VariableListener

      `afterEntityAdded, afterEntityRemoved, afterVariableChanged, beforeEntityAdded, beforeEntityRemoved, beforeVariableChanged, requiresUniqueEntityEvents`

    - ### Methods inherited from interface org.optaplanner.core.api.domain.variable.VariableListener

      `close`

- - ### Method Detail

    - #### getSourceVariableDescriptor

          VariableDescriptor getSourceVariableDescriptor()

      Specified by:
        `getSourceVariableDescriptor` in interface `StatefulVariableListener<Entity_>`

Copyright © 2006–2021 JBoss by Red Hat. All rights reserved.