org.apache.jdo.tck.pc.mylib
Class MylibReader

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanFactory
      extended byorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
          extended byorg.springframework.beans.factory.support.DefaultListableBeanFactory
              extended byorg.springframework.beans.factory.xml.XmlBeanFactory
                  extended byorg.apache.jdo.tck.pc.mylib.MylibReader
All Implemented Interfaces:
org.springframework.beans.factory.config.AutowireCapableBeanFactory, org.springframework.beans.factory.support.BeanDefinitionRegistry, org.springframework.beans.factory.BeanFactory, org.springframework.beans.factory.config.ConfigurableBeanFactory, org.springframework.beans.factory.config.ConfigurableListableBeanFactory, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.ListableBeanFactory

public class MylibReader
extends org.springframework.beans.factory.xml.XmlBeanFactory

Utility class to create a mylib instances from an xml representation.


Field Summary
static java.lang.String DATE_PATTERN
          The format of date values in the xml representation
static java.lang.String ROOT_LIST_NAME
          The name of the root list bean.
 
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanFactory
logger
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR
 
Constructor Summary
MylibReader(java.io.InputStream stream)
          Create a MylibReader for the specified InputStream.
MylibReader(java.lang.String resourceName)
          Create a MylibReader for the specified resourceName.
MylibReader(java.lang.String resourceName, java.lang.ClassLoader classLoader)
          Create a MylibReader for the specified resourceName.
 
Method Summary
 PrimitiveTypes getPrimitiveTypes(java.lang.String name)
          Convenience method returning an Address instance for the specified name.
 java.util.List getRootList()
          Returns a list of root objects.
static java.lang.Class[] getTearDownClasses()
           
 
Methods inherited from class org.springframework.beans.factory.support.DefaultListableBeanFactory
containsBeanDefinition, findMatchingBeans, getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, isAllowBeanDefinitionOverriding, preInstantiateSingletons, registerBeanDefinition, setAllowBeanDefinitionOverriding, toString
 
Methods inherited from class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPostProcessorsBeforeInstantiation, applyBeanPropertyValues, autowire, autowireBeanProperties, autowireByName, autowireByType, autowireConstructor, checkDependencies, createBean, getIgnoredDependencyInterfaces, getIgnoredDependencyTypes, getInstantiationStrategy, getTypeForFactoryMethod, ignoreDependencyInterface, ignoreDependencyType, instantiateBean, instantiateUsingFactoryMethod, invokeCustomInitMethod, invokeInitMethods, isAllowCircularReferences, isExcludedFromDependencyCheck, populateBean, setAllowCircularReferences, setInstantiationStrategy, unsatisfiedNonSimpleProperties
 
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanFactory
addBeanPostProcessor, addSingleton, checkMergedBeanDefinition, containsBean, containsLocalBean, containsSingleton, destroyBean, destroySingletons, doTypeConversionIfNecessary, doTypeConversionIfNecessary, getAliases, getBean, getBean, getBean, getBean, getBeanPostProcessorCount, getBeanPostProcessors, getCustomEditors, getMergedBeanDefinition, getMergedBeanDefinition, getMergedBeanDefinition, getObjectForSharedInstance, getParentBeanFactory, getSingletonCount, getSingletonNames, getType, hasDestructionAwareBeanPostProcessors, initBeanWrapper, invokeCustomDestroyMethod, isFactoryBean, isFactoryDereference, isSingleton, isSingletonCurrentlyInCreation, registerAlias, registerCustomEditor, registerDependentBean, registerDisposableBean, registerDisposableBeanIfNecessary, registerSingleton, removeSingleton, setParentBeanFactory, transformedBeanName
 
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.config.ConfigurableListableBeanFactory
ignoreDependencyInterface, ignoreDependencyType
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getType, isSingleton
 
Methods inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPropertyValues, autowire, autowireBeanProperties
 
Methods inherited from interface org.springframework.beans.factory.config.ConfigurableBeanFactory
addBeanPostProcessor, containsSingleton, destroySingletons, getBeanPostProcessorCount, registerAlias, registerCustomEditor, registerSingleton, setParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean, getParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.support.BeanDefinitionRegistry
getAliases, registerAlias
 

Field Detail

DATE_PATTERN

public static final java.lang.String DATE_PATTERN
The format of date values in the xml representation

See Also:
Constant Field Values

ROOT_LIST_NAME

public static final java.lang.String ROOT_LIST_NAME
The name of the root list bean.

See Also:
Constant Field Values
Constructor Detail

MylibReader

public MylibReader(java.lang.String resourceName)
Create a MylibReader for the specified resourceName.

Parameters:
resourceName - the name of the resource

MylibReader

public MylibReader(java.lang.String resourceName,
                   java.lang.ClassLoader classLoader)
Create a MylibReader for the specified resourceName.

Parameters:
resourceName - the name of the resource

MylibReader

public MylibReader(java.io.InputStream stream)
Create a MylibReader for the specified InputStream.

Parameters:
stream - the input stream
Method Detail

getRootList

public java.util.List getRootList()
Returns a list of root objects. The method expects to find a bean called "root" of type list in the xml and returns it.

Returns:
a list of root instances

getPrimitiveTypes

public PrimitiveTypes getPrimitiveTypes(java.lang.String name)
Convenience method returning an Address instance for the specified name. The method returns null if there is no Address bean with the specified name.

Parameters:
name - the name of the bean to return.
Returns:
the instance of the bean or null if there no Address bean.

getTearDownClasses

public static java.lang.Class[] getTearDownClasses()
Returns:
Returns the tearDownClasses.


Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.