design 1 « Development « Spring Q&A





1. What are the design patterns which used in Spring framework?    stackoverflow.com

What are the design patterns which used in Spring framework?

2. Spring IoC: What about serialization?    stackoverflow.com

I am just in the middle of the development of a new software component involving the Spring Framework. I like it but now i have a question regarding IoC and serialization. Given ...

3. How does Spring maintain singletons,prototypes... under the hood?    stackoverflow.com

I've been using Spring for a while now but I really don't know how when I ask Spring to inject a DAO in multiple different service class that it is always ...

4. Implementing repositories using NHibernate and Spring.Net    stackoverflow.com

I'm trying to get to grips with NHibernate, Fluent NHibernate and Spring. Following domain-driven design principals, I'm writing a standard tiered web application composed of:

  • a presentation tier (ASP.Net)
  • a business tier, comprising:
    • an application ...

5. Spring Design By Contract: where to start?    stackoverflow.com

I am trying to put a "Contract" on a method call. My web application is in Spring 3. Is writing customs Annotations the right way to go. If so, any pointers( ...

6. Good books on designing applications making use of the Spring Framework?    stackoverflow.com

Like the title suggests, I am looking for a good read on Java application design that leverages Spring. When I read different examples on the internet or the Spring official documentation, ...

7. a couple of questions regarding design    stackoverflow.com

I would like to hear what do you think about the design of this issue. I have to write webservice to allow user to modify dictionaries in database. I got xml ...

8. Design/Code Problem - From Apress's book on Spring    stackoverflow.com

I was reading Apress "Beginning Spring 2 From Novice to Professional", and I found this one section that discusses usage of DAOs. The example is pretty simple and I have pasted ...

9. Java Singleton Design Pattern : Interview Question    stackoverflow.com

I had an interview recently and he asked me about Singleton Design Patterns about how are they implemented and I told him that using static variables and static methods we can ...





10. What pattern can I use?    stackoverflow.com

I am implementing a project with Selenium 2, which currently doesn't support confirm dialog boxes very well. There is a workaround to this limitation, you just overwrite the window.confirm to ...

11. Dependency injection design pattern    stackoverflow.com

Possible Duplicate:
What is dependency injection?
Spring uses dependency injection pattern. Can someone show a simple example of this pattern? I heard there is another pattern called ...

12. How to switch between implementations of my SomethingManager class?    stackoverflow.com

I have an app which has OrgManager interface, which has a yet-to-be-built OrgManagerImpl The OrgManagerImpl has to go and talk to some REST API 3rd party stuff which we don't have access ...

13. Java design question    stackoverflow.com

I want users to go through objectmanager for all persistence operation, instead of using UserDao directly, how can I make UserDao not visible to users. I am using spring to inject ...

14. Domain Driven Programming Using Spring    stackoverflow.com

I have a question on DDD & Spring. I always design my application around anemic domain model and service taking care of business logic/persistence. Assume you have a spring managed persistence/respository service ...

15. Designing a Java library with Spring    stackoverflow.com

I am extracting some functionality from an existing program into a separate library. This program uses Spring for dependency injection and other tasks and I'd like to keep using it in the ...

16. java question on jar dependencies    stackoverflow.com

I have a project that its main part (e.g. main.jar) depends on libraries (e.g. u1.jar, u2.jar etc) that has been created as distinct separate projects.
So one could reuse the library elsewhere ...





17. How to Produce prototype objects from singleton? (Design help needed)    stackoverflow.com

I'm relatively new to Spring and I've got myself dug in a hole. I'm trying to model motor cars. Each model has it's own builder object, and I have a BuilderFactory ...

18. design pattern for validations    stackoverflow.com

I am developing my project on spring+hibernate+annotations. I need to apply some set of validations on the data. presently the code seems like this.

public class SomeClass{
   boolean error = false;
 ...

19. Will creating new instances in a Spring Singleton create memory leaks?    stackoverflow.com

I'm currently maintaining an application and noticed that many of the objects that have been defined as Singleton in the Spring wiring create new instances of other objects in their methods. For ...

20. Design a Plugin based java application    stackoverflow.com

I'm trying to make a plugin-based application which means, besides the basic framework, other functionalities should be added with a plugin style. The majar problem of such system, i think, is how ...

21. Design: Require suggestions to design a Relationship    stackoverflow.com

I need to design some relationship model, here is my use case

  1. I get an Object O
  2. O can have multiple relationships R1,R1,R3..Rn and each Relationship Ri has set of related Objects {01,O1,..ON}
  3. R1,R2,R3 ...

22. How Spring make my app less-coupled? Please give me some explanation?    stackoverflow.com

I've just begun to learn Spring Framework, and I'm totally a kid with something like design-pattern then I cant understand what Eswar try to say in this tutorial about ...

23. Factory class vs Spring DI    stackoverflow.com

As per my understanding both Factory class and Spring DI follows the Dependency injection. I mean in both the cases external entity is used to push the dependency. Right? My ...

24. Questioning Dependency Injection through name-lookup    stackoverflow.com

I find myself struggling with the fuzz around the concept of string-based 'Service Locators'. For starters, IoC is great, and programming to interfaces is the way to go. But I fail ...

25. Design: Stateless Prototypes in Spring    stackoverflow.com

I got used to create Spring beans for Service, DAO or Controller objects as Singletons. Well, it seems natural to me. Now a colleague of mine likes to make all such ...

26. Approach on how to know if components (spring/jetty) are fully initialized    stackoverflow.com

I have a backend server (Jetty) that processes HTTP requests and interacts with a MySQL database. It is all wired-up with Spring. I have also a UI ...

27. Possible flawed design of a Spring app due to a violation of the single-responsability principle (SRP)    stackoverflow.com

I am currently learning about the SOLID principles and especially the SRP. To put this principle into perspective, I recall having worked on a small application a while ago that had a ...

28. Spring-configured with load-time weaving fails    stackoverflow.com

So I was really keen on utilizing some DDD and yet I bumped into the wall at the very beginning...
I tried to configure my domain classes with EntityManager and the magic ...

29. Application design    forum.springsource.org

Application design I don't know which forum suits this question best so forgive me if this is not a suitable one. Basically I'm trying to design a web based application ( ...

30. Off Topic - Looking for online Design Patterns class    forum.springsource.org

Off Topic - Looking for online Design Patterns class Hello all! Sorry for the OT posting, but I couldn't think of a better group to ask. I am looking for an ...

31. Factory design pattern ?    forum.springsource.org

Factory design pattern ? I found an example in some blog and implemented the following. Code: public class WriterFactory implements FactoryBean { @Autowired private TextItemWriter textWriter; @Autowired private XMLItemWriter xmlWriter; @Override ...

32. Design question: moving files after processing    forum.springsource.org

Design question: moving files after processing Hi everybody, I am nearly finished with my first spring batch project and I really enjoyed it. Reviewing my code now, I wonder whether there ...

33. Diff between Spring singleton and Singleton design pattern    forum.springsource.org

Diff between Spring singleton and Singleton design pattern I read in the spring docs that spring implementation of singleton is per spring container and the singleton design pattern is per class ...

34. Web design milton keynes    forum.springsource.org

35. JSPs design-time v. runtime location and WYSIWYG editing    forum.springsource.org

JSPs design-time v. runtime location and WYSIWYG editing At runtime, URLs in a page reflect an address relative to the URL that was used to call the servlet, but at design ...

36. how to apply Factory design pattern into spring    forum.springsource.org

Code: public class Factory{ public static Sample creator(int which){ if (which==1) return new SampleA(); else if (which==2) return new SampleB(); } } in above example, SampleA and SampleB are bean defined ...

37. Proper binding design pattern for complex objects    forum.springsource.org

Proper binding design pattern for complex objects I'm new to the Spring MVC framework and have a question regarding the preferred way of binding complex objects and the use of PropertyEditor. ...

38. Two design issues    forum.springsource.org

Two design issues I'm developing a tiny application using struts+spring+hibernate. I want to enjoy the life of rich domain objects. There is a domain object "User" and a component "Address" in ...

39. Mindset, thought process of a Spring guru/expert in design?    forum.springsource.org

Mindset, thought process of a Spring guru/expert in design? I am still in the middle of struggling to developing a mindset of doing Spring consciously in both web and non-web applications. ...

40. Design Question    forum.springsource.org

Design Question Hi , I'm building a reporting application that creates html report output based on running stored procs or SQL queries or even a combination. Most of the results are ...

41. EventDispatch design pattern for ApplicationEvents    forum.springsource.org

Does anyone know if the EventDispatch/Executor design pattern (URL provided below) or the standard EventListener pattern is employed for ApplicationEvent occurences within Spring? We have an event system in our spring ...

42. Q: Design change history for relations and attributes of DO    forum.springsource.org

Q: Design change history for relations and attributes of DO During designing my domain layer I wonder, what would be the best design approach to express a change history for relations ...

43. Best design for reusing view logic?    forum.springsource.org

Best design for reusing view logic? I'm struggling with the best way to reuse my logic for creating view models, particularly when these models are non-trivial. For example, I have a ...

44. Generic Querying Design Questions    forum.springsource.org

Generic Querying Design Questions Hi , I'm building a reporting application that creates html report output based on running an SQL query or executing a stored proc. Most of the results ...

45. design strategy question    forum.springsource.org

design strategy question i use to develop my web-apps using struts, i created a singleton to hold all the logged user, so that i can check for double login and report ...

46. Strategy design pattern and Spring    forum.springsource.org

Hey, How would you implement the Strategy design pattern in a Spring "correct" way? Class X { public Strategy chooseStrategy(MyParameters y) { Strategy retVal = ; return retVal; } } Would ...

47. After advice design question    forum.springsource.org

After advice design question Hi, we have multiple clients (struts, soap, etc) that access a services tier whereby transaction demaraction is control via an around advice. We also have another cross ...

48. design question: passing context    forum.springsource.org

design question: passing context I have a question about passing context in message-oriented systems (isn`t related to JMS in particular). I have to following components: Fetcher (responsible for downloading pages) OutlinkExtractor ...

49. A design question    forum.springsource.org

A design question Guys, I have a design question I could use some inputs on. The basic flow of the web application is basically: 1) A view forwards to a controller. ...

50. A design question    forum.springsource.org

A design question Guys, I have a design question I could use some inputs on. The basic flow of the web application is basically: 1) A view forwards to a controller. ...

51. XSLT error and general design question    forum.springsource.org

XSLT error and general design question Hi, I have data stored in XML files that I want to display nicely formatted in the browser so XSLT seemed like the obvious choice ...

52. Layered design issue (+pojo intelligence): 1-to-1 layer mapping    forum.springsource.org

Layered design issue (+pojo intelligence): 1-to-1 layer mapping I have a question about good layered design, I know one size doesn't fit all but I'll explain the my problem: I have ...

53. design confusion    forum.springsource.org

design confusion Recently, i have been developing a web application using webwork/spring/hibernate. I know that there should be three layers in design Controller --> Servie --> DAO. And i know that ...

54. Book: "Domain driven design" implemented in Spring    forum.springsource.org

Nov 3rd, 2005, 05:01 AM #1 rebornspirit View Profile View Forum Posts Private Message Member Join Date Oct 2005 Location Belgium Posts 87 Book: "Domain driven design" implemented in Spring I ...

55. Design help plzzzz    forum.springsource.org

Design help plzzzz Friends, I have a design issue. Can you please help me in this regard. I have a request like this:

Text ...

56. ACL & Domain Objects design    forum.springsource.org

ACL & Domain Objects design Hello! Experimenting with Acegi inside an existing application and I'm impressed. But before I get too far, I'm hoping for feedback on if I'm using Acegi ...

57. Design suggest.....    forum.springsource.org

Design suggest..... In writing a jsp for visualize a list of "messages". When a user click on message, a detailed page (or other action) is show. What's the best choice for ...

58. Factory design pattern and Spring answer    forum.springsource.org

Factory design pattern and Spring answer Hi All I understood that using the Factory pattern is something I should avoid I could not understand how Spring IoC help with it. I ...

59. Tools for Rich App Design (Binding & others)    forum.springsource.org

Tools for Rich App Design (Binding & others) I have come across tool called "snpe dbtable framemwork" and I've seen posts talking about this product. We are considering designing a rich ...

60. Flexibility in Domain Driven Design    forum.springsource.org

Flexibility in Domain Driven Design All that I read about Domain driven design recommends placing business logic into domain objects and leaving services as a place to organise transactions, find top-level ...

61. Design help with form    forum.springsource.org

Design help with form I have a form that contains medical information for a user This will contain 2 different typres of forms. 1. will have just check boxes, but around ...

62. form binding design question    forum.springsource.org

form binding design question hi everyone I have a User object. I want to make a simple form with one JcomboBox that will contain a list of User object rendering their ...

63. Design: Best way to wire managers togehter?    forum.springsource.org

Say, I have a manager that uses other managers. What would be the Spring prefered way to connect them? The project is quite big and will likely involve upwards of a ...

64. how to design conditional flow    forum.springsource.org

Hi All In the scenario of flow where user has to upload a file from a seperate page as part of registration if he registers as a specifc user (e.g. CSR), ...

65. [OT - design] Communication between components    forum.springsource.org

[OT - design] Communication between components Hi, I know, this does not really fit here, but I am going to ask anywhere: my application currently consists of a core component, representing ...

66. Design pattern for writing applications in Spring    forum.springsource.org

Design pattern for writing applications in Spring Hello, I am looking for something like "Design pattern" for writing applications in Spring. I want to write more applications in Spring. Core will ...

67. Design question    forum.springsource.org

Design question Hi am looking at some hlep in regards to a architactual design of a web application. I am using , JSF, spiring and hibertnae. I am thinking of spleating ...

68. Web based data table (data grid) design pattern?    forum.springsource.org

Web based data table (data grid) design pattern? HI, I am looking for a complete sample of data grid. * User can select data from a table, and they can CRUD ...

69. design simple application question    forum.springsource.org

design simple application question Hello all I need to develop a simple application that allows users to login (from homepage page) into a page that allows him to add, delete and ...

70. design question    forum.springsource.org

hello all I have a table of items (with some details). each item have a link so that I can delete any of them. When I delete each one, there is ...

71. Application design using Spring    forum.springsource.org

Application design using Spring I am relatively new to designing soa apps, and am looking for some advice on design patterns and best practices. I am writing a service layer application ...

72. design question need a good advice    forum.springsource.org

design question need a good advice Hello all In my application, I design one-by-one relationship (one table-one object) between database and class object. That mean for each table, there is one ...

73. A reference discussing all the Design Patterns used inside Spring?    forum.springsource.org

A reference discussing all the Design Patterns used inside Spring? I hope this is not a silly question. I like Spring because it helps me to produce code that just "feels ...

74. IOC related design question    forum.springsource.org

IOC related design question I have a question about IOC related design. With IOC you inject the dependency into the concrete subclass. The interface the subclass implements is unaware of those ...

75. java design patterns    forum.springsource.org

Hi satishkrov The short answer to your question is 'you sure can'. The long answer is, well... your question is too vague. Mention specifics and you'll stand a chance of getting ...

76. Help me to design...    forum.springsource.org

Help me to design... I have legcy DAO (it is not spring's dao). For example: Code: public class LegacyDAO ... { public static Entity getEntity(int entityId) { ... final Connection conn ...

77. Best design for a servlet/portlet application    forum.springsource.org

78. spring web-app design    forum.springsource.org

I'm fairly new to sping but the best practice I've found is to delcare a member variable as a DAO interface in your controller. Then set a concrete object into your ...

79. Help! Best Practice/Design    forum.springsource.org

Help! Best Practice/Design I'm wading into some existing Spring code that consists of a form for submitting information, and a table beneath that displays the results of the entries. I've been ...

80. Design by Contract in Spring? Spring DBC?    forum.springsource.org

81. Design issue for a stand alone program    forum.springsource.org

Design issue for a stand alone program Hi My problem is that I want my stand alone application to expose a web service. Is this even possible ? I read all ...

82. Building GenericWebApplicationContext manually (design advice and/or how-to needed)    forum.springsource.org

Building GenericWebApplicationContext manually (design advice and/or how-to needed) Hello, Any help ior advice s greatly appreciated! I have two Web Apps in Tomcat. Both are clients to the same Service Layer. ...

83. Design Issue    forum.springsource.org

Design Issue Hi, I am using spring mvc with hibernate. Is it advisable to bind hibernate object to spring mvc ? Example. I have a hibernate object User wich has a ...

84. 2005 all over again - domain driven design, where are we?    forum.springsource.org

2005 all over again - domain driven design, where are we? With the coming of Erik Evans book 'Domain driven design' a lot of posts were made about how to do ...

85. Design question    forum.springsource.org

Design question Hi, In my database i have a unique constraint on a column of my table. This is necessary because i want to assure that a row with this field ...

86. components based design with Spring    forum.springsource.org

components based design with Spring I'm constructing a somewhat meaningless example here to make my point: Suppose we have a "base.jar" with a context descriptor in META-INF/context.xml, that defines the following ...

87. Design related... Pls suggest    forum.springsource.org

Design related... Pls suggest Hi we want to use Spring in non MVC context. I mean, it would be used as a container for the services(BOs),DAOs.These services have to be exposed ...

88. Best way to design Risk component for trading system    forum.springsource.org

89. design patterns and best practices    forum.springsource.org

Look out for the books by Rod Johnson on Spring and Pro Spring by Rob Harrop. Also keep an eye on this forum - it really is a wealth of information ...

90. Search page design options    forum.springsource.org

Search page design options hello everyone, I am designing a "search/edit" page, but I am not sure how I should go about setting it all up. This is what the functionality ...

91. Domain Driven Design with Spring    forum.springsource.org

Domain Driven Design with Spring Hello! Currently I think about applying Domain Driven Design for an application that I have to write for my thesis. But now I recognize that it ...

92. Design Question/Configuration Explosion!    forum.springsource.org

May 21st, 2007, 02:30 PM #1 MattMadhavan View Profile View Forum Posts Private Message Member Join Date Jun 2005 Posts 55 Design Question/Configuration Explosion! Hi, I have a design questions regarding ...

93. [newbie] please put me on the proper design track    forum.springsource.org

[newbie] please put me on the proper design track Hi, I'm pretty new to SPRING and - according to my boss - should be able to deploy this new web application ...

94. Request for design advice    forum.springsource.org

Jul 2nd, 2007, 09:49 AM #1 macar View Profile View Forum Posts Private Message Member Join Date May 2007 Posts 42 Request for design advice Hello everyone, I'd like ask you ...

95. Design issue with two connected HTML forms    forum.springsource.org

Design issue with two connected HTML forms Greetings to the great community of Spring developers! This is more of an MVC design issue: I have various use cases where I need ...

96. Design question    forum.springsource.org

Design question Hi. I want to know what is the best way for solving specific problem I have. I have a main service: Code: public class BlaBlaServiceImpl implements BlaBlaService { public ...

97. Design choises    forum.springsource.org

Design choises In some ways spring may provoke coupled objectoriented design. But in a way why would some "lazy" implementations actually be poor implementation. Naturally, detach the spring framework and I'll ...

98. Need advice for application design....    forum.springsource.org

Need advice for application design.... Hi, I need some advice.... Our legacy app was of below structure... request forwards to Actionclass A(single instance) method a creates a Class B instance and ...

99. XML/XSLT Design Question    forum.springsource.org

XML/XSLT Design Question Got a design/implementation question. I'm building a webapp that returns a list of transaction records as a result of a query form. The flow is like this: QueryForm ...

100. formBackingObject called after submit: design or flaw?    forum.springsource.org

formBackingObject called after submit: design or flaw? After submit the formBackingObject is called. Is this an intended design of Spring? First when the application starts the formBackingObject is called and then ...