I heard that there are eight architectural design patterns are there.in that some of them areMVC,IOC,Front Controller.Can any body help me out giving the list of all architectural design patterns
I need help to find out the list of architectural design patterns.there are 8 architectural design patternssome of them are MVCIOCFront Controllerplease help me for others
Hi all,I wonder, Model 1, Model 2, MVC where does it come from, it comes from Java or C, C# ? :(help me!
582 byte By
Lisa_Ra at 2007-10-2 1:19:04
Hi,I have a problem with an application that are to slow. One of the problems is that the client calls the server alot of times. What I would like to do (what I should have done from the start) is minimize the calls to the server. But the calls are scattered around the client code so I can磘 see ...
I was wondering if anyone had any suggestions on ways of approaching the problem of building a tool to semi-automatically generate sequence diagrams from source code.Will it be a matter of starting at the main method in the code and building a list of all of the methods which may be invoked.As ...
While looking for some info on DSP effects, I came across this explaination of how to do audio equalization digitially.x(n) is the audio data, I assume it is a series of float samples [-1,0, 1.0]Qoute:"Real(F) = S(n=0,N-1)[x(n)cos(2pi*F*n)]Imag(F) = ...
Hican u please explain by some examples how prototype pattern are useful in reducing no of subclasses and how it is useful to avoid building a class hierarchy of factories that parallels the class hierarchy of products Please give some practical examples to explain protoype pattern.Thanks in ...
1510 byte By
tieTYTa at 2007-10-2 1:34:22
I just picked up "the pragmatic programmer". It's a pretty good book, i'd recommend it. Anyway, there's this page in the book (p115) that talks about "who is responsible for checking the precondition, the caller or the routine being called?" The authors say that it is the caller. For ...
Hi,how can I find URLs and E-Mail adresses in a Textbox?My idea: If found, make a link on it.I've tried with if (txt.matches("(w{3})\\.(.*)\\.com")) {// create a link}to search for an URL like "www.domain.com", but it doesn't work! Why?And how can I get the URL he finally found? So I can ...
Hi,Am developing a project using netbeans4.1 and tomcat 5.5.9. It is website with Oracle9i but i dont know from where to start about project. Some say abt SCM(Software configuration management) some say abt Factory Methods other say first make UML. Plz tell me what are the steps to develop a ...
Was wondering if any pattern guru's out there know how to implement a protected variation/ Open closed design pattern as I am having trouble trying to this this properly.Any assistance, ideas or guideance would be greatly appreciated.Cheers
221 byte By
cpallaba at 2007-10-2 1:54:21
I抦 trying to device an enterprise class scheduler based on rule engine. The primary interface may be exposed as webservice. Any idea for an early startup is highly appreciable.Thanks in advance,Pallab
I think about the right way of defining fast "algebras" ie. small objects with some operations between them. For example, take a class Vector:public class Vector {public float x,y;...}and now we want to add some of them.now there are several possibilitys:1. "operator like"Vector add(Vector ...
I am looking for some design recommendation. Our application has set of n (lets assume 2) processes. The definition of each process is in a XML file. The XML file looks like:<processes><process name ="a" action="b" /><process name ='x' action="y" /></processes>Now we ...
Hi,I'm currently designing a fairly standard document editing application. I have a number of seperate sets of classes representing different types of documents. Many of these different documents can be viewed in the same way - eg as a tree, and many can be viewed in more than one way - eg as ...
1110 byte By
rojeka at 2007-10-2 2:07:17
HeyI have (or will have) a web application based on Spring, Hibernate, Quartz, and other technologies, with backend as Postgres. There will be quite many concurrent users (approximately 10000). Each of such a user has relatively big amount of data stored in database. Now the design is based on ...
3464 byte By
srh99a at 2007-10-2 2:10:00
I have 3 classes: Location (refer to Location table), Department (refer to Department table) and Employee (refere to Employee table) with Employee having one way reference to Location and Department.public class Location implements java.io.Serializable { private int locationId; private String ...
Hello everyone, I am making a game and currently have 3 classes Game, Player, and Dice. The game creates the players and controls the dice. The player shakes the dice and chooses which ones to keep. My question is this: Right now I have the game creating the player and the dice but also ...
1430 byte By
jhhdka at 2007-10-2 2:19:58
Considder following example:B, C extends abstract class Aclass D { void f(List l){E e = new E();for(int i=0;i<l.length;i++){A a = l.get(i)if(a instanceof B){g(e,(B)a);} else {g(e,(C)a);}} } void g(E e, B b){// TODO implement } void g(E e, C c){// TODO implement }}Supposedly use of instanceof ...
377 byte By
Gona at 2007-10-2 2:20:23
I have to build a system that inputs use cases and outputs code. I am as yet unsure how to do this. I assume the easiest way would be to go via class diagrams because code generation seems not a huge leap from there, but how would you suggest I get from the text use cases to a class diagram?Any ...
169 byte By
shenia at 2007-10-2 2:21:59
Hi,I am starting to learn OOA/D. Some body please provide me link to good pdf (book) or online book. Preferably object oriented analysis and design in Java
351 byte By
shenia at 2007-10-2 2:26:15
Can some body explain me advantange of making a class single ton over making all attribute and Operation static? I know Single ton means user can create only instance of the object. Can't same functionality be achieved by making all attributes and operations in class static and making ...
I'm developing an application where a user can either act as an individual, or as a member of an organization, and I'm having some trouble modelling this so support the various systems.To explain the rules, users log in and peform actions, but these actions may be in their own name, or ...
1055 byte By
_dnoyeBa at 2007-10-2 2:34:04
Which technique do you prefer for clearing a property and why?public Object getXXX(){ return thing;}//technique A: call setXXX(null)public void setXXX(Object o){thing = o;}//technique B: call clearXXXpublic void clearXXX(){ thing = null;}I have preferred B. it helps to catch mistakes with ...
Hi, I'm making an Instant Messenger program and before I write out all the code I'd like some feedback on its design. My plan is to have one main object that does most of the talking. And it will be one-way talking to, this object will talk to other objects, and these other objects won't ...
I recently came across an API where I have to pass an InputStream as one of the parameters. Surprisingly, the InputStream was closed by the callee when EOF was reached. Since I passed an InputStream for a zip entry derived from a ZipInputStream the entire ZipInputStream was closed making it ...
Hi FormIn J2ee DAO PatternUsing the DataSource , Is it necessary to create Connection POOL or NOTfor faster Data access from EIs tire.with regardsKarthik
Hi All, I am beginner to OOAD. Please guide me by specifying any easy steps or procedure available to identify classes from requirements. Thanks in Advance.Also please suggest me good books and online materials/tutorials on ooad topic. Thanks & Regards, ...
Hi GurusI had no idea where to put this particular question but i fugured this should be the best place( moderators if this is not so please transfer this to the appropriate forum)My problem is that of writing an age old task of a schedualar and just can't seem to find the best way of doing ...
HiIn order to become more efficient at making an OOP design, I am starting off by thinking up simple ideas for programs and then trying my best to design them in an efficient, OOP fashion.So here's the scoop. I'm making a TicTacToe program, which allows someone to play a computer. It is not ...
If you really look for exciting things in design patterns then please remit me your details, so I can help you by forwarding added facts on this.Regards,Chandu
What is the distinction between activity and interaction diagrams. Both specifies design of processes.I am not sure if this is the right forum. If its not, please direct me to the right forum. Thanks!
Hi everyoneI am new to OOA and OOD and in UML.I must clarify these concepts in my mind.-Association-Composition-Aggregation-Dependancy-Is Association a superset of Aggregation and Composition?Can anybode give me any links or examples how these are implemented in ...
Hi there,If one has a private variable and a public "setter" method in a class how would one go about testing this "setter"? Like to test if a particular object was actually set it would require a public "getter" which is exposing implementation.Would it be best then to infer the validitity of ...
523 byte By
aterria at 2007-10-2 3:02:14
HiThank you for your time.I was wondering how can you determine if an object reference is used in association or composition?Also if possible please explain me the concepts:I know:Composition: When a class contains other instances of another classAggregation is the same as Composition but it ...
Hi Gurus,I have a problem developing my application. The main requirement is that I MUST use just 1 connnection for all users. So, my question is, what kind of patten should I use so as to control this issue.Thanks in advance
HiI'm looking for a good book on design patterns, and perhaps designing applications in general (not a review of Java, just design considerations). I am only slightly exposed to design patterns, so I would like a book that covers the "introductions" and such to basic design patterns, as well ...
I wonder how to do the setting in the hiernate.cfg.xml if I integrate proxool with hibernate in my projectIf you know it,pls paste your setting in hiernate.cfg.xml on the page, Thanks a lot.
337 byte By
Baigya at 2007-10-2 3:17:39
Hi I am a newbie. I have an entity ejb generating XML on the serverside.The flash client goes onto displaying the data through using a parser.Would a XML schema be adeqate on the server side to test if it is valid and well formed.My apologies if i am using the wrong forum.Many Thanks in ...
1165 byte By
mc3712a at 2007-10-2 3:21:14
Hi, I have classes like these:abstract class Entityabstract class SpaceShip extends Entity implements Thrustableclass Astronaut extends Entity implements ThrustableThrustable has:- thrust()- brake()- afterburner()What I want to do is share the same thrusting methods for both spaceships and ...
I have a couple questions about MVC's. First of all, if you have multiple controllers, should your model have static fields and methods? Or should you be more "OOP" and go through the tenuous work of passing a model object via constructors?Secondly, lets say I have a controller that acts based ...
3704 byte By
s_narraa at 2007-10-2 3:33:54
Hi,I've the following set of classes. I would like to know if there is a better way of handling this behavior:FYI:: This is not a complete programClass A {private int maxValue;// ConstructorA(int maxValue) {this.maxValue = maxValue}void doValidation (int value) {if (value < getMaxValue()) { ...
I am coding my first real java application and I am making fairly heavy use of inner classes. I am starting to wish that there were some way to keep them in separate .java files... like...Outter.javapublic class Outter {private class Inner;}Outter$Inner.javaclass Inner inside Outter {}From an ...
109 byte By
jimmy6a at 2007-10-2 3:46:06
What is delegation mean? Can any one let me see delegation in coding. Don't just explain in sentence.
Hello,My question is a bit complicated, so let's first explain the situation with a little pseudo code:class A {...}class B extends A{...}class C extends B {...}class D extends C {...}class E extends B {...}class F { ArrayList objects; // contains only objects of classes A to E void ...
I am having some difficulties of using final variables and still have the ability to check parameters in the constructor.For example take this class:class MyObject {final String id;final String value;public MyObject(String id, String value) { assert id != null : "error"; assert value != null : ...
1732 byte By
Enigmaa at 2007-10-2 3:46:57
We have an application which is built only using JSP's. There are no java classes in the application. All the business logic is there in JSP's no Java classes. Since iam new to this project iam trying to convince ppl to go for java classes for new changes so that we can reuse the code. They ...
All,I want to do the following if possible :I have a class that returns the status whether an action failed or not.Then I have another class that does the same thing.Now I want to have 1 class that gets all the status reports(which the classes return) and returns them to a class that calls ...
I抎 like to start some discussion about some bigger picture architectural concepts.I guess what I want to talk about stems into the approach of software development in general. I have a particular philosophy for design of systems: that most code can be simple, generic and reusable. It抯 the basic ...
Hi, I'm relatively new in OO programming so I hope this isn't a stupid question.Suppose we have the following interfaces,public interface Driveable {public void startDriving();public void stopDriving();public void turnLeft();public void turnRight();}public interface Flyable {public void ...