- All Known Subinterfaces:
KernelBinding,KernelContext
- All Known Implementing Classes:
ActorKernel,AuthenticatorKernel,BootKernel,DbStoreKernel,JavaKernel,JsKernel,KernelProxy,MemStoreKernel,MetaKernel,RemoteKernel,ServiceKernel,UiRouter,WebServiceKernel
public interface Kernel
-
Method Summary
Modifier and TypeMethodDescription<A extends Agent>
AgentFactory<A>createAgentFactory(Class<? extends A> agentClass) AgentFactory<?>createAgentFactory(AgentDef agentDef, ClassLoader classLoader) <P extends Plane>
PlaneFactory<P>createPlaneFactory(Class<? extends P> planeClass) PlaneFactory<?>createPlaneFactory(PlaneDef planeDef, ClassLoader classLoader) createServiceFactory(ServiceDef serviceDef, ClassLoader classLoader) defineAgent(Item agentConfig) definePlane(Item planeConfig) defineService(Item serviceConfig) defineSpace(Item spaceConfig) getService(String serviceName) injectKernel(Kernel kernel) Returns aKernelimplementation with the combined capabilities of thisKernelimplementation and the givenkernelimplementation.booleandoubleReturns the relative priority of thisKernelimplementation.<S extends Service>
SopenService(String serviceName, ServiceFactory<S> serviceFactory) default ServiceopenService(ServiceDef serviceDef) default ServiceopenService(ServiceDef serviceDef, ClassLoader classLoader) voidrun()voidstart()voidstop()<T> TunwrapKernel(Class<T> kernelClass)
-
Method Details
-
kernelPriority
double kernelPriority()Returns the relative priority of thisKernelimplementation. Kernel implementations with greater priority inject into kernel stacks before implementations with lower priority. -
injectKernel
Returns aKernelimplementation with the combined capabilities of thisKernelimplementation and the givenkernelimplementation. -
unwrapKernel
-
defineService
-
createServiceFactory
-
openService
-
openService
-
openService
-
getService
-
defineSpace
-
openSpace
-
getSpace
-
definePlane
-
createPlaneFactory
-
createPlaneFactory
-
defineAgent
-
createAgentFactory
-
createAgentFactory
-
isStarted
boolean isStarted() -
start
void start() -
stop
void stop() -
run
void run()
-