Package org.apache.tapestry5.ioc.def

## Interface ServiceDef2

- All Superinterfaces:
    `ServiceDef`
  All Known Subinterfaces:
    `ServiceDef3`
  All Known Implementing Classes:
    `ServiceDefImpl`, `SpringBeanServiceDef`

      public interface ServiceDef2
      extends ServiceDef

  Extension to `ServiceDef` containing new methods added for Tapestry 5.1. Tapestry 5.3 added `ServiceDef3`.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `isPreventDecoration()` | Returns true if the service should not be decorated.

    - ### Methods inherited from interface org.apache.tapestry5.ioc.def.ServiceDef

      `createServiceCreator, getMarkers, getServiceId, getServiceInterface, getServiceScope, isEagerLoad`

- - ### Method Detail

    - #### isPreventDecoration

          boolean isPreventDecoration()

      Returns true if the service should not be decorated. Most services allow decoration, unless the `PreventServiceDecoration` annotation is present.