# Uses of Enum
org.apache.tapestry5.services.compatibility.Trait

Packages that use Trait
Package
Description
org.apache.tapestry5.internal.services.compatibility
org.apache.tapestry5.modules
org.apache.tapestry5.services.compatibility
A more structured approach to tracking how compatibility features are enabled, as well as tracking compatibility exceptions.

- ## Uses of Trait in org.apache.tapestry5.internal.services.compatibility

  Methods in org.apache.tapestry5.internal.services.compatibility with parameters of type Trait
  Modifier and Type
  Method
  Description
  `boolean`
  CompatibilityImpl.`enabled(Trait trait)`
  Constructor parameters in org.apache.tapestry5.internal.services.compatibility with type arguments of type Trait
  Modifier
  Constructor
  Description
  ``
  `CompatibilityImpl(Map<Trait,Boolean> configuration)`

- ## Uses of Trait in org.apache.tapestry5.modules

  Method parameters in org.apache.tapestry5.modules with type arguments of type Trait
  Modifier and Type
  Method
  Description
  `static void`
  Bootstrap4Module.`setupCompatibilityDefaults(MappedConfiguration<Trait,Boolean> configuration)`
  `static void`
  JavaScriptModule.`setupCompatibilityDefaults(MappedConfiguration<Trait,Boolean> configuration)`
  `static void`
  NoBootstrapModule.`setupCompatibilityDefaults(MappedConfiguration<Trait,Boolean> configuration)`

- ## Uses of Trait in org.apache.tapestry5.services.compatibility

  Methods in org.apache.tapestry5.services.compatibility that return Trait
  Modifier and Type
  Method
  Description
  `static Trait`
  Trait.`valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static Trait[]`
  Trait.`values()`
  Returns an array containing the constants of this enum type, in the order they are declared.
  Methods in org.apache.tapestry5.services.compatibility with parameters of type Trait
  Modifier and Type
  Method
  Description
  `boolean`
  Compatibility.`enabled(Trait trait)`
  Returns true if the indicated compatibility trait is enabled.