Skip to content

Commit 54ba90f

Browse files
committed
Update readme
1 parent 2220f85 commit 54ba90f

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -535,23 +535,18 @@ A component consists of the following classes: a `View`, `FxView`, `Presenter`.
535535
always has a `Descriptor` (which is provided by the framework and normally does not require custom implementation)
536536
and may include `Composer`, `Port` and a `History` classes.
537537

538-
`Port` is an interface with its implementation supplied by a nested, non-static class in `Presenter`.
539-
It represents an explicit communication channel between presenters.
538+
`Port` is an interface implemented by a `Presenter` to enable explicit communication between presenters. A single
539+
`Presenter` may implement multiple distinct `Port`s.
540540

541541
This interface is introduced to achieve the following objectives:
542542

543543
* To maintain component encapsulation by avoiding direct presenter-to-presenter references.
544544
* To establish a well-defined and strictly controlled interaction boundary between a presenter and its external
545-
environment.
545+
environment.
546546

547547
It is important to note that `Presenter` instances should never be shared directly between components. A `Port` is the
548548
only intended mechanism for inter-presenter communication.
549549

550-
A `Presenter` exposes one primary `Port` via `presenter.getPort()`. This `Port` extends the primary `Port`s of all child
551-
`Presenters`, providing a unified access point to the entire component subtree. Additionally, a `Presenter` may define
552-
any number of secondary `Port`s, which can be used, for example, to establish bidirectional communication channels
553-
between components.
554-
555550
#### MVP Component Lifecycle <a name="templates-mvp-lifecycle"></a>
556551

557552
Each `Presenter` provides the `Presenter#initialize()` and `Presenter#deinitialize()` methods, which initialize and

0 commit comments

Comments
 (0)