File tree Expand file tree Collapse file tree 9 files changed +9
-10
lines changed Expand file tree Collapse file tree 9 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ let package = Package(
14
14
dependencies: [
15
15
// Dependencies declare other packages that this package depends on.
16
16
// .package(url: /* package url */, from: "1.0.0"),
17
+ . package ( url: " https://github.com/swiftlang/swift-docc-plugin " , from: " 1.1.0 " ) ,
17
18
] ,
18
19
targets: [
19
20
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ open class Controller: IController {
68
68
so you should not call the constructor
69
69
directly, but instead call the static Factory method,
70
70
passing the unique key for this instance
71
- `Controller.getInstance( multitonKey ) `
71
+ `Controller.getInstance(multitonKey) { key in Controller(key: key) } `
72
72
73
73
@throws Error if instance for this Multiton key has already been constructed
74
74
*/
@@ -91,7 +91,7 @@ open class Controller: IController {
91
91
92
92
// ensure that the Controller is talking to my IView implementation
93
93
override public func initializeController( ) {
94
- view = MyView.getInstance(multitonKey) { MyView(key: self.multitonKey ) }
94
+ view = MyView.getInstance(multitonKey) { key in MyView(key: key ) }
95
95
}
96
96
*/
97
97
open func initializeController( ) {
@@ -183,7 +183,7 @@ open class Controller: IController {
183
183
/**
184
184
Remove an IController instance
185
185
186
- - parameter multitonKey : of IController instance to remove
186
+ - parameter key : of IController instance to remove
187
187
*/
188
188
open class func removeController( _ key: String ) {
189
189
instanceQueue. sync ( flags: . barrier) {
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ open class Model: IModel {
153
153
/**
154
154
Remove an IModel instance
155
155
156
- - parameter multitonKey : of IModel instance to remove
156
+ - parameter key : of IModel instance to remove
157
157
*/
158
158
open class func removeModel( _ key: String ) {
159
159
instanceQueue. sync ( flags: . barrier) {
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ open class View: IView {
262
262
/**
263
263
Remove an IView instance
264
264
265
- - parameter multitonKey : of IView instance to remove
265
+ - parameter key : of IView instance to remove
266
266
*/
267
267
open class func removeView( _ key: String ) {
268
268
instanceQueue. sync ( flags: . barrier) {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public protocol ICommand: INotifier {
16
16
/**
17
17
Execute the `ICommand`'s logic to handle a given `INotification`.
18
18
19
- - parameter note : an `INotification` to handle.
19
+ - parameter notification : an `INotification` to handle.
20
20
*/
21
21
func execute( _ notification: INotification )
22
22
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public protocol IController {
34
34
for a particular `INotification`.
35
35
36
36
- parameter notificationName: the name of the `INotification`
37
- - parameter closure : reference that returns `ICommand`
37
+ - parameter factory : reference that returns `ICommand`
38
38
*/
39
39
func registerCommand( _ notificationName: String , factory: @escaping ( ) -> ICommand )
40
40
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public protocol IFacade: INotifier {
63
63
/**
64
64
Register an `ICommand` with the `Controller`.
65
65
66
- - parameter noteName : the name of the `INotification` to associate the `ICommand` with.
66
+ - parameter notificationName : the name of the `INotification` to associate the `ICommand` with.
67
67
- parameter factory: closure that returns `ICommand`
68
68
*/
69
69
func registerCommand( _ notificationName: String , factory: @escaping ( ) -> ICommand )
Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ public protocol IModel {
27
27
/**
28
28
Register an `IProxy` instance with the `Model`.
29
29
30
- - parameter proxyName: the name to associate with this `IProxy` instance.
31
30
- parameter proxy: an object reference to be held by the `Model`.
32
31
*/
33
32
func registerProxy( _ proxy: IProxy )
Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ public protocol IView {
74
74
and registering it as an `Observer` for all `INotifications` the
75
75
`IMediator` is interested in.
76
76
77
- - parameter mediatorName: the name to associate with this `IMediator` instance
78
77
- parameter mediator: a reference to the `IMediator` instance
79
78
*/
80
79
func registerMediator( _ mediator: IMediator )
You can’t perform that action at this time.
0 commit comments