Dependable
- class constructs.Dependable
Bases:
object
Trait for IDependable.
Traits are interfaces that are privately implemented by objects. Instead of showing up in the public interface of a class, they need to be queried explicitly. This is used to implement certain framework features that are not intended to be used by Construct consumers, and so should be hidden from accidental use.
Example:
// Usage const roots = Dependable.of(construct).dependencyRoots; // Definition Dependable.implement(construct, { dependencyRoots: [construct], });
Attributes
- dependency_roots
The set of constructs that form the root of this dependable.
All resources under all returned constructs are included in the ordering dependency.
Static Methods
- classmethod get(instance)
(deprecated) Return the matching Dependable for the given class instance.
- Parameters:
instance (
IDependable
) –- Deprecated:
use
of
- Stability:
deprecated
- Return type:
- classmethod implement(instance, trait)
Turn any object into an IDependable.
- Parameters:
instance (
IDependable
) –trait (
Dependable
) –
- Return type:
None
- classmethod of(instance)
Return the matching Dependable for the given class instance.
- Parameters:
instance (
IDependable
) –- Return type: