net.sourceforge.basher.example.tasks.spring
Class SampleSpringBeanFactory

java.lang.Object
  extended by net.sourceforge.basher.example.tasks.spring.SampleSpringBeanFactory
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactory

public class SampleSpringBeanFactory
extends Object
implements org.springframework.beans.factory.BeanFactory

Author:
Johan Lindquist

Field Summary
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Constructor Summary
SampleSpringBeanFactory()
           
 
Method Summary
 boolean containsBean(String s)
           
 String[] getAliases(String s)
           
<T> T
getBean(Class<T> tClass)
           
 Object getBean(String s)
           
<T> T
getBean(String s, Class<T> tClass)
           
 Object getBean(String s, Object... objects)
           
 Class<?> getType(String s)
           
 void initializeService()
           
 boolean isPrototype(String s)
           
 boolean isSingleton(String s)
           
 boolean isTypeMatch(String s, Class aClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleSpringBeanFactory

public SampleSpringBeanFactory()
Method Detail

initializeService

public void initializeService()

getBean

public Object getBean(String s)
               throws org.springframework.beans.BeansException
Specified by:
getBean in interface org.springframework.beans.factory.BeanFactory
Throws:
org.springframework.beans.BeansException

getBean

public <T> T getBean(String s,
                     Class<T> tClass)
          throws org.springframework.beans.BeansException
Specified by:
getBean in interface org.springframework.beans.factory.BeanFactory
Throws:
org.springframework.beans.BeansException

getBean

public <T> T getBean(Class<T> tClass)
          throws org.springframework.beans.BeansException
Specified by:
getBean in interface org.springframework.beans.factory.BeanFactory
Throws:
org.springframework.beans.BeansException

getBean

public Object getBean(String s,
                      Object... objects)
               throws org.springframework.beans.BeansException
Specified by:
getBean in interface org.springframework.beans.factory.BeanFactory
Throws:
org.springframework.beans.BeansException

containsBean

public boolean containsBean(String s)
Specified by:
containsBean in interface org.springframework.beans.factory.BeanFactory

isSingleton

public boolean isSingleton(String s)
                    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(String s)
                    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(String s,
                           Class aClass)
                    throws org.springframework.beans.factory.NoSuchBeanDefinitionException
Specified by:
isTypeMatch in interface org.springframework.beans.factory.BeanFactory
Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException

getType

public Class<?> getType(String s)
                 throws org.springframework.beans.factory.NoSuchBeanDefinitionException
Specified by:
getType in interface org.springframework.beans.factory.BeanFactory
Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException

getAliases

public String[] getAliases(String s)
Specified by:
getAliases in interface org.springframework.beans.factory.BeanFactory


Copyright © 2006-2010 Basher Team. All Rights Reserved.