Java Doc for Configurations.java in  » Database-ORM » openjpa » org » apache » openjpa » lib » conf » 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 » Database ORM » openjpa » org.apache.openjpa.lib.conf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.openjpa.lib.conf.Configurations

Configurations
public class Configurations (Code)
Utility methods dealing with configuration.
author:
   Abe White

Inner Class :public interface Runnable



Method Summary
public static  StringcombinePlugins(String orig, String override)
     Return a plugin string that combines the properties of the given plugin strings, where properties of override will override the same properties of orig.
public static  voidconfigureInstance(Object obj, Configuration conf, String properties)
     Configures the given object with the given properties by matching the properties string to the object's setter methods.
public static  voidconfigureInstance(Object obj, Configuration conf, String properties, String configurationName)
     Configures the given object with the given properties by matching the properties string to the object's setter methods.
public static  voidconfigureInstance(Object obj, Configuration conf, Properties properties)
     Configures the given object with the given properties by matching the properties string to the object's setter methods.
public static  voidconfigureInstance(Object obj, Configuration conf, Properties properties, String configurationName)
     Configures the given object with the given properties by matching the properties string to the object's setter methods.
public static  booleancontainsProperty(String partialKey, Map props)
     Test whether the map contains the given partial key, prefixed with any possible configuration prefix.
public static  StringgetClassName(String plugin)
     Return the class name from the given plugin string, or null if none.
public static  ListgetFullyQualifiedAnchorsInPropertiesLocation(Options opts)
     Return a List of all the fully-qualified anchors specified in the properties location listed in opts.
public static  StringgetPlugin(String clsName, String props)
     Combine the given class name and properties into a plugin string.
public static  StringgetProperties(String plugin)
     Return the properties part of the given plugin string, or null if none.
public static  ObjectgetProperty(String partialKey, Map m)
     Get the property under the given partial key, prefixed with any possible configuration prefix.
public static  Objectlookup(String name)
     Looks up the given name in JNDI.
public static  ObjectnewInstance(String clsName, ClassLoader loader)
     Create the instance with the given class name, using the given class loader.
public static  ObjectnewInstance(String clsName, Configuration conf, String props, ClassLoader loader)
     Create and configure an instance with the given class name and properties.
static  ObjectnewInstance(String clsName, Value val, Configuration conf, ClassLoader loader, boolean fatal)
     Helper method used by members of this package to instantiate plugin values.
public static  OptionsparseProperties(String properties)
     Parse a set of properties from a comma-separated string.
public static  voidpopulateConfiguration(Configuration conf, Options opts)
     Set the given Configuration instance from the command line options provided.
public static  ObjectremoveProperty(String partialKey, Map props)
     Remove the property under the given partial key, prefixed with any possible configuration prefix.
public static  booleanrunAgainstAllAnchors(Options opts, Configurations.Runnable runnable)
     Runs runnable against all the anchors in the configuration pointed to by opts.
public static  StringserializeProperties(Map map)
     Turn a set of properties into a comma-separated string.



Method Detail
combinePlugins
public static String combinePlugins(String orig, String override)(Code)
Return a plugin string that combines the properties of the given plugin strings, where properties of override will override the same properties of orig.



configureInstance
public static void configureInstance(Object obj, Configuration conf, String properties)(Code)
Configures the given object with the given properties by matching the properties string to the object's setter methods. The properties string should be in the form "prop1=val1, prop2=val2 ...". Does not validate that setter methods exist for the properties.
throws:
  RuntimeException - on configuration error



configureInstance
public static void configureInstance(Object obj, Configuration conf, String properties, String configurationName)(Code)
Configures the given object with the given properties by matching the properties string to the object's setter methods. The properties string should be in the form "prop1=val1, prop2=val2 ...". Validates that setter methods exist for the properties.
throws:
  RuntimeException - on configuration error



configureInstance
public static void configureInstance(Object obj, Configuration conf, Properties properties)(Code)
Configures the given object with the given properties by matching the properties string to the object's setter methods. Does not validate that setter methods exist for the properties.
throws:
  RuntimeException - on configuration error



configureInstance
public static void configureInstance(Object obj, Configuration conf, Properties properties, String configurationName)(Code)
Configures the given object with the given properties by matching the properties string to the object's setter methods. If configurationName is non-null, validates that setter methods exist for the properties.
throws:
  RuntimeException - on configuration error



containsProperty
public static boolean containsProperty(String partialKey, Map props)(Code)
Test whether the map contains the given partial key, prefixed with any possible configuration prefix.



getClassName
public static String getClassName(String plugin)(Code)
Return the class name from the given plugin string, or null if none.



getFullyQualifiedAnchorsInPropertiesLocation
public static List getFullyQualifiedAnchorsInPropertiesLocation(Options opts)(Code)
Return a List of all the fully-qualified anchors specified in the properties location listed in opts. If no properties location is listed in opts, this returns whatever the product derivations can find in their default configurations. If the properties location specified in opts already contains an anchor spec, this returns that anchor. Note that in this fully-qualified-input case, the logic involving product derivations and resource parsing is short-circuited, so this method should not be used as a means to test that a particular anchor is defined in a given location by invoking with a fully-qualified anchor. This does not mutate opts.
since:
   1.1.0



getPlugin
public static String getPlugin(String clsName, String props)(Code)
Combine the given class name and properties into a plugin string.



getProperties
public static String getProperties(String plugin)(Code)
Return the properties part of the given plugin string, or null if none.



getProperty
public static Object getProperty(String partialKey, Map m)(Code)
Get the property under the given partial key, prefixed with any possible configuration prefix.



lookup
public static Object lookup(String name)(Code)
Looks up the given name in JNDI. If the name is null, null is returned.



newInstance
public static Object newInstance(String clsName, ClassLoader loader)(Code)
Create the instance with the given class name, using the given class loader. No configuration of the instance is performed by this method.



newInstance
public static Object newInstance(String clsName, Configuration conf, String props, ClassLoader loader)(Code)
Create and configure an instance with the given class name and properties.



newInstance
static Object newInstance(String clsName, Value val, Configuration conf, ClassLoader loader, boolean fatal)(Code)
Helper method used by members of this package to instantiate plugin values.



parseProperties
public static Options parseProperties(String properties)(Code)
Parse a set of properties from a comma-separated string.



populateConfiguration
public static void populateConfiguration(Configuration conf, Options opts)(Code)
Set the given Configuration instance from the command line options provided. All property names of the given configuration are recognized; additionally, if a properties or p argument exists, the resource it points to will be loaded and set into the given configuration instance. It can point to either a file or a resource name.



removeProperty
public static Object removeProperty(String partialKey, Map props)(Code)
Remove the property under the given partial key, prefixed with any possible configuration prefix.



runAgainstAllAnchors
public static boolean runAgainstAllAnchors(Options opts, Configurations.Runnable runnable)(Code)
Runs runnable against all the anchors in the configuration pointed to by opts. Each invocation gets a fresh clone of opts with the properties option set appropriately.
since:
   1.1.0



serializeProperties
public static String serializeProperties(Map map)(Code)
Turn a set of properties into a comma-separated string.



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.