org.apache.tapestry5.ioc.internal

## Class ConstructorServiceCreator

- java.lang.Object
- - org.apache.tapestry5.ioc.internal.AbstractServiceCreator
  - - org.apache.tapestry5.ioc.internal.ConstructorServiceCreator

- All Implemented Interfaces:
    ObjectCreator

      public class ConstructorServiceCreator
      extends AbstractServiceCreator

  A service creator based on an implementation class' constructor, rather than a service builder method.

- - ### Field Summary

    - ### Fields inherited from class org.apache.tapestry5.ioc.internal.AbstractServiceCreator

      `creatorDescription, logger, resources, serviceId`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConstructorServiceCreator(ServiceBuilderResources resources, String creatorDescription, Constructor constructor)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `createObject()` Create and return the object.
    `String` | `toString()`

    - ### Methods inherited from class org.apache.tapestry5.ioc.internal.AbstractServiceCreator

      `createInjectionResources`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ConstructorServiceCreator

          public ConstructorServiceCreator(ServiceBuilderResources resources,
                                           String creatorDescription,
                                           Constructor constructor)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### createObject

          public Object createObject()

      Description copied from interface: `ObjectCreator`
      Create and return the object. In some limited circumstances, the implementation may cache the result, returning the same object for repeated calls.

5.6.0 - Copyright © 2003-2020 The Apache Software Foundation.