InstanceFactoryBean (Grails 3.1.4)
Date: 2016-03-16

Package: org.grails.spring.beans.factory

## [Java] Class InstanceFactoryBean<T>

- org.grails.spring.beans.factory.InstanceFactoryBean

- All Implemented Interfaces and Traits:
    org.springframework.beans.factory.FactoryBean

      public class InstanceFactoryBean
      extends java.lang.Object

  Simple singleton instance implementation of Spring's FactoryBean interface mainly useful in unit tests

- - ### Constructor Summary

    Constructors
    Constructor and description
    `InstanceFactoryBean ()`
    `InstanceFactoryBean (T object, java.lang.Class<?> objectType)`
    `InstanceFactoryBean (T object)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `T` | `getObject()`
    `java.lang.Class<?>` | `getObjectType()`
    `boolean` | `isSingleton()`
    `void` | `setObject(T object)`
    `void` | `setObjectType(java.lang.Class<?> objectType)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class java.lang.Object` | `java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()`

- - ### Constructor Detail

    - #### public InstanceFactoryBean()

    - #### public InstanceFactoryBean(T object, java.lang.Class<?> objectType)

    - #### public InstanceFactoryBean(T object)

  - ### Method Detail

    - #### @java.lang.Override public T getObject()

    - #### @java.lang.Override public java.lang.Class<?> getObjectType()

    - #### @java.lang.Override public boolean isSingleton()

    - #### public void setObject(T object)

    - #### public void setObjectType(java.lang.Class<?> objectType)