org.springframework.cloud.dataflow.shell

## Class TargetHolder

- java.lang.Object
- - org.springframework.cloud.dataflow.shell.TargetHolder

-     public class TargetHolder
      extends Object

  A target holder, wrapping a `Target` that encapsulates not only the Target URI but also success/error messages + status.
  Since:
    1.0
  Author:
    Gunnar Hillert
  See Also:
    `Target`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TargetHolder()` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Target` | `getTarget()` Return the `Target` which encapsulates not only the Target URI but also success/error messages + status.
    `void` | `setTarget(Target target)` Set the Dataflow Server `Target`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TargetHolder

          public TargetHolder()

      Constructor.

  - ### Method Detail

    - #### getTarget

          public Target getTarget()

      Return the `Target` which encapsulates not only the Target URI but also success/error messages + status.
      Returns:
        Should never be null. Initialized by `ConfigCommands.afterPropertiesSet()`

    - #### setTarget

          public void setTarget(Target target)

      Set the Dataflow Server `Target`.
      Parameters:
        `target` - Must not be null.

Copyright © 2021 Pivotal Software, Inc.. All rights reserved.