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

ConfigurationContext
public class ConfigurationContext extends AbstractContext (Code)

Axis2 states are held in two information models, called description hierarchy and context hierarchy. Description hierarchy hold deployment configuration and it's values does not change unless deployment configuration change occurs where Context hierarchy hold run time information. Both hierarchies consists four levels, Global, Service Group, Operation and Message. Please look at "Information Model" section of "Axis2 Architecture Guide" for more information.

Configuration Context hold Global level run-time information. This allows same configurations to be used by two Axis2 instances and most Axis2 wide configurations can changed by setting name value pairs of the configurationContext. This hold all OperationContexts, ServiceGroups, Sessions, and ListenerManager.



Field Summary
protected  ListcontextListeners
    

Constructor Summary
public  ConfigurationContext(AxisConfiguration axisConfiguration)
    

Method Summary
public  voidaddContextListener(ContextListener contextListener)
     Register a ContextListener to be notified of all sub-context events.
public  voidaddServiceGroupContextIntoApplicationScopeTable(ServiceGroupContext serviceGroupContext)
    
public  voidaddServiceGroupContextIntoSoapSessionTable(ServiceGroupContext serviceGroupContext)
    
public  voidcleanupContexts()
    
 voidcontextCreated(AbstractContext context)
    
 voidcontextRemoved(AbstractContext context)
    
public  MessageContextcreateMessageContext()
     Create a MessageContext, and notify any registered ContextListener.
public  ServiceGroupContextcreateServiceGroupContext(AxisServiceGroup serviceGroup)
     Create a ServiceGroupContext for the specified service group, and notify any registered ContextListener.
public  voiddeployService(AxisService service)
     Deploy a service to the embedded AxisConfiguration, and initialize it.
public  voidfillServiceContextAndServiceGroupContext(MessageContext messageContext)
     Searches for a ServiceGroupContext in the map with given id as the key.
protected  voidfinalize()
    
public  OperationContextfindOperationContext(String operationName, String serviceName, String serviceGroupName)
    
public  AxisConfigurationgetAxisConfiguration()
    
public  StringgetContextRoot()
    
public  ListenerManagergetListenerManager()
    
public  OperationContextgetOperationContext(String id)
     Gets a OperationContext given a Message ID.
public  FilegetRealPath(String path)
     Allows users to resolve the path relative to the root diretory.
public  ConfigurationContextgetRootContext()
    
public  StringgetServiceContextPath()
    
public  ServiceGroupContextgetServiceGroupContext(String serviceGroupCtxId)
     Returns a ServiceGroupContext object associated with the specified ID from the internal table.
public  ServiceGroupContextgetServiceGroupContextFromSoapSessionTable(String serviceGroupContextId, MessageContext msgContext)
    
public  String[]getServiceGroupContextIDs()
     Gets all service groups in the system.
public  longgetServiceGroupContextTimoutInterval()
     This will be used to fetch the serviceGroupContextTimoutInterval from any place available.
public  HashtablegetServiceGroupContexts()
    
public  StringgetServicePath()
    
public  ThreadFactorygetThreadPool()
     Returns the thread factory.
public  voidinitCluster()
    
public  booleanregisterOperationContext(String messageID, OperationContext mepContext)
     Registers a OperationContext with a given message ID.
public  voidremoveContextListener(ContextListener contextListener)
    
public  voidremoveServiceGroupContext(String serviceGroupContextId)
    
public  voidremoveServiceGroupContext(AxisServiceGroup serviceGroup)
    
public  voidsetAxisConfiguration(AxisConfiguration configuration)
    
public  voidsetContextRoot(String contextRoot)
    
public  voidsetServicePath(String servicePath)
    
public  voidsetThreadPool(ThreadFactory pool)
     Sets the thread factory.
public  voidsetTransportManager(ListenerManager listenerManager)
    
public  voidterminate()
    
public  voidunregisterOperationContext(String key)
    

Field Detail
contextListeners
protected List contextListeners(Code)




Constructor Detail
ConfigurationContext
public ConfigurationContext(AxisConfiguration axisConfiguration)(Code)




Method Detail
addContextListener
public void addContextListener(ContextListener contextListener)(Code)
Register a ContextListener to be notified of all sub-context events.
Parameters:
  contextListener - A ContextListener
See Also:   ConfigurationContext.removeContextListener



addServiceGroupContextIntoApplicationScopeTable
public void addServiceGroupContextIntoApplicationScopeTable(ServiceGroupContext serviceGroupContext)(Code)



addServiceGroupContextIntoSoapSessionTable
public void addServiceGroupContextIntoSoapSessionTable(ServiceGroupContext serviceGroupContext)(Code)



cleanupContexts
public void cleanupContexts()(Code)



contextCreated
void contextCreated(AbstractContext context)(Code)
Inform any listeners of a new context being created
Parameters:
  context - the just-created subcontext



contextRemoved
void contextRemoved(AbstractContext context)(Code)
Inform any listeners of a context being removed
Parameters:
  context - the just-created subcontext



