Package org.apache.tapestry5.internal.spring

## Class StaticObjectCreator

- java.lang.Object
- - org.apache.tapestry5.internal.spring.StaticObjectCreator

- All Implemented Interfaces:
    `ObjectCreator`

      public class StaticObjectCreator
      extends java.lang.Object
      implements ObjectCreator

  An `ObjectCreator` for a statically identified object (typically, a bean from the Spring application context).

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `StaticObjectCreator​(java.lang.Object object, java.lang.String description)` |

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### StaticObjectCreator

          public StaticObjectCreator​(java.lang.Object object,
                                     java.lang.String description)

  - ### Method Detail

    - #### createObject

          public java.lang.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.
      Specified by:
        `createObject` in interface `ObjectCreator`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`