Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what actually context is in Simpler terms?

 
Azrael Noor
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am finding various definitions of context
but what will i say it in simpler terms.

While programming
we say ""It is not getting context""
or ""how will it get context if we will follow this mechanism""

* is context, an object ? if yes then what type of object it is?
* context is name to object bindings? what is ""NAME""(variable name of object?)
* what actually context contains? as i have seen Path in context variable.

kindly clear me the concept, in simple terms, instead of redirecting me somewherfe

Thank You
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64973
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Context means the environment in which the code is operating. And yes, it can mean many things depending upon the context within which the word "context" is being used. (See what I did there?)

It could mean many things, including:
  • a web application
  • A construct passed to a method to establish its context, such as ServletContext
  • Implicit constructs in which context information can be stored, such as a JSP's page, request, session and applications contexts for scoped variables.
  • An so on and on and on ...


  • A dictionary definition for context that states this in a general way is:
    The circumstances that form the setting for an event, statement, or idea, and in terms of which it can be fully understood and assessed
     
    Azrael Noor
    Ranch Hand
    Posts: 385
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thank you

    but what does this means?

    A naming service associates names with objects. An association between a name and an object is called a binding, and a set of such bindings is called a context.

     
    Paul Clapham
    Sheriff
    Posts: 21137
    32
    Eclipse IDE Firefox Browser MySQL Database
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It's hard to explain what it means, beyond saying "It means exactly what it says". Is there something particular you don't understand about it? The only undefined terms in it are "name" and "object"... do you have a question about what they might mean? Beyond that, the sentence just goes on to define other things in terms of "name" and "object". It uses words like "association" and "set" to do that ... do you have a question about what they mean?
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Pie
    Posts: 64973
    86
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    It means that for that particular use case the context is a set of bindings.
     
    Azrael Noor
    Ranch Hand
    Posts: 385
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    @Paul :
    you made me cry
    why you are getting rude?

    @Bear:

    :: Set of Bindings :: Name and Object Binding <------ So name here is object name?

     
    Paul Clapham
    Sheriff
    Posts: 21137
    32
    Eclipse IDE Firefox Browser MySQL Database
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Azrael Noor wrote:@Paul :
    you made me cry
    why you are getting rude?


    That was the farthest thing from my mind. The way to read that statement (or any other definition) is to break it down into its component parts, rather than just saying "I don't understand". And that was what I tried to do for you.
     
    Azrael Noor
    Ranch Hand
    Posts: 385
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    OK Sir
    Thank You


    @Bear :

    :: Set of Bindings :: Name and Object Binding <------ So name here is object name?
     
    Bear Bibeault
    Author and ninkuma
    Marshal
    Pie
    Posts: 64973
    86
    IntelliJ IDE Java jQuery Mac Mac OS X
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I have no idea. I have no context for that question. (See, I used "context" in a sentence again.)
     
    Azrael Noor
    Ranch Hand
    Posts: 385
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator


    thank you for your replies

     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic