Java Doc for ProductDerivation.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) 


org.apache.openjpa.lib.conf.ProductDerivation

All known Subclasses:   org.apache.openjpa.lib.conf.AbstractProductDerivation,
ProductDerivation
public interface ProductDerivation (Code)
Hooks for deriving products with additional functionality. Parses configuration information from global, default or explictly-specified resources. All implementations of this interface will have a chance to mutate a Configuration both before and after the user-specified configuration data is loaded. The order in which the product derivations are evaluated is determined by the specificity of the derivation type.
author:
   Abe White
author:
   Pinaki Poddar
since:
   0.4.1


Field Summary
final public static  intTYPE_FEATURE
    
final public static  intTYPE_PRODUCT
    


Method Summary
public  booleanafterSpecificationSet(Configuration conf)
     Called after the specification has been set.
public  voidbeforeConfigurationClose(Configuration conf)
     Called before the given Configuration is closed.
public  booleanbeforeConfigurationConstruct(ConfigurationProvider cp)
     Provides the instance with a callback to mutate the initial properties of the ConfigurationProvider .
public  booleanbeforeConfigurationLoad(Configuration conf)
     Provides the instance with the opportunity to mutate conf before the user configuration is applied.
public  ListgetAnchorsInFile(File file)
     Return a List of all the anchors defined in file.
public  ListgetAnchorsInResource(String resource)
     Return a List of all the anchors defined in resource.
public  StringgetConfigurationPrefix()
     Return the configuration prefix for properties of this product.
public  StringgetDefaultResourceLocation()
     Return a string identifying the default resource location for this product derivation, if one exists.
public  intgetType()
     Return the type of derivation.
public  ConfigurationProviderload(String resource, String anchor, ClassLoader loader)
     Load the given given resource into the returned ConfigurationProvider, or return null if it is not a resource this receiver understands.
public  ConfigurationProviderload(File file, String anchor)
     Load given file, or return null if it is not a file this receiver understands.
public  ConfigurationProviderloadDefaults(ClassLoader loader)
     Load defaults into the returned ConfigurationProvider, or return null if no defaults are found.
public  ConfigurationProviderloadGlobals(ClassLoader loader)
     Load globals into the returned ConfigurationProvider, or return null if no globals are found.
public  voidvalidate()
     Ensure that this derivation is valid.

Field Detail
TYPE_FEATURE
final public static int TYPE_FEATURE(Code)



TYPE_PRODUCT
final public static int TYPE_PRODUCT(Code)





Method Detail
afterSpecificationSet
public boolean afterSpecificationSet(Configuration conf)(Code)
Called after the specification has been set. true if given Configuration has been mutated.



beforeConfigurationClose
public void beforeConfigurationClose(Configuration conf)(Code)
Called before the given Configuration is closed.
since:
   0.9.7



beforeConfigurationConstruct
public boolean beforeConfigurationConstruct(ConfigurationProvider cp)(Code)
Provides the instance with a callback to mutate the initial properties of the ConfigurationProvider . This is primarily to alter or add properties that determine what type of configuration is constructed, and therefore is typically used at runtime only. true if given ConfigurationProvider has been mutated.



beforeConfigurationLoad
public boolean beforeConfigurationLoad(Configuration conf)(Code)
Provides the instance with the opportunity to mutate conf before the user configuration is applied. true if given Configuration has been mutated.



getAnchorsInFile
public List getAnchorsInFile(File file) throws IOException, Exception(Code)
Return a List of all the anchors defined in file. The returned names are not fully-qualified, so must be used in conjunction with file in calls to ProductDerivation.load(java.io.File,String) . Returns null or an empty list if no anchors could be found.
since:
   1.1.0



getAnchorsInResource
public List getAnchorsInResource(String resource) throws Exception(Code)
Return a List of all the anchors defined in resource. The returned names are not fully-qualified, so must be used in conjunction with resource in calls to ProductDerivation.load(java.io.File,String) . Returns null or an empty list if no anchors could be found.
since:
   1.1.0



getConfigurationPrefix
public String getConfigurationPrefix()(Code)
Return the configuration prefix for properties of this product.



getDefaultResourceLocation
public String getDefaultResourceLocation()(Code)
Return a string identifying the default resource location for this product derivation, if one exists. If there is no default location, returns null.
since:
   1.1.0



getType
public int getType()(Code)
Return the type of derivation.



load
public ConfigurationProvider load(String resource, String anchor, ClassLoader loader) throws Exception(Code)
Load the given given resource into the returned ConfigurationProvider, or return null if it is not a resource this receiver understands. The given class loader may be null.
Parameters:
  anchor - optional named anchor within a multiple-configurationresource



load
public ConfigurationProvider load(File file, String anchor) throws Exception(Code)
Load given file, or return null if it is not a file this receiver understands.
Parameters:
  anchor - optional named anchor within a multiple-configuration file



loadDefaults
public ConfigurationProvider loadDefaults(ClassLoader loader) throws Exception(Code)
Load defaults into the returned ConfigurationProvider, or return null if no defaults are found.



loadGlobals
public ConfigurationProvider loadGlobals(ClassLoader loader) throws Exception(Code)
Load globals into the returned ConfigurationProvider, or return null if no globals are found.



validate
public void validate() throws Exception(Code)
Ensure that this derivation is valid. This action might consist of loading classes for the product this derivation represents to be sure they exist. Throw any throwable to indicate an invalid derivation. Invalid derivations will not be used.



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