I think of a more intuitive way: For a description of a package, you can be a concise summary, then, that is, functions or packages can be clear and concise introduction, which is a package designed to measure whether it is reasonable The most simple method. If so, obviously this package a very good cohesion, all the categories have serve a purpose, and thus brought about the possibility of reuse (reuse of fact I do not cold, in addition to tools outside the truly important things in less of and less cohesion is of concern); the other hand, the packet may be too much to bear, or to rely on too many responsibilities, careful reconstruction and separation is needed. Packet interface design to follow the same principle of separation, isolation and realization of the interface in different packages, the client will not know the realization of concrete, and also to ensure the realization of a one-way dependent on the interface. Of course, this would require the introduction of factory-type, plug-ins or the IOC container to instantiate implementation class is responsible for.
I think of a more intuitive way: For a description of a package, you can be a concise summary, then, that is, functions or packages can be clear and concise introduction, which is a package designed to measure whether it is reasonable The most simple method. If so, obviously this package a very good cohesion, all the categories have serve a purpose, and thus brought about the possibility of reuse (reuse of fact I do not cold, in addition to tools outside the truly important things in less of and less cohesion is of concern); the other hand, the packet may be too much to bear, or to rely on too many responsibilities, careful reconstruction and separation is needed. Packet interface design to follow the same principle of separation, isolation and realization of the interface in different packages, the client will not know the realization of concrete, and also to ensure the realization of a one-way dependent on the interface. Of course, this would require the introduction of factory-type, plug-ins or the IOC container to instantiate implementation class is responsible for.
Smilar Posts of java package design principles
-
Great Design
Understand the principle with the practice, details the relationship between thought, we'll go have selectively study the details, we must work on the details because the details are important to ...
-
ActiveMQ practice the road (four) ActiveMQ 4.x + JBoss 4.x MDP actual articles
Keyword: ActiveMQ ActiveMQ practice the road (four) ActiveMQ 4.x + JBoss 4.x MDP actual articles At <<ActiveMQ实践之路(三) ActiveMQ 4.x +JBoss 4.x整合篇>> which we compare in detail the ActiveMQ w ...
-
Object-oriented design principles 11
What is object-oriented design? Contains what? The benefits of it are what? Required to pay what you do? In today's age, ask these questions seem to be foolish, because this year almost every soft ...
-
java read file
java read documents in two ways: java.io and java.lang.ClassLoader When using the java.io, when java.lang.ClassLoader use it? (Note: If prior to read xml file java read file clearly aware of these two ...
-
JAVA interview questions
JAVA interview questions 1, object-oriented features of what has 1. Abstract 2. Inheritance 3. Packaging 4. Polymorphisms 2, String data types are the most basic right? Basic data types include byte, ...
-
[Reprint] Java professionals required books and list of sites
Concurrent Programming in Java: Design Principles and Patterns (Doug Lea) Concurrent Programming in Java: Design Principles and Patterns, 2nd edition (Doug Lea; Addison-Wesley, 1999 years) Java Concur ...
-
Process migration from tomcat to websphere changes
Process migration from tomcat to websphere changes Because customers use the web application server software used by different what tomcat5, tomcat6, websphere5.1, websphere6.1, weblogic8, and so on, ...
-
hibernate to use the principle of
The use of hibernate, implementation of data persistence. Has the following several processes. One configuration database connection information. Hibernate.config 2 configuration mapping. 3 use: the u ...
-
myeclipse plugin
myeclipse plugin







