org.springframework.ldap.samples.person.options
Class CompanyOption
java.lang.Object
net.sf.chainedoptions.AbstractChainedOption
org.springframework.ldap.samples.person.options.CompanyOption
- All Implemented Interfaces:
- net.sf.chainedoptions.ChainedOption, InitializingBean
public class CompanyOption
- extends net.sf.chainedoptions.AbstractChainedOption
Responsible for retrieving available companies for a given country, sorting
them, and adjusting the command object if necessary. Collaborates with
ChainedOptionStrategy
, BeanConverter
, CompanyDao
.
- Author:
- Ulrik Sandberg
Methods inherited from class net.sf.chainedoptions.AbstractChainedOption |
afterPropertiesSet, getCommandProperty, getConverter, getOptionsKey, getProperty, getStrategy, matches, setCommandProperty, setConverter, setDefaultStrategy, setOptionsKey, setProperty, updateValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompanyOption
public CompanyOption()
retrieveOptions
public List retrieveOptions(Object command,
Object context)
- Specified by:
retrieveOptions
in interface net.sf.chainedoptions.ChainedOption
- Specified by:
retrieveOptions
in class net.sf.chainedoptions.AbstractChainedOption
initChainedOption
protected void initChainedOption()
- Overrides:
initChainedOption
in class net.sf.chainedoptions.AbstractChainedOption
setCompanyDao
public void setCompanyDao(CompanyDao companyDao)
setCountryProperty
public void setCountryProperty(String countryProperty)
Copyright © 2006-2009 Spring Framework. All Rights Reserved.