Top "Factory" questions

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

Factory Design Pattern - Why Interface necessary?

I started looking at different design patterns, and now I am focussing on the Factory Design Pattern. I looked at …

c# design-patterns factory factory-pattern
C# task factory timeout

I have to execute a long process operation in a thread and continue by returning the result to a function. …

c# timeout task factory
Factory methods in Ruby

What is the slickest, most Ruby-like way to have a single constructor return an object of the appropriate type? To …

ruby factory
Laravel - Seeding Many-to-Many Relationship

I have a users table and a roles table that has a many-to-many relationship. These two tables are connected to …

laravel laravel-5 factory faker laravel-seeding
In simplest terms, what is a factory?

What is a factory and why would I want to use one?

java design-patterns factory
Spring dynamic injection, factory-like pattern

A continuation from Dependency injection, delayed injection praxis. I have the Main class: package test; import org.springframework.beans.factory.…

java spring dependency-injection factory factory-pattern
Abstract factory pattern on top of IoC?

I have decided to use IoC principles on a bigger project. However, i would like to get something straight that's …

inversion-of-control factory containers
Adding Relations to Laravel Factory Model

I'm trying to add a relation to a factory model to do some database seeding as follows - note I'm …

relationship factory laravel-5.1
Populating an association with children in factory_girl

I have a model Foo that has_many 'Bar'. I have a factory_girl factory for each of these objects. …

ruby-on-rails ruby unit-testing factory factory-bot
AngularJS : From a factory, how can I call another function

Do I have to move my getTemplates function out of the return or what ? Example : I dont know what to …

function angularjs factory