You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Foo(ParentComponent) {
public interface ParentComponent {
Bar bar()
}
}
This pattern allows every single class that defined to somewhat act as its own "scope" with a clear api towards the outside world
to better support this pattern motif.Scopes should automatically provide all the interfaces that they implement as bindings
@motif.Scope
interface Scope extends Foo.ParentComponent {
@motif.Objects
abstract class Objects {
abstract Foo foo();
abstract Foo.ParentComponent fooParent(Scope scope) <-- this declaration could be now be avoided
}
}
The text was updated successfully, but these errors were encountered:
A common and useful pattern is as follows
This pattern allows every single class that defined to somewhat act as its own "scope" with a clear api towards the outside world
to better support this pattern motif.Scopes should automatically provide all the interfaces that they implement as bindings
The text was updated successfully, but these errors were encountered: