Top "Factory" questions

"Factory" is a general term for object-oriented programming patterns which create objects.

AngularJS: factory $http.get JSON file

I am looking to develop locally with just a hardcoded JSON file. My JSON file is as follows (valid when …

json http angularjs factory
Factory Pattern. When to use factory methods?

When is it a good idea to use factory methods within an object instead of a Factory class?

design-patterns factory factory-pattern factory-method
What does java:comp/env/ do?

I just spent too much time of my day trying to figure out some errors when hooking up some JNDI …

spring jdbc jndi factory
Pass arguments to Constructor in VBA

How can you construct objects passing arguments directly to your own classes? Something like this: Dim this_employee as Employee …

vba class oop constructor factory
Design Patterns: Factory vs Factory method vs Abstract Factory

I was reading design patterns from a website There I read about Factory, Factory method and Abstract factory but they …

java design-patterns language-agnostic factory factory-method
Is there a way to instantiate objects from a string holding their class name?

I have a file: Base.h class Base; class DerivedA : public Base; class DerivedB : public Base; /*etc...*/ and another file: …

c++ inheritance factory instantiation
java.lang.IllegalStateException:Could not find backup for factory javax.faces.application.ApplicationFactory

I'm using this : Tomcat 7.0 JSF 2.0 JRE 7 but when trying to run my application, I got the following exception: java.lang.…

jsf jsf-2 factory illegalstateexception
Class factory in Python

I'm new to Python and need some advice implementing the scenario below. I have two classes for managing domains at …

python factory
Non-Singleton Services in AngularJS

AngularJS clearly states in its documentation that Services are Singletons: AngularJS services are singletons Counterintuitively, module.factory also returns a …

service angularjs singleton instance factory