public static final class Inventory.Mixin extends Object
Inventory.Mixin.Observable or Inventory.Mixin.AutoTenant
interfaces.
Given the old-ish type system of Java lacking Self type or union types, this is quite cumbersome and will result in a combinatorial explosion of backing classes if more mixins are added. I am not sure there is a way to work around that. Maybe dynamic proxies could be used but are not worth it at this stage.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Inventory.Mixin.AutoTenant
A mixin interface for automatic creation on tenants.
|
static interface |
Inventory.Mixin.AutoTenantAndObservable
Poor man's intersection type ;)
|
static class |
Inventory.Mixin.AutoTenantMixin |
static interface |
Inventory.Mixin.Observable
The observable mixin interface.
|
static class |
Inventory.Mixin.ObservableAndAutoTenantMixin |
static class |
Inventory.Mixin.ObservableMixin |
| Modifier and Type | Method and Description |
|---|---|
Inventory.Mixin.AutoTenantMixin |
autoTenant() |
Inventory.Mixin.ObservableMixin |
observable() |
public Inventory.Mixin.AutoTenantMixin autoTenant()
public Inventory.Mixin.ObservableMixin observable()
Copyright © 2015 Red Hat, Inc.. All rights reserved.