Package org.red5.server.api
Interface IContext
- All Superinterfaces:
ResourceLoader
,ResourcePatternResolver
- All Known Implementing Classes:
Context
The current context, this object basically wraps the Spring context or in the case of the .Net version, any similar system.
-
Field Summary
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver
CLASSPATH_ALL_URL_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptionGetter for application contextReturns bean by IDGet client registry.getCoreService
(String beanId) Returns core service by bean idReturns global scope referenceReturns IMappingStrategy objectReturns persistence store object, a storage for persistent objects like persistent SharedObjects.Returns service invoker object.boolean
Returns true if the context contains a certain bean, false otherwise.lookupScopeHandler
(String path) Returns scope handler (object that handle all actions related to the scope) by path.lookupService
(String serviceName) Returns service by name.resolveScope
(String path) Returns scope by path.resolveScope
(IScope root, String path) Returns scope by path from given root.Methods inherited from interface org.springframework.core.io.ResourceLoader
getClassLoader, getResource
Methods inherited from interface org.springframework.core.io.support.ResourcePatternResolver
getResources
-
Field Details
-
ID
- See Also:
-
-
Method Details
-
getApplicationContext
ApplicationContext getApplicationContext()Getter for application context- Returns:
- Application context
-
getClientRegistry
IClientRegistry getClientRegistry()Get client registry. Client registry is a place where all clients are registred.- Returns:
- Client registry object
-
getServiceInvoker
IServiceInvoker getServiceInvoker()Returns service invoker object. Service invokers are objects that make service calls to client side NetConnection objects.- Returns:
- Service invoker object
-
getPersistanceStore
IPersistenceStore getPersistanceStore()Returns persistence store object, a storage for persistent objects like persistent SharedObjects.- Returns:
- Persistence store object
-
lookupScopeHandler
Returns scope handler (object that handle all actions related to the scope) by path. SeeIScopeHandler
for details.- Parameters:
path
- Path of scope handler- Returns:
- Scope handler
-
resolveScope
Returns scope by path. You can think of IScope as of tree items, used to separate context and resources between users. SeeIScope
for more details.- Parameters:
path
- Path of scope- Returns:
- IScope object
-
resolveScope
Returns scope by path from given root. You can think of IScope as of tree items, used to separate context and resources between users. SeeIScope
for more details.- Parameters:
root
- Root to start frompath
- Path of scope- Returns:
- IScope object
-
getGlobalScope
IGlobalScope getGlobalScope()Returns global scope reference- Returns:
- global scope reference
-
lookupService
Returns service by name.- Parameters:
serviceName
- Name of service- Returns:
- Service object
-
getBean
Returns bean by ID- Parameters:
beanId
- Bean ID- Returns:
- Given bean instance
-
hasBean
Returns true if the context contains a certain bean, false otherwise.- Parameters:
beanId
- The name of the bean to find.- Returns:
- True if the bean exists, false otherwise.
-
getCoreService
Returns core service by bean id- Parameters:
beanId
- Bean ID- Returns:
- Core service
-
getMappingStrategy
IMappingStrategy getMappingStrategy()Returns IMappingStrategy object- Returns:
- IMappingStrategy object
-