Java Doc for ConstructorArgumentValues.java in  » J2EE » spring-framework-2.0.6 » org » springframework » beans » factory » config » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.0.6 » org.springframework.beans.factory.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.beans.factory.config.ConstructorArgumentValues

ConstructorArgumentValues
public class ConstructorArgumentValues (Code)
Holder for constructor argument values, typically as part of a bean definition.

Supports values for a specific index in the constructor argument list as well as for generic argument matches by type.
author:
   Juergen Hoeller
since:
   09.11.2003
See Also:   BeanDefinition.getConstructorArgumentValues


Inner Class :public static class ValueHolder implements BeanMetadataElement


Constructor Summary
public  ConstructorArgumentValues()
     Create a new empty ConstructorArgumentValues object.
public  ConstructorArgumentValues(ConstructorArgumentValues original)
     Deep copy constructor.

Method Summary
public  voidaddArgumentValues(ConstructorArgumentValues other)
     Copy all given argument values into this object, using separate holder instances to keep the values independent from the original object.

Note: Identical ValueHolder instances will only be registered once, to allow for merging and re-merging of argument value definitions.

public  voidaddGenericArgumentValue(Object value)
     Add generic argument value to be matched by type.
public  voidaddGenericArgumentValue(Object value, String type)
     Add generic argument value to be matched by type.
public  voidaddGenericArgumentValue(ValueHolder newValue)
     Add generic argument value to be matched by type.

Note: A single generic argument value will just be used once, rather than matched multiple times (as of Spring 1.1).
Parameters:
  newValue - the argument value in the form of a ValueHolder

Note: Identical ValueHolder instances will only be registered once,to allow for merging and re-merging of argument value definitions.

public  voidaddIndexedArgumentValue(int index, Object value)
     Add argument value for the given index in the constructor argument list.
public  voidaddIndexedArgumentValue(int index, Object value, String type)
     Add argument value for the given index in the constructor argument list.
public  voidaddIndexedArgumentValue(int index, ValueHolder newValue)
     Add argument value for the given index in the constructor argument list.
public  voidclear()
     Clear this holder, removing all argument values.
public  booleanequals(Object other)
    
public  intgetArgumentCount()
     Return the number of argument values held in this instance, counting both indexed and generic argument values.
public  ValueHoldergetArgumentValue(int index, Class requiredType)
     Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by type.
public  ValueHoldergetArgumentValue(int index, Class requiredType, Set usedValueHolders)
     Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by type.
public  ValueHoldergetGenericArgumentValue(Class requiredType)
     Look for a generic argument value that matches the given type.
public  ValueHoldergetGenericArgumentValue(Class requiredType, Set usedValueHolders)
     Look for the next generic argument value that matches the given type, ignoring argument values that have already been used in the current resolution process.
public  ListgetGenericArgumentValues()
     Return the list of generic argument values.
public  ValueHoldergetIndexedArgumentValue(int index, Class requiredType)
     Get argument value for the given index in the constructor argument list.
public  MapgetIndexedArgumentValues()
     Return the map of indexed argument values.
public  inthashCode()
    
public  booleanisEmpty()
     Return if this holder does not contain any argument values, neither indexed ones nor generic ones.


Constructor Detail
ConstructorArgumentValues
public ConstructorArgumentValues()(Code)
Create a new empty ConstructorArgumentValues object.



ConstructorArgumentValues
public ConstructorArgumentValues(ConstructorArgumentValues original)(Code)
Deep copy constructor.
Parameters:
  original - the ConstructorArgumentValues to copy




Method Detail
addArgumentValues
public void addArgumentValues(ConstructorArgumentValues other)(Code)
Copy all given argument values into this object, using separate holder instances to keep the values independent from the original object.

Note: Identical ValueHolder instances will only be registered once, to allow for merging and re-merging of argument value definitions. Distinct ValueHolder instances carrying the same content are of course allowed.




addGenericArgumentValue
public void addGenericArgumentValue(Object value)(Code)
Add generic argument value to be matched by type.

Note: A single generic argument value will just be used once, rather than matched multiple times (as of Spring 1.1).
Parameters:
  value - the argument value




