com.atlassian.bamboo.spring
Class RuntimeSingletonBeanFactory
java.lang.Object
com.atlassian.bamboo.spring.RuntimeSingletonBeanFactory
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactory
public class RuntimeSingletonBeanFactory
- extends java.lang.Object
- implements org.springframework.beans.factory.BeanFactory
A BeanFactory
that returns references to a singleton provided at runtime.
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
FACTORY_BEAN_PREFIX |
Method Summary |
boolean |
containsBean(java.lang.String name)
|
java.lang.String[] |
getAliases(java.lang.String name)
|
java.lang.Object |
getBean(java.lang.String name)
|
java.lang.Object |
getBean(java.lang.String name,
java.lang.Class requiredType)
|
java.lang.Class |
getType(java.lang.String name)
|
boolean |
isPrototype(java.lang.String name)
|
boolean |
isSingleton(java.lang.String name)
|
boolean |
isTypeMatch(java.lang.String name,
java.lang.Class targetType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuntimeSingletonBeanFactory
public RuntimeSingletonBeanFactory(java.lang.String singletonName,
java.lang.Object singleton)
getBean
public java.lang.Object getBean(java.lang.String name)
throws org.springframework.beans.BeansException
- Specified by:
getBean
in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.BeansException
getBean
public java.lang.Object getBean(java.lang.String name,
java.lang.Class requiredType)
throws org.springframework.beans.BeansException
- Specified by:
getBean
in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.BeansException
containsBean
public boolean containsBean(java.lang.String name)
- Specified by:
containsBean
in interface org.springframework.beans.factory.BeanFactory
isSingleton
public boolean isSingleton(java.lang.String name)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
isSingleton
in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
isPrototype
public boolean isPrototype(java.lang.String name)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
isPrototype
in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch
public boolean isTypeMatch(java.lang.String name,
java.lang.Class targetType)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
isTypeMatch
in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
getType
public java.lang.Class getType(java.lang.String name)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
getType
in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
getAliases
public java.lang.String[] getAliases(java.lang.String name)
- Specified by:
getAliases
in interface org.springframework.beans.factory.BeanFactory
Copyright © 2011 Atlassian. All Rights Reserved.