|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModelManager
Manages the data model structures in a context. The data structures are held
in IContainer
instances. These may be either local or remote
instances.
IFrameworkContext
Method Summary | |
---|---|
void |
addContainer(IContainer container)
Add a container to this context. |
boolean |
containsLocalContainer(String identityRegularExpression,
IType type,
IDomain domain)
Identify if the local container exists in this context |
boolean |
containsRemoteContainer(String remoteContextIdentity,
String containerIdentity,
IType type,
IDomain domain)
Identify if the remote container exists in this context |
IContainerFactory |
getContainerFactory()
Get the container factory for the context. |
IContainer |
getLocalContainer(String identity,
IType type,
IDomain domain)
Get the identified local container. |
Collection<IContainer> |
getLocalContainers()
Get a copy of the collection of local containers in this context. |
IContainer |
getRemoteContainer(String remoteContextIdentity,
String containerIdentity,
IType type,
IDomain domain)
Get the identified remote container. |
Collection<IContainer> |
getRemoteContainers(String remoteContextIdentity)
Get a copy of the collection of remote containers in this context. |
boolean |
removeContainer(IContainer container)
Remove a container from the context. |
Methods inherited from interface fulmine.ILifeCycle |
---|
isActive, start |
Methods inherited from interface fulmine.IDestroyable |
---|
destroy |
Method Detail |
---|
IContainerFactory getContainerFactory()
Collection<IContainer> getLocalContainers()
IContainer getLocalContainer(String identity, IType type, IDomain domain)
ContainerFactory
.
If the ContainerFactory
does not have a
IContainerFactory.IContainerBuilder
registered for the type
argument, a standard container is created.
This operation does not support any wildcards for the attributes (it
does not have the same contract for the identity, type and domain as
IDistributionManager.subscribe(String, String, IType, IDomain, IEventListener)
.
identity
- the identity of the local containertype
- the type of the local containerdomain
- the domain of the local container
IContainer
native to this context and hosted in this
contextboolean containsLocalContainer(String identityRegularExpression, IType type, IDomain domain)
type
- the type of the container to finddomain
- the domain of the containeridentity
- the identity of the local container to find
true
if the local container existsIContainer getRemoteContainer(String remoteContextIdentity, String containerIdentity, IType type, IDomain domain)
ContainerFactory
and its state is set to be
IContainer#STALE
until it receives an update.
This method just creates the 'proxy shell' for the remote events to be
applied to. Use the
IDistributionManager.subscribe(String, String, IType, IDomain, IEventListener)
method to start receiving events for the container.
This operation does not support any wildcards for the attributes (it
does not have the same contract for the identity, type and domain as
IDistributionManager.subscribe(String, String, IType, IDomain, IEventListener)
.
remoteContextIdentity
- the identity of the remote context where the remote container
originates from - this is only required if the remote
container will be created. Use
containsRemoteContainer(String, String, IType, IDomain)
to determine if the remote container exists.identity
- the identity of the remote containertype
- the type of the remote containerdomain
- the domain of the remote container
IContainer
native to the specified remote context and
hosted in this contextboolean containsRemoteContainer(String remoteContextIdentity, String containerIdentity, IType type, IDomain domain)
remoteContextIdentity
- the identity of the remote context where the remote container
originated fromtype
- the type of the container to finddomain
- the domain of the containeridentity
- the identity of the remote container to find
true
if the remote container existsCollection<IContainer> getRemoteContainers(String remoteContextIdentity)
remoteContextIdentity
- the remote context identity that the remote containers
originated from
void addContainer(IContainer container)
container
- the container to add to this contextboolean removeContainer(IContainer container)
container
- the container to remove
true
if the container was removed,
false
if the container was not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |