org.apache.jdo.tck.pc.company
Class CompanyModelReader

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.company.CompanyModelReader
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 CompanyModelReader
extends org.springframework.beans.factory.xml.XmlBeanFactory

Utility class to create a graph of company model instances from an xml representation.

Author:
Michael Bouschen

Field Summary
static java.lang.String DATE_PATTERN
          The format of date values in the xml representation
 
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
CompanyModelReader(java.io.InputStream stream)
          Create a CompanyModelReader for the specified InputStream.
CompanyModelReader(java.lang.String resourceName)
          Create a CompanyModelReader for the specified resourceName.
CompanyModelReader(java.lang.String resourceName, java.lang.ClassLoader classLoader)
          Create a CompanyModelReader for the specified resourceName.
 
Method Summary
 Address getAddress(java.lang.String name)
          Convenience method returning an Address instance for the specified name.
 Company getCompany(java.lang.String name)
          Convenience method returning a Company instance for the specified name.
 DentalInsurance getDentalInsurance(java.lang.String name)
          Convenience method returning a DentalInsurance instance for the specified name.
 Department getDepartment(java.lang.String name)
          Convenience method returning a Department instance for the specified name.
 Employee getEmployee(java.lang.String name)
          Convenience method returning an Employee instance for the specified name.
 FullTimeEmployee getFullTimeEmployee(java.lang.String name)
          Convenience method returning a FullTimeEmployee instance for the specified name.
 Insurance getInsurance(java.lang.String name)
          Convenience method returning an Insurance instance for the specified name.
 MedicalInsurance getMedicalInsurance(java.lang.String name)
          Convenience method returning a MedicalInsurance instance for the specified name.
 PartTimeEmployee getPartTimeEmployee(java.lang.String name)
          Convenience method returning a PartTimeEmployee instance for the specified name.
 Person getPerson(java.lang.String name)
          Convenience method returning a Person instance for the specified name.
 Project getProject(java.lang.String name)
          Convenience method returning a Project instance for the specified name.
 
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
Constructor Detail

CompanyModelReader

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

Parameters:
resourceName - the name of the resource

CompanyModelReader

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

Parameters:
resourceName - the name of the resource

CompanyModelReader

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

Parameters:
stream - the input stream
Method Detail

getAddress

public Address getAddress(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.

getCompany

public Company getCompany(java.lang.String name)
Convenience method returning a Company instance for the specified name. The method returns null if there is no Company 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 Company bean.

getDentalInsurance

public DentalInsurance getDentalInsurance(java.lang.String name)
Convenience method returning a DentalInsurance instance for the specified name. The method returns null if there is no DentalInsurance 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 DentalInsurance bean.

getDepartment

public Department getDepartment(java.lang.String name)
Convenience method returning a Department instance for the specified name. The method returns null if there is no Department 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 Department bean.

getEmployee

public Employee getEmployee(java.lang.String name)
Convenience method returning an Employee instance for the specified name. The method returns null if there is no Employee 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 Employee bean.

getFullTimeEmployee

public FullTimeEmployee getFullTimeEmployee(java.lang.String name)
Convenience method returning a FullTimeEmployee instance for the specified name. The method returns null if there is no FullTimeEmployee 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 FullTimeEmployee bean.

getInsurance

public Insurance getInsurance(java.lang.String name)
Convenience method returning an Insurance instance for the specified name. The method returns null if there is no Insurance 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 Insurance bean.

getMedicalInsurance

public MedicalInsurance getMedicalInsurance(java.lang.String name)
Convenience method returning a MedicalInsurance instance for the specified name. The method returns null if there is no MedicalInsurance 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 MedicalInsurance bean.

getPartTimeEmployee

public PartTimeEmployee getPartTimeEmployee(java.lang.String name)
Convenience method returning a PartTimeEmployee instance for the specified name. The method returns null if there is no PartTimeEmployee 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 PartTimeEmployee bean.

getPerson

public Person getPerson(java.lang.String name)
Convenience method returning a Person instance for the specified name. The method returns null if there is no Person 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 Person bean.

getProject

public Project getProject(java.lang.String name)
Convenience method returning a Project instance for the specified name. The method returns null if there is no Project 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 Project bean.


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