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 and 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.

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.