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