# ./library/lib/mixinStrategy.xotcl

## Package/File Information

No package provided/required
Defined Objects/Classes:

- Object: add, mixinQueryStrategy, mixinStrategy, remove.

Filename: ./library/lib/mixinStrategy.xotcl

Description: | These methods provide support for managing "strategies", i.e. mixin-classes, where only one kind of a family of conformant mixins should be registered. Naming conversions for strategies: All strategies must follow the naming convention 'kind=implementation'. Examples are the persistency strategy 'eager' specified as 'persistent=eager' or the persistency strategy 'lazy' (specified as 'persistent=lazy')

## Class: Object

Procs/Instprocs: add, mixinQueryStrategy, mixinStrategy, remove.

### Instprocs

- mixinStrategy strategy

  Arguments: | strategy: Strategy to be added
  Description: | This method adds or replaces a new strategy from the mixin list. Strategies are named following the convention mentioned above.
  Return: | old strategy

- mixinQueryStrategy kind

  Arguments: | kind: strategy kind
  Description: | This method searches the mixin list for a mixin of this kind (starting with $kind=)
  Return: | returns the matching strategy

- add construct args

  Arguments: | construct: (inst) 'filter' or 'mixin'
  | args: to be added
  Description: | add the specified (inst) 'filters' or 'mixins'
  Return: | empty

- remove construct args

  Arguments: | construct: (inst) 'filter' or 'mixin'
  | args: to be removed
  Description: | remove the specified (inst) 'filters' or 'mixins'
  Return: | empty

Back to index page.