Patent ID: 8117053

Claim:
A method for providing a claims-based factory pattern for creating objects in an application server, said method comprising: maintaining an application server, executing on a computer including a non-transitory computer readable storage medium and processor, having a plurality of factories deployed thereon, each of said plurality of factories capable of creating objects, wherein the objects are stored in the non-transitory computer readable storage medium; receiving a request to create an object; determining which of the plurality of factories stake claims to creating the requested object; and evaluating the claims and selecting at least one factory staking the highest claim to creating said requested object, wherein if two or more of the plurality of factories are staking the highest claim, requesting the two or more of the plurality of factories to re-evaluate the claim by providing information to each of the two or more of the plurality of factories regarding all other factories staking the same claim to creating said object; reducing the two or more of the plurality of factories to a single factory as a result of re-evaluating the claim; and creating said requested object by using the single factory.