GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Java Patterns
Go To First  |  Previous Question  |  Next Question 
 Java Patterns  |  Question 9 of 20    Print  
what is Context Object Design Pattern when it will be used in Real time ?

  
Total Answers and Comments: 1 Last Update: October 02, 2007     Asked by: enjoy 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
October 02, 2007 16:01:30   #1  
padmasri_p Member Since: October 2007   Contribution: 2    

RE: what is Context Object Design Pattern when it wil...

A context object encapsulates web server specific HTTP information in more general and portable form.

It is used when

* you have components and services that need access to the system information.

* You want to decouple application components and services from the protocol specifics of system information.

* you want to expose only relevant APIs within a context.


Use a context object to encapsulate state in a protocol-independent way to be shared throughout your application.


 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : when you want to restrict the object creation of a particular call is more tahn one then use singiltion class ...
Read Answers (5) | Asked by : manepalli

Latest Answer : Yep we can make the Singleton class synchronized and non clonebale... ...
Read Answers (6) | Asked by : sunils

Latest Answer : DAO is implemented for Seperation of Business Logic and Database Logic in the project.Whatever the changes made to Database logic that will not affect to business logic. ...
Read Answers (1) | Asked by : satyanarayana

Latest Answer : Many interactive Web applications are composed of brittle collections of interdependent Web pages. Such applications can be hard to maintain and extend. The Front Controller pattern defines a single component that is responsible for processing application ...
Read Answers (4) | Asked by : satyanarayana

Latest Answer : Just as design patterns provide a way to communicte  concisely with desired software practices, these antipatterns provide the equivalent advantages of communicating with undesirable practices.An antipattern is a classified bad design , it is just ...
Read Answers (2) | Asked by : Kiran

Latest Answer : Creative Design Pattern is one J2EE patterns. This pattern is used for project design and building. Best ever patterns are J2EE patterns. ...
Read Answers (3) | Asked by : javajet

Latest Answer : A context object encapsulates web server specific HTTP information in more general and portable form.It is used when  * you have components and services that need access to the system information. * You want to decouple application components ...
Read Answers (1) | Asked by : enjoy

Latest Answer : It is a bridge between Objects of different classes..so that they can talk to each other ...

Latest Answer : There is three category in the design pattern realm 1- Creation2- Structure3- Behavioraleach category has its pattern this page may help you:http://en.wikipedia.org/wiki/Category:Software_design_patternsActually the most suitable pattern for web application ...
Read Answers (1) | Asked by : surendra babu

One set of Design Patterns is known as "Antipatterns." Referring to the statement above, how does an Antipattern help in designing a code solution? Choice 1 It allows code to be optimized by demonstrating ways to use bit-wise complements of integers. Choice 2 To enable an implementation of a problem to be developed as quickly as possible when a deadline is approaching Choice 3 To document and explain a code design technique that experience shows does not work well in practice
Read Answers (2) | Asked by : Teena


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

Linux Thin Client Networks Design and Deployment Review

Linux Thin Client Networks Design and Deployment Review Introduction This book is written by David Richards a veteran Linux thin client network designer Designed for System Administrators Linux Thin Client Networks Design and Deployment goes over the concepts which are related to thin client network
 

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

jQuery Three-color Alternating Pattern

Learning jQuery Three color Alternating Pattern There may be times when we want to apply more complex striping For example we can apply a pattern of three alternating row colors rather than just two To do so we first need to define another CSS rule for the third row We ll also reuse the odd and even
 

Microsoft AJAX Library - JavaScript Execution Context

JavaScript Execution Context In this section we ll take a peek under the hood of the JavaScript closures and the mechanisms that allow us to create classes objects and object members in JavaScript For most cases understanding these mechanisms isn t absolutely necessary for writing JavaScript code&am
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Service Oriented Design and Development

Service Oriented Design and Development SOAD Service Oriented Analysis and Design The term Service Oriented Analysis and Design  was first used in the publication Elements of Service Oriented Analysis and Design Service Oriented Analysis and Design is also covered in the publication Service
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape