|
INTERVIEW QUESTIONS
J2EE
SPRINGS
DETAILS
Question: What is Java Server Faces (JSF) - Spring integration mechanism?
Answer: Spring provides a custom JavaServer Faces VariableResolver implementation that extends the standard JavaServer Faces managed beans mechanism. When asked to resolve a variable name, the following algorithm is performed:
* Does a bean with the specified name already exist in some scope (request, session, application)? If so, return it
* Is there a standard JavaServer Faces managed bean definition for this variable name? If so, invoke it in the usual way, and return the bean that was created.
* Is there configuration information for this variable name in the Spring WebApplicationContext for this application? If so, use it to create and configure an instance, and return that instance to the caller.
* If there is no managed bean or Spring definition for this variable name, return null instead.
* BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.
As a result of this algorithm, you can transparently use either JavaServer Faces or Spring facilities to create beans on demand.
|
|
|
Category |
Springs Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7032 users |
Added on |
9/23/2014 |
Views |
69710 |
Rate it! |
|
|
Question:
What is Java Server Faces (JSF) - Spring integration mechanism?
Answer:
Spring provides a custom JavaServer Faces VariableResolver implementation that extends the standard JavaServer Faces managed beans mechanism. When asked to resolve a variable name, the following algorithm is performed:
* Does a bean with the specified name already exist in some scope (request, session, application)? If so, return it
* Is there a standard JavaServer Faces managed bean definition for this variable name? If so, invoke it in the usual way, and return the bean that was created.
* Is there configuration information for this variable name in the Spring WebApplicationContext for this application? If so, use it to create and configure an instance, and return that instance to the caller.
* If there is no managed bean or Spring definition for this variable name, return null instead.
* BeanFactory also takes part in the life cycle of a bean, making calls to custom initialization and destruction methods.
As a result of this algorithm, you can transparently use either JavaServer Faces or Spring facilities to create beans on demand. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How to integrate Java Server Faces (JSF) with Spring?
|
View Answer
|
|
What is DelegatingVariableResolver?
|
View Answer
|
|
What do you mean by Auto Wiring?
|
View Answer
|
|
What do you mean by Bean wiring ?
|
View Answer
|
|
What is the typical Bean life cycle in Spring Bean Factory Container ?
|
View Answer
|
|
How is a typical spring implementation look like ?
|
View Answer
|
|
What are the common implementations of the Application Context ?
|
View Answer
|
|
What is the difference between Bean Factory and Application Context ?
|
View Answer
|
|
What is Application Context?
|
View Answer
|
|
What is Bean Factory ?
|
View Answer
|
|
What are the types of Dependency Injection Spring supports?
|
View Answer
|
|
How many modules are there in Spring? What are they?
|
View Answer
|
|
What are features of Spring ?
|
View Answer
|
|
What are the advantages of Spring framework?
|
View Answer
|
|
What is Spring ?
|
View Answer
|
|
What are the benefits of IOC (Dependency Injection)?
|
View Answer
|
|
What are the different types of IOC (dependency injection) ?
|
View Answer
|
|
What is IOC (or Dependency Injection)?
|
View Answer
|
|
Explain about integration of spring with AspectJ?
|
View Answer
|
|
Explain about transaction management in spring?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Springs Interview Questions & Answers - Exam Mode /
Learning Mode
|