org.neo.swarm
Class SwarmApplicationContext
java.lang.Object
org.neo.swarm.SwarmApplicationContext
- All Implemented Interfaces:
- ApplicationContext, java.io.Serializable
- public class SwarmApplicationContext
- extends java.lang.Object
- implements ApplicationContext
- Author:
- navery, damiang
- See Also:
- Serialized Form
|
Method Summary |
void |
addAspect(Aspect aspect)
|
void |
addCachedComponent(java.lang.Object key,
java.lang.Class implementation)
|
void |
addCachedComponent(java.lang.Object key,
java.lang.Class impl,
java.lang.Object[] args)
|
void |
addComponent(java.lang.Object key,
java.lang.Class implementation)
|
void |
addComponent(java.lang.Object key,
java.lang.Class impl,
java.lang.Object[] args)
|
void |
addOrthogonalAspect(Aspect aspect)
|
void |
addPreConstructedComponent(java.lang.String name,
java.lang.Object object)
|
java.lang.String |
getURI()
|
java.lang.Object |
inject(java.lang.Object key,
Invocation invocation)
Propogate Exception back to caller which should handle serialization response. |
void |
removeComponent(java.lang.Object key)
|
java.lang.Object |
retrieveComponent(java.lang.Object key)
|
java.lang.Object |
retrieveComponent(Perspective perspective,
java.lang.Object key)
|
java.util.Collection |
retrieveComponentsOfType(java.lang.Class type)
|
java.util.Collection |
retrieveComponentsOfType(Perspective perspective,
java.lang.Class type)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwarmApplicationContext
public SwarmApplicationContext(java.lang.String uri,
ComponentContainer componentContainer,
AspectContainer aspectContainer)
addAspect
public void addAspect(Aspect aspect)
- Specified by:
addAspect in interface ApplicationContext
addOrthogonalAspect
public void addOrthogonalAspect(Aspect aspect)
- Specified by:
addOrthogonalAspect in interface ApplicationContext
start
public void start()
- Specified by:
start in interface ApplicationContext
addCachedComponent
public void addCachedComponent(java.lang.Object key,
java.lang.Class implementation)
- Specified by:
addCachedComponent in interface ApplicationContext
addComponent
public void addComponent(java.lang.Object key,
java.lang.Class implementation)
- Specified by:
addComponent in interface ApplicationContext
addCachedComponent
public void addCachedComponent(java.lang.Object key,
java.lang.Class impl,
java.lang.Object[] args)
- Specified by:
addCachedComponent in interface ApplicationContext
addComponent
public void addComponent(java.lang.Object key,
java.lang.Class impl,
java.lang.Object[] args)
- Specified by:
addComponent in interface ApplicationContext
retrieveComponent
public java.lang.Object retrieveComponent(java.lang.Object key)
- Specified by:
retrieveComponent in interface ApplicationContext
retrieveComponent
public java.lang.Object retrieveComponent(Perspective perspective,
java.lang.Object key)
- Specified by:
retrieveComponent in interface ApplicationContext
retrieveComponentsOfType
public java.util.Collection retrieveComponentsOfType(java.lang.Class type)
- Specified by:
retrieveComponentsOfType in interface ApplicationContext
retrieveComponentsOfType
public java.util.Collection retrieveComponentsOfType(Perspective perspective,
java.lang.Class type)
- Specified by:
retrieveComponentsOfType in interface ApplicationContext
removeComponent
public void removeComponent(java.lang.Object key)
- Specified by:
removeComponent in interface ApplicationContext
inject
public java.lang.Object inject(java.lang.Object key,
Invocation invocation)
throws java.lang.Exception
- Propogate Exception back to caller which should handle serialization response.
- Specified by:
inject in interface ApplicationContext
- Throws:
java.lang.Exception
addPreConstructedComponent
public void addPreConstructedComponent(java.lang.String name,
java.lang.Object object)
- Specified by:
addPreConstructedComponent in interface ApplicationContext
stop
public void stop()
- Specified by:
stop in interface ApplicationContext
getURI
public java.lang.String getURI()
- Specified by:
getURI in interface ApplicationContext
Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.