|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContainerFactory
Factory held by an IFrameworkContext
to create IContainer
instances
Nested Class Summary | |
---|---|
static interface |
IContainerFactory.IContainerBuilder
A builder for an IContainer . |
Method Summary | ||
---|---|---|
boolean |
containsType(IType type)
Does the factory contain an IContainerFactory.IContainerBuilder
(and by association, an IContainerDefinitionField ) registered
against the IContainer type argument. |
|
|
createContainer(String nativeContextIdentity,
String identity,
IType type,
IDomain domain,
IFrameworkContext hostContext,
boolean local)
Create an IContainer implementation from the type argument. |
|
IContainerDefinitionField |
getDefinition(IType type)
Get the IContainerDefinitionField registered against the
IContainer type argument. |
|
void |
registerBuilder(IType type,
IContainerFactory.IContainerBuilder builder)
Register an IContainerFactory.IContainerBuilder against the
IContainer type. |
Methods inherited from interface fulmine.IDestroyable |
---|
destroy |
Method Detail |
---|
void registerBuilder(IType type, IContainerFactory.IContainerBuilder builder)
IContainerFactory.IContainerBuilder
against the
IContainer
type. This will overwrite any existing builder
registered against the type.
type
- the type of the IContainer
the builder createsbuilder
- the container builder to register
IllegalArgumentException
- if the type code ( IType.value()
) is less than
Type.BASE_USER_START
containsType(IType)
,
IContainer.getType()
boolean containsType(IType type)
IContainerFactory.IContainerBuilder
(and by association, an IContainerDefinitionField
) registered
against the IContainer
type argument.
type
- the type of the IContainer
the builder creates
true
if there is a
IContainerFactory.IContainerBuilder
registered against
the typeIContainer.getType()
IContainerDefinitionField getDefinition(IType type)
IContainerDefinitionField
registered against the
IContainer
type argument. This should not be called for dynamic
container types.
type
- the type of the IContainer
the definition applies to
IContainerDefinitionField
for the type of the
IContainer
IllegalArgumentException
- if the IContainer
is a dynamic type (there will be no
IContainerDefinitionField
found)containsType(IType)
,
IContainer.getType()
<T extends IContainer> T createContainer(String nativeContextIdentity, String identity, IType type, IDomain domain, IFrameworkContext hostContext, boolean local)
IContainer
implementation from the type argument. If
there is no application IContainerFactory.IContainerBuilder
registered for the type, a default builder is used that creates an
Record
.
nativeContextIdentity
- the name of the context this container is native to - the name
of its local contextidentity
- the identity for the container to createtype
- the type of the IContainer
implementation to createdomain
- the domain for the container implementationhostContext
- the context hosting this container instancelocal
- true
the container is local to this context
IContainer
implementationcontainsType(IType)
,
IContainer.getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |