-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a factory class to build objects of base class B.
The object (D) that uses this factory received a list of strings representing the actual types.
What is the correct implementation:
the factory receives an Enum (and uses switch inside the Create function) and D is responsible to convert the…
>>> More
-
as seen on Code Project
- Search for 'Code Project'
A Design Pattern that can make your application architecture more flexible and less fragile
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I understand the concept of factory pattern such that you give it something it spits out something of the same template back so if I gave a factory class apple, I expect to get many apples back with out having to instantiate a new apple ever time.
what if that apple has a required argument of seed…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm fairly new to EJBs and full blown application servers like JBoss, having written and worked with special purpose standalone Java applications for most of my career, with limited use of JEE. I'm wondering about the best way to adapt a commonly used design pattern to EJB3 and JBoss: the static factory…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Background, I am extending the ASP.NET Membership with custom classes and extra tables.
The ASP.NET MembershipUser has a protected constructor and a public method to read the data from the database. I have extended the database structure with custom tables and associated classes.
Instead of using…
>>> More