public class InstanceFactoryBean<T> extends java.lang.Object implements org.springframework.beans.factory.FactoryBean
Simple singleton instance implementation of Spring's FactoryBean interface mainly useful in unit tests
Constructor and description |
---|
InstanceFactoryBean
() |
InstanceFactoryBean
(T object, java.lang.Class<?> objectType) |
InstanceFactoryBean
(T object) |
Type Params | Return Type | Name and description |
---|---|---|
|
public T |
getObject() |
|
public java.lang.Class<?> |
getObjectType() |
|
public boolean |
isSingleton() |
|
public void |
setObject(T object) |
|
public void |
setObjectType(java.lang.Class<?> objectType) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), 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() |