public interface ComponentManager
| Modifier and Type | Method and Description |
|---|---|
ComponentInfo |
getComponentInfo(ComponentName name)
get concrete component by component name
|
Collection<ComponentInfo> |
getComponentInfosByType(ComponentType type)
get components by component type
|
Collection<ComponentInfo> |
getComponents()
get all components in this manager
|
Collection<ComponentType> |
getComponentTypes()
get all component types in this manager
|
boolean |
isRegistered(ComponentName name)
whether the component is registered or not
|
void |
register(ComponentInfo componentInfo) |
ComponentInfo |
registerAndGet(ComponentInfo componentInfo)
register and get component in this manager
|
void |
registerComponentClient(Class<?> clientType,
Object client)
register component client in this manager
|
void |
resolvePendingResolveComponent(ComponentName componentName)
resolve pending component
|
void |
shutdown()
Shuts down the component registry.
|
int |
size()
Gets the number of registered objects in this registry.
|
void |
unregister(ComponentInfo componentInfo)
remove component in this manager
|
Collection<ComponentType> getComponentTypes()
void register(ComponentInfo componentInfo)
ComponentInfo registerAndGet(ComponentInfo componentInfo)
componentInfo - component that should be registeredvoid unregister(ComponentInfo componentInfo) throws ServiceRuntimeException
componentInfo - component that should unregisterServiceRuntimeException - throws when exception occurvoid registerComponentClient(Class<?> clientType, Object client)
clientType - client typeclient - client implementationComponentInfo getComponentInfo(ComponentName name)
name - component nameboolean isRegistered(ComponentName name)
name - nameCollection<ComponentInfo> getComponents()
int size()
void shutdown()
Shuts down the component registry. This unregisters all objects registered in this registry.
Collection<ComponentInfo> getComponentInfosByType(ComponentType type)
type - component typevoid resolvePendingResolveComponent(ComponentName componentName)
componentName - component nameCopyright © 2021. All rights reserved.