fulmine.model.container
Interface IContainerFactory.IContainerBuilder

Enclosing interface:
IContainerFactory

public static interface IContainerFactory.IContainerBuilder

A builder for an IContainer. Implementations are automatically thread safe if they are invoked from the ContainerFactory implementation, which is thread safe.

Author:
Ramon Servadei

Method Summary
 IContainer createContainer(String nativeContextIdentity, String identity, IType type, IDomain domain, IFrameworkContext hostContext, boolean local)
          Build an instance of an IContainer
 IContainerDefinitionField createContainerDefinition()
          Get the IContainerDefinitionField to use for instances of the container this builder creates.
 

Method Detail

createContainer

IContainer createContainer(String nativeContextIdentity,
                           String identity,
                           IType type,
                           IDomain domain,
                           IFrameworkContext hostContext,
                           boolean local)
Build an instance of an IContainer

Parameters:
nativeContextIdentity - whether the container is local
identity - the identity of the instance
type - the type for the instance
domain - the domain for the instance
hostContext - the context the instance will be associated with
local - true the container is local to this context
Returns:
the created instance

createContainerDefinition

IContainerDefinitionField createContainerDefinition()
Get the IContainerDefinitionField to use for instances of the container this builder creates. A null definition should be used for containers that are dynamic.

Returns:
the IContainerDefinitionField for instances this builder creates, null if the container is a dynamic type.


Copyright © 2007-2009. All Rights Reserved.