Source Code Cross Referenced for NamingManagerFactoryItf.java in  » Database-ORM » Speedo_1.4.5 » org » objectweb » speedo » naming » api » 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 » Speedo_1.4.5 » org.objectweb.speedo.naming.api 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /**
02:         * Copyright (C) 2001-2006 France Telecom R&D
03:         */package org.objectweb.speedo.naming.api;
04:
05:        import org.objectweb.jorm.api.PException;
06:        import org.objectweb.jorm.naming.api.PName;
07:        import org.objectweb.jorm.naming.api.PNameCoder;
08:        import org.objectweb.speedo.api.SpeedoException;
09:        import org.objectweb.speedo.mapper.api.JormFactory;
10:        import org.objectweb.speedo.metadata.SpeedoClass;
11:
12:        /**
13:         * A NamingManagerFactory manages a set of NamingManager instance. It permits 
14:         * - To bind or unbind a NamingManager,
15:         * - To find the right NamingManager managing the identifier/naming of a 
16:         * persistent class,
17:         * - To encode or decode persistent identifier.
18:         * 
19:         * @see NamingManager
20:         * @author S.Chassande-Barrioz
21:         */
22:        public interface NamingManagerFactoryItf {
23:
24:            /**
25:             * Binds a new NamaingManager in this factory
26:             * @param nm is the new NamingManager instance
27:             */
28:            void bindNamingManager(NamingManager nm);
29:
30:            /**
31:             * Unbinds an existing NamaingManager in this factory
32:             * @param nm is the NamingManager instance to forget
33:             * @return true is the NamingManager has been really found and therefore 
34:             * forgoten.
35:             */
36:            boolean unbindNamingManager(NamingManager nm);
37:
38:            /**
39:             * @return the NamingManager instance able to manage the identifier of a 
40:             * persistent class.
41:             * @param sc is the speedo meta object representing the persistent class.
42:             * @throws SpeedoException if no NamingManager can manage the persistent 
43:             * class.
44:             */
45:            NamingManager getNamingManager(SpeedoClass sc)
46:                    throws SpeedoException;
47:
48:            /**
49:             * @return the NamingManager instance able to manage the identifier of a 
50:             * persistent class.
51:             * @param hints is string value containing information permitting to find
52:             * the naming manager required.
53:             * @param classloader is the class loader of the application.
54:             * @throws SpeedoException if no NamingManager can manage the persistent 
55:             * class.
56:             */
57:            NamingManager getNamingManager(String hints, ClassLoader classloader)
58:                    throws PException;
59:
60:            /**
61:             * Decodes an object identifer into a PName.
62:             * @param pnc is the PNamingContext managing the naming of the referenced 
63:             * persistent class
64:             * @param oid is the object identifier
65:             * @param clazz is the java class of the referenced class. this paramter 
66:             * permits of course to access to the class loader of the application. 
67:             * @param jf is the JormFactory managing the persistent class.
68:             * @return a PName (JORM identifier of persistent class)
69:             * @throws PException if it is not possible to decode the object identifier
70:             * corresponding to the specified class.
71:             * @see #encode(PName)
72:             */
73:            PName decode(PNameCoder pnc, Object oid, java.lang.Class clazz,
74:                    JormFactory jf) throws PException;
75:
76:            /**
77:             * Encodes the persistent identifier (PName) into an object identifier 
78:             * usable, externaly to the Speedo system.
79:             * @param pn is the Pname to encode
80:             * @see #decode(PNameCoder, Object, java.lang.Class, JormFactory)
81:             */
82:            Object encode(PName pn) throws PException;
83:
84:            /**
85:             * clean all naming Manager 
86:             *
87:             */
88:            void clean();
89:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.