createMessageContext
public MessageContext createMessageContext()(Code)
Create a MessageContext, and notify any registered ContextListener. a new MessageContext



createServiceGroupContext
public ServiceGroupContext createServiceGroupContext(AxisServiceGroup serviceGroup)(Code)
Create a ServiceGroupContext for the specified service group, and notify any registered ContextListener.
Parameters:
  serviceGroup - an AxisServiceGroup a new ServiceGroupContext



deployService
public void deployService(AxisService service) throws AxisFault(Code)
Deploy a service to the embedded AxisConfiguration, and initialize it.
Parameters:
  service - service to deploy
throws:
  AxisFault - if there's a problem



fillServiceContextAndServiceGroupContext
public void fillServiceContextAndServiceGroupContext(MessageContext messageContext) throws AxisFault(Code)
Searches for a ServiceGroupContext in the map with given id as the key.
 If(key != null && found)
 check for a service context for the intended service.
 if (!found)
 create one and hook up to ServiceGroupContext
 else
 create new ServiceGroupContext with the given key or if key is null with a new key
 create a new service context for the service
 

Parameters:
  messageContext - : MessageContext
throws:
  AxisFault - : If something goes wrong



finalize
protected void finalize() throws Throwable(Code)



findOperationContext
public OperationContext findOperationContext(String operationName, String serviceName, String serviceGroupName)(Code)



getAxisConfiguration
public AxisConfiguration getAxisConfiguration()(Code)



getContextRoot
public String getContextRoot()(Code)



getListenerManager
public ListenerManager getListenerManager()(Code)



getOperationContext
public OperationContext getOperationContext(String id)(Code)
Gets a OperationContext given a Message ID. Returns OperationContext OperationContext
Parameters:
  id -



getRealPath
public File getRealPath(String path)(Code)
Allows users to resolve the path relative to the root diretory.
Parameters:
  path -



getRootContext
public ConfigurationContext getRootContext()(Code)



getServiceContextPath
public String getServiceContextPath()(Code)



getServiceGroupContext
public ServiceGroupContext getServiceGroupContext(String serviceGroupCtxId)(Code)
Returns a ServiceGroupContext object associated with the specified ID from the internal table.
Parameters:
  serviceGroupCtxId - The ID string associated with the ServiceGroupContext object The ServiceGroupContext object, or null if not found



getServiceGroupContextFromSoapSessionTable
public ServiceGroupContext getServiceGroupContextFromSoapSessionTable(String serviceGroupContextId, MessageContext msgContext) throws AxisFault(Code)



getServiceGroupContextIDs
public String[] getServiceGroupContextIDs()(Code)
Gets all service groups in the system. Returns hashmap of ServiceGroupContexts.



getServiceGroupContextTimoutInterval
public long getServiceGroupContextTimoutInterval()(Code)
This will be used to fetch the serviceGroupContextTimoutInterval from any place available. long



getServiceGroupContexts
public Hashtable getServiceGroupContexts()(Code)
The ServiceGroupContextsConfigurationContext.getServiceGroupContextIDsConfigurationContext.getServiceGroupContext(String)



getServicePath
public String getServicePath()(Code)



getThreadPool
public ThreadFactory getThreadPool()(Code)
Returns the thread factory. Returns configuration specific thread pool



initCluster
public void initCluster() throws AxisFault(Code)



registerOperationContext
public boolean registerOperationContext(String messageID, OperationContext mepContext)(Code)
Registers a OperationContext with a given message ID. If the given message id already has a registered operation context, no change is made and the methid resturns false.
Parameters:
  messageID - the message-id to register
Parameters:
  mepContext - the OperationContext for the specified message-id true if we added a new context, false if the messageID was already there and we didnothing



removeContextListener
public void removeContextListener(ContextListener contextListener)(Code)
Remove an already registered ContextListener
Parameters:
  contextListener - A ContextListener
See Also:   ConfigurationContext.addContextListener



removeServiceGroupContext
public void removeServiceGroupContext(String serviceGroupContextId)(Code)
Remove a ServiceGroupContext
Parameters:
  serviceGroupContextId - The ID of the ServiceGroupContext



removeServiceGroupContext
public void removeServiceGroupContext(AxisServiceGroup serviceGroup)(Code)



setAxisConfiguration
public void setAxisConfiguration(AxisConfiguration configuration)(Code)

Parameters:
  configuration -



setContextRoot
public void setContextRoot(String contextRoot)(Code)



setServicePath
public void setServicePath(String servicePath)(Code)



setThreadPool
public void setThreadPool(ThreadFactory pool) throws AxisFault(Code)
Sets the thread factory.
Parameters:
  pool - The thread pool
throws:
  AxisFault - If a thread pool has already been set



setTransportManager
public void setTransportManager(ListenerManager listenerManager)(Code)



terminate
public void terminate() throws AxisFault(Code)



unregisterOperationContext
public void unregisterOperationContext(String key)(Code)
Unregisters the operation context associated with the given messageID
Parameters:
  key -



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.