Search in sources :

Example 11 with ComponentInfo

use of com.alipay.sofa.runtime.spi.component.ComponentInfo in project sofa-boot by alipay.

the class ComponentManagerImpl method unregister.

public void unregister(ComponentInfo componentInfo) throws ServiceRuntimeException {
    ComponentName componentName = componentInfo.getName();
    registry.remove(componentName);
    if (componentName != null) {
        ComponentType componentType = componentName.getType();
        Map<ComponentName, ComponentInfo> typesRi = resolvedRegistry.get(componentType);
        typesRi.remove(componentName);
    }
    componentInfo.unregister();
}
Also used : ComponentType(com.alipay.sofa.runtime.model.ComponentType) ComponentName(com.alipay.sofa.runtime.api.component.ComponentName) ComponentInfo(com.alipay.sofa.runtime.spi.component.ComponentInfo)

Aggregations

ComponentInfo (com.alipay.sofa.runtime.spi.component.ComponentInfo)11 ServiceRuntimeException (com.alipay.sofa.runtime.api.ServiceRuntimeException)6 ComponentName (com.alipay.sofa.runtime.api.component.ComponentName)4 JvmBinding (com.alipay.sofa.runtime.service.binding.JvmBinding)4 ServiceComponent (com.alipay.sofa.runtime.service.component.ServiceComponent)4 Binding (com.alipay.sofa.runtime.spi.binding.Binding)3 DefaultImplementation (com.alipay.sofa.runtime.spi.component.DefaultImplementation)3 Implementation (com.alipay.sofa.runtime.spi.component.Implementation)3 ComponentType (com.alipay.sofa.runtime.model.ComponentType)2 Service (com.alipay.sofa.runtime.service.component.Service)2 ServiceImpl (com.alipay.sofa.runtime.service.component.impl.ServiceImpl)2 SofaService (com.alipay.sofa.runtime.api.annotation.SofaService)1 BindingParam (com.alipay.sofa.runtime.api.client.param.BindingParam)1 Property (com.alipay.sofa.runtime.api.component.Property)1 Reference (com.alipay.sofa.runtime.service.component.Reference)1 ReferenceComponent (com.alipay.sofa.runtime.service.component.ReferenceComponent)1 ComponentManager (com.alipay.sofa.runtime.spi.component.ComponentManager)1 HealthResult (com.alipay.sofa.runtime.spi.health.HealthResult)1 BindingConverter (com.alipay.sofa.runtime.spi.service.BindingConverter)1 BindingConverterContext (com.alipay.sofa.runtime.spi.service.BindingConverterContext)1