I Googled this and read the Java documentation, but I’m a bit confused. Can somebody please explain what a Context is in plain English?
I Googled this and read the Java documentation, but I’m a bit confused. Can
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In programming terms, it’s the larger surrounding part which can have any influence on the behaviour of the current unit of work. E.g. the running environment used, the environment variables, instance variables, local variables, state of other classes, state of the current environment, etcetera.
In some API’s you see this name back in an interface/class, e.g. Servlet’s
ServletContext, JSF’sFacesContext, Spring’sApplicationContext, Android’sContext, JNDI’sInitialContext, etc. They all often follow the Facade Pattern which abstracts the environmental details the enduser doesn’t need to know about away in a single interface/class.