addGenericArgumentValue
public void addGenericArgumentValue(Object value, String type)(Code)
Add generic argument value to be matched by type.

Note: A single generic argument value will just be used once, rather than matched multiple times (as of Spring 1.1).
Parameters:
  value - the argument value
Parameters:
  type - the type of the constructor argument




addGenericArgumentValue
public void addGenericArgumentValue(ValueHolder newValue)(Code)
Add generic argument value to be matched by type.

Note: A single generic argument value will just be used once, rather than matched multiple times (as of Spring 1.1).
Parameters:
  newValue - the argument value in the form of a ValueHolder

Note: Identical ValueHolder instances will only be registered once,to allow for merging and re-merging of argument value definitions. DistinctValueHolder instances carrying the same content are of course allowed.




addIndexedArgumentValue
public void addIndexedArgumentValue(int index, Object value)(Code)
Add argument value for the given index in the constructor argument list.
Parameters:
  index - the index in the constructor argument list
Parameters:
  value - the argument value



addIndexedArgumentValue
public void addIndexedArgumentValue(int index, Object value, String type)(Code)
Add argument value for the given index in the constructor argument list.
Parameters:
  index - the index in the constructor argument list
Parameters:
  value - the argument value
Parameters:
  type - the type of the constructor argument



addIndexedArgumentValue
public void addIndexedArgumentValue(int index, ValueHolder newValue)(Code)
Add argument value for the given index in the constructor argument list.
Parameters:
  index - the index in the constructor argument list
Parameters:
  newValue - the argument value in the form of a ValueHolder



clear
public void clear()(Code)
Clear this holder, removing all argument values.



equals
public boolean equals(Object other)(Code)



getArgumentCount
public int getArgumentCount()(Code)
Return the number of argument values held in this instance, counting both indexed and generic argument values.



getArgumentValue
public ValueHolder getArgumentValue(int index, Class requiredType)(Code)
Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by type.
Parameters:
  index - the index in the constructor argument list
Parameters:
  requiredType - the type to match the ValueHolder for the argument, or null if none set



getArgumentValue
public ValueHolder getArgumentValue(int index, Class requiredType, Set usedValueHolders)(Code)
Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by type.
Parameters:
  index - the index in the constructor argument list
Parameters:
  requiredType - the type to match (can be null to findan untyped argument value)
Parameters:
  usedValueHolders - a Set of ValueHolder objects that have alreadybeen used in the current resolution process and should therefore notbe returned again (allowing to return the next generic argument matchin case of multiple generic argument values of the same type) the ValueHolder for the argument, or null if none set



getGenericArgumentValue
public ValueHolder getGenericArgumentValue(Class requiredType)(Code)
Look for a generic argument value that matches the given type.
Parameters:
  requiredType - the type to match (can be null to findan arbitrary next generic argument value) the ValueHolder for the argument, or null if none set



getGenericArgumentValue
public ValueHolder getGenericArgumentValue(Class requiredType, Set usedValueHolders)(Code)
Look for the next generic argument value that matches the given type, ignoring argument values that have already been used in the current resolution process.
Parameters:
  requiredType - the type to match (can be null to findan arbitrary next generic argument value)
Parameters:
  usedValueHolders - a Set of ValueHolder objects that have already been usedin the current resolution process and should therefore not be returned again the ValueHolder for the argument, or null if none found



getGenericArgumentValues
public List getGenericArgumentValues()(Code)
Return the list of generic argument values. unmodifiable List of ValueHolders
See Also:   ValueHolder



getIndexedArgumentValue
public ValueHolder getIndexedArgumentValue(int index, Class requiredType)(Code)
Get argument value for the given index in the constructor argument list.
Parameters:
  index - the index in the constructor argument list
Parameters:
  requiredType - the type to match (can be null to matchuntyped values only) the ValueHolder for the argument, or null if none set



getIndexedArgumentValues
public Map getIndexedArgumentValues()(Code)
Return the map of indexed argument values. unmodifiable Map with Integer index as key and ValueHolder as value
See Also:   ValueHolder



hashCode
public int hashCode()(Code)



isEmpty
public boolean isEmpty()(Code)
Return if this holder does not contain any argument values, neither indexed ones nor generic ones.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.