Packageorg.spicefactory.parsley.core.builder
Interfacepublic interface ObjectDefinitionBuilderFactory
Implementors DefaultObjectDefinitionBuilderFactory

A factory for builders that can be used to create ObjectDefinitions programmatically, using the franmework's configuration DSL.



Public Methods
 MethodDefined By
  
Returns a builder for the specified type.
ObjectDefinitionBuilderFactory
  
Returns a builder for the specified instance.
ObjectDefinitionBuilderFactory
Method Detail
forClass()method
public function forClass(type:Class):ObjectDefinitionBuilder

Returns a builder for the specified type.

Parameters

type:Class — the type to create a builder for

Returns
ObjectDefinitionBuilder — a new builder for the specified type
forInstance()method 
public function forInstance(instance:Object):ObjectDefinitionBuilder

Returns a builder for the specified instance. In this case the target instance will not be created by the container, it will simply configure and manage the existing instance.

Parameters

instance:Object — the type to create a definition for

Returns
ObjectDefinitionBuilder — a new builder for the specified instance