org.robotframework.javalib.context
Class KeywordApplicationContext

java.lang.Object
  extended by org.springframework.core.io.DefaultResourceLoader
      extended by org.springframework.context.support.AbstractApplicationContext
          extended by org.springframework.context.support.GenericApplicationContext
              extended by org.robotframework.javalib.context.KeywordApplicationContext
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactory, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory, org.springframework.beans.factory.support.BeanDefinitionRegistry, org.springframework.context.ApplicationContext, org.springframework.context.ApplicationEventPublisher, org.springframework.context.ConfigurableApplicationContext, org.springframework.context.Lifecycle, org.springframework.context.MessageSource, org.springframework.core.AliasRegistry, org.springframework.core.io.ResourceLoader, org.springframework.core.io.support.ResourcePatternResolver

public class KeywordApplicationContext
extends org.springframework.context.support.GenericApplicationContext

An application context for keyword beans. Decorates methods by normalizing bean names while registering and getting beans.


Field Summary
 
Fields inherited from class org.springframework.context.support.AbstractApplicationContext
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, logger, MESSAGE_SOURCE_BEAN_NAME
 
Fields inherited from interface org.springframework.context.ConfigurableApplicationContext
CONFIG_LOCATION_DELIMITERS, LOAD_TIME_WEAVER_BEAN_NAME
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Constructor Summary
KeywordApplicationContext()
           
 
Method Summary
 java.lang.Object getBean(java.lang.String name)
          Gets a bean.
 java.lang.String[] getBeanNamesForType(java.lang.Class type)
           
 void registerBeanDefinition(java.lang.String name, org.springframework.beans.factory.config.BeanDefinition beanDefinition)
          Registers a bean definition with original id and creates a normalized alias.
 
Methods inherited from class org.springframework.context.support.GenericApplicationContext
closeBeanFactory, getBeanDefinition, getBeanFactory, getDefaultListableBeanFactory, getResource, getResources, isAlias, isBeanNameInUse, refreshBeanFactory, registerAlias, removeAlias, removeBeanDefinition, setParent, setResourceLoader
 
Methods inherited from class org.springframework.context.support.AbstractApplicationContext
addApplicationListener, addBeanFactoryPostProcessor, addListener, cancelRefresh, close, containsBean, containsBeanDefinition, containsLocalBean, destroy, destroyBeans, doClose, finishBeanFactoryInitialization, finishRefresh, getAliases, getApplicationListeners, getAutowireCapableBeanFactory, getBean, getBean, getBeanDefinitionCount, getBeanDefinitionNames, getBeanFactoryPostProcessors, getBeanNamesForType, getBeansOfType, getBeansOfType, getDisplayName, getId, getInternalParentBeanFactory, getInternalParentMessageSource, getMessage, getMessage, getMessage, getParent, getParentBeanFactory, getResourcePatternResolver, getStartupDate, getType, initApplicationEventMulticaster, initMessageSource, invokeBeanFactoryPostProcessors, isActive, isPrototype, isRunning, isSingleton, isTypeMatch, obtainFreshBeanFactory, onClose, onRefresh, postProcessBeanFactory, prepareBeanFactory, prepareRefresh, publishEvent, refresh, registerBeanPostProcessors, registerListeners, registerShutdownHook, setDisplayName, setId, start, stop, toString
 
Methods inherited from class org.springframework.core.io.DefaultResourceLoader
getClassLoader, getResourceByPath, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.support.BeanDefinitionRegistry
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames
 
Methods inherited from interface org.springframework.core.AliasRegistry
getAliases
 
Methods inherited from interface org.springframework.core.io.ResourceLoader
getClassLoader
 

Constructor Detail

KeywordApplicationContext

public KeywordApplicationContext()
Method Detail

registerBeanDefinition

public void registerBeanDefinition(java.lang.String name,
                                   org.springframework.beans.factory.config.BeanDefinition beanDefinition)
                            throws org.springframework.beans.BeansException
Registers a bean definition with original id and creates a normalized alias.

Specified by:
registerBeanDefinition in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
Overrides:
registerBeanDefinition in class org.springframework.context.support.GenericApplicationContext
Throws:
org.springframework.beans.BeansException
See Also:
BeanDefinitionRegistry.registerBeanDefinition(String, BeanDefinition)

getBean

public java.lang.Object getBean(java.lang.String name)
                         throws org.springframework.beans.BeansException
Gets a bean. Name will be normalized.

Specified by:
getBean in interface org.springframework.beans.factory.BeanFactory
Overrides:
getBean in class org.springframework.context.support.AbstractApplicationContext
Throws:
org.springframework.beans.BeansException
See Also:
BeanFactory.getBean(String)

getBeanNamesForType

public java.lang.String[] getBeanNamesForType(java.lang.Class type)
Specified by:
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactory
Overrides:
getBeanNamesForType in class org.springframework.context.support.AbstractApplicationContext


Copyright © 2009. All Rights Reserved.