Source Code Cross Referenced for Servant.java in  » Collaboration » JacORB » org » omg » PortableServer » 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 » Collaboration » JacORB » org.omg.PortableServer 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /***** Copyright (c) 1999-2000 Object Management Group. Unlimited rights to 
002:               duplicate and use this code are hereby granted provided that this 
003:               copyright notice is included.
004:         *****/package org.omg.PortableServer;
005:
006:        abstract public class Servant {
007:
008:            final public org.omg.CORBA.Object _this _object() {
009:                return _get_delegate().this _object(this );
010:            }
011:
012:            final public org.omg.CORBA.Object _this _object(org.omg.CORBA.ORB orb) {
013:                try {
014:                    ((org.omg.CORBA_2_3.ORB) orb).set_delegate(this );
015:                } catch (ClassCastException e) {
016:                    throw new org.omg.CORBA.BAD_PARAM(
017:                            "POA Servant requires an instanceof org.omg.CORBA_2_3.ORB");
018:                }
019:                return _this _object();
020:            }
021:
022:            final public org.omg.CORBA.ORB _orb() {
023:                return _get_delegate().orb(this );
024:            }
025:
026:            final public POA _poa() {
027:                return _get_delegate().poa(this );
028:            }
029:
030:            final public byte[] _object_id() {
031:                return _get_delegate().object_id(this );
032:            }
033:
034:            public POA _default_POA() {
035:                return _get_delegate().default_POA(this );
036:            }
037:
038:            public boolean _is_a(String repository_id) {
039:                return _get_delegate().is_a(this , repository_id);
040:            }
041:
042:            public boolean _non_existent() {
043:                return _get_delegate().non_existent(this );
044:            }
045:
046:            public org.omg.CORBA.Object _get_component() {
047:                return _get_delegate().get_component(this );
048:            }
049:
050:            /** @deprecated Deprecated by CORBA 2.4
051:             */
052:            public org.omg.CORBA.InterfaceDef _get_interface() {
053:                return _get_delegate().get_interface(this );
054:            }
055:
056:            public org.omg.CORBA.Object _get_interface_def() {
057:                // First try to call the delegate implementation class's
058:                // "Object get_interface_def(..)" method (will work for ORBs
059:                // whose delegates implement this method).
060:                // Else call the delegate implementation class's
061:                // "InterfaceDef get_interface(..)" method using reflection
062:                // (will work for ORBs that were built using an older version
063:                // of the Delegate interface with a get_interface method
064:                // but not a get_interface_def method).
065:
066:                org.omg.PortableServer.portable.Delegate delegate = _get_delegate();
067:                try {
068:                    // If the ORB's delegate class does not implement
069:                    // "Object get_interface_def(..)", this will throw
070:                    // an AbstractMethodError.
071:                    return delegate.get_interface_def(this );
072:                } catch (AbstractMethodError aex) {
073:                    // Call "InterfaceDef get_interface(..)" method using reflection.
074:                    try {
075:                        Class[] argc = { org.omg.PortableServer.Servant.class };
076:                        java.lang.reflect.Method meth = delegate.getClass()
077:                                .getMethod("get_interface", argc);
078:                        Object[] argx = { this  };
079:                        return (org.omg.CORBA.Object) meth.invoke(delegate,
080:                                argx);
081:                    } catch (java.lang.reflect.InvocationTargetException exs) {
082:                        Throwable t = exs.getTargetException();
083:                        if (t instanceof  Error) {
084:                            throw (Error) t;
085:                        } else if (t instanceof  RuntimeException) {
086:                            throw (RuntimeException) t;
087:                        } else {
088:                            throw new org.omg.CORBA.NO_IMPLEMENT();
089:                        }
090:                    } catch (RuntimeException rex) {
091:                        throw rex;
092:                    } catch (Exception exr) {
093:                        throw new org.omg.CORBA.NO_IMPLEMENT();
094:                    }
095:                }
096:            }
097:
098:            abstract public String[] _all_interfaces(POA poa, byte[] objectID);
099:
100:            private transient org.omg.PortableServer.portable.Delegate _delegate = null;
101:
102:            final public org.omg.PortableServer.portable.Delegate _get_delegate() {
103:                if (_delegate == null) {
104:                    throw new org.omg.CORBA.BAD_INV_ORDER(
105:                            "The Servant has not been associated with an ORBinstance");
106:                }
107:                return _delegate;
108:            }
109:
110:            final public void _set_delegate(
111:                    org.omg.PortableServer.portable.Delegate delegate) {
112:                _delegate = delegate;
113:            }
114:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.