1 package org.neo.swarm;
2
3 import java.util.Collection;
4
5 import org.neo.swarm.core.aop.Aspect;
6
7 /***
8 * @author navery
9 * @author damiang
10 */
11 public interface SwarmContainer {
12 public void registerAppContext(String name, ApplicationContext ac);
13 public ApplicationContext getAppContext(String name);
14 public Object getComponent(String componentClass) throws Exception;
15 public Collection getComponentsOfType(Class componentClass) throws Exception;
16 public void addServiceAspect(Aspect aspect);
17 public void addOrthogonalServiceAspect(Aspect aspect);
18 public void start();
19 public void stop();
20 public void registerServiceComponent(String name, Class service, Object[] args);
21
22 public void registerServiceInstance(String name, Object instance);
23 public Object lookupService(Object name);
24
25 void registerServiceComponent(Class service);
26 }