Java Doc for ServiceContext.java in  » Web-Services-AXIS2 » kernal » org » apache » axis2 » context » 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 » Web Services AXIS2 » kernal » org.apache.axis2.context 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.axis2.context.AbstractContext
      org.apache.axis2.context.ServiceContext

ServiceContext
public class ServiceContext extends AbstractContext implements Externalizable(Code)
Well this is never clearly defined, what it does or the life-cycle. So do NOT use this as it might not live up to your expectation.


Field Summary
final public static  StringSERVICE_OBJECT
    

Constructor Summary
public  ServiceContext()
    
 ServiceContext(AxisService axisService, ServiceGroupContext serviceGroupContext)
    

Method Summary
public  voidactivate(ConfigurationContext cc)
     This method checks to see if additional work needs to be done in order to complete the object reconstitution. Some parts of the object restored from the readExternal() cannot be completed until we have a configurationContext from the active engine.
public  OperationContextcreateOperationContext(QName name)
    
public  OperationContextcreateOperationContext(AxisOperation axisOp)
    
public  AxisServicegetAxisService()
    
public  ConfigurationContextgetConfigurationContext()
    
public  StringgetGroupName()
     Returns a name associated with the ServiceGroupContext associated with this ServiceContext.
public  OperationContextgetLastOperationContext()
    
public  StringgetLogCorrelationIDString()
     Get the ID associated with this object instance. A string that can be output to a log file as an identifierfor this object instance.
public  EndpointReferencegetMyEPR(String transport)
    
public  EndpointReferencegetMyEPR()
    
public  StringgetName()
     Returns a name associated with this ServiceContext.
public  ConfigurationContextgetRootContext()
    
public  ServiceGroupContextgetServiceGroupContext()
    
public  EndpointReferencegetTargetEPR()
    
public  booleanisCachingOperationContext()
    
public  booleanisEquivalent(ServiceContext ctx)
     Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.
public  voidputContextProperties(ServiceContext context, boolean doParentProperties)
     This will do a copy of the properties from this context object to the properties of the specified context object.
public  voidreadExternal(ObjectInput in)
     Restore the contents of the object that was previously saved.

NOTE: The field data must read back in the same order and type as it was written.

public  voidsetCachingOperationContext(boolean cacheLastOperationContext)
    
public  voidsetLastOperationContext(OperationContext lastOperationContext)
    
public  voidsetMyEPR(EndpointReference myEPR)
    
public  voidsetTargetEPR(EndpointReference targetEPR)
    
public  voidwriteExternal(ObjectOutput out)
     Save the contents of this object.

Field Detail
SERVICE_OBJECT
final public static String SERVICE_OBJECT(Code)




Constructor Detail
ServiceContext
public ServiceContext()(Code)
Public constructor (only here because this class is Externalizable)



ServiceContext
ServiceContext(AxisService axisService, ServiceGroupContext serviceGroupContext)(Code)
Constructor (package access, should only be used by ServiceGroupContext)
Parameters:
  axisService - the AxisService for which to create a context
Parameters:
  serviceGroupContext - the parent ServiceGroupContext




Method Detail
activate
public void activate(ConfigurationContext cc)(Code)
This method checks to see if additional work needs to be done in order to complete the object reconstitution. Some parts of the object restored from the readExternal() cannot be completed until we have a configurationContext from the active engine. The configurationContext is used to help this object to plug back into the engine's configuration and deployment objects.
Parameters:
  cc - The configuration context object representing the active configuration



createOperationContext
public OperationContext createOperationContext(QName name)(Code)



createOperationContext
public OperationContext createOperationContext(AxisOperation axisOp)(Code)



getAxisService
public AxisService getAxisService()(Code)



getConfigurationContext
public ConfigurationContext getConfigurationContext()(Code)



getGroupName
public String getGroupName()(Code)
Returns a name associated with the ServiceGroupContext associated with this ServiceContext. The name string, or null if no name can be found



getLastOperationContext
public OperationContext getLastOperationContext()(Code)



getLogCorrelationIDString
public String getLogCorrelationIDString()(Code)
Get the ID associated with this object instance. A string that can be output to a log file as an identifierfor this object instance. It is suitable for matching related logentries.



getMyEPR
public EndpointReference getMyEPR(String transport) throws AxisFault(Code)
To get the ERP for a given service , if the transport is present and not running then it will add as a listener to ListenerManager , there it will init that and start the listener , and finally ask the EPR from transport for a given service
Parameters:
  transport - : Name of the transport
throws:
  AxisFault -



getMyEPR
public EndpointReference getMyEPR()(Code)



getName
public String getName()(Code)
Returns a name associated with this ServiceContext.

Note: this name is from the corresponding AxisService object. The name string, or null if no name can be found




getRootContext
public ConfigurationContext getRootContext()(Code)



getServiceGroupContext
public ServiceGroupContext getServiceGroupContext()(Code)



getTargetEPR
public EndpointReference getTargetEPR()(Code)



isCachingOperationContext
public boolean isCachingOperationContext()(Code)



isEquivalent
public boolean isEquivalent(ServiceContext ctx)(Code)
Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.

This differs from the java.lang.Object.equals() method in that the equals() method generally looks at both the object identity (location in memory) and the object state (data).


Parameters:
  ctx - TRUE if this object is equivalent with the specified objectthat is, key fields matchFALSE, otherwise




putContextProperties
public void putContextProperties(ServiceContext context, boolean doParentProperties)(Code)
This will do a copy of the properties from this context object to the properties of the specified context object.
Parameters:
  context - The ServiceContext object to hold the merged properties
Parameters:
  doParentProperties - Indicates whether to go up the context hierachycopy the properties at each level



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)
Restore the contents of the object that was previously saved.

NOTE: The field data must read back in the same order and type as it was written. Some data will need to be validated when resurrected.
Parameters:
  in - The stream to read the object contents from
throws:
  IOException -
throws:
  ClassNotFoundException -




setCachingOperationContext
public void setCachingOperationContext(boolean cacheLastOperationContext)(Code)



setLastOperationContext
public void setLastOperationContext(OperationContext lastOperationContext)(Code)



setMyEPR
public void setMyEPR(EndpointReference myEPR)(Code)



setTargetEPR
public void setTargetEPR(EndpointReference targetEPR)(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)
Save the contents of this object.

NOTE: Transient fields and static fields are not saved. Also, objects that represent "static" data are not saved, except for enough information to be able to find matching objects when the message context is re-constituted.
Parameters:
  out - The stream to write the object contents to
throws:
  IOException -




Fields inherited from org.apache.axis2.context.AbstractContext
final public static String COPY_PROPERTIES(Code)(Java Doc)
protected long lastTouchedTime(Code)(Java Doc)
protected transient AbstractContext parent(Code)(Java Doc)
protected transient Map properties(Code)(Java Doc)

Methods inherited from org.apache.axis2.context.AbstractContext
public synchronized void clearPropertyDifferences()(Code)(Java Doc)
public void flush() throws AxisFault(Code)(Java Doc)
public long getLastTouchedTime()(Code)(Java Doc)
public AbstractContext getParent()(Code)(Java Doc)
public Map getProperties()(Code)(Java Doc)
public Object getProperty(String key)(Code)(Java Doc)
public synchronized Map getPropertyDifferences()(Code)(Java Doc)
public Iterator getPropertyNames()(Code)(Java Doc)
public Object getPropertyNonReplicable(String key)(Code)(Java Doc)
abstract public ConfigurationContext getRootContext()(Code)(Java Doc)
public void mergeProperties(Map props)(Code)(Java Doc)
public synchronized void removeProperty(String key)(Code)(Java Doc)
public synchronized void removePropertyNonReplicable(String key)(Code)(Java Doc)
public void setLastTouchedTime(long t)(Code)(Java Doc)
public void setNonReplicableProperty(String key, Object value)(Code)(Java Doc)
public void setParent(AbstractContext context)(Code)(Java Doc)
public void setProperties(Map properties)(Code)(Java Doc)
public void setProperty(String key, Object value)(Code)(Java Doc)
protected void touch()(Code)(Java Doc)

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.