public class ReferenceComponent extends AbstractComponent
| Modifier and Type | Field and Description |
|---|---|
static ComponentType |
REFERENCE_COMPONENT_TYPE |
componentName, componentStatus, e, implementation, sofaRuntimeContext| Constructor and Description |
|---|
ReferenceComponent(Reference reference,
Implementation implementation,
BindingAdapterFactory bindingAdapterFactory,
SofaRuntimeContext sofaRuntimeContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
activate component
|
void |
exception(Exception e)
create an exception to describe error
|
Implementation |
getImplementation()
get component implementation
|
Map<String,Property> |
getProperties()
get all properties
|
Reference |
getReference() |
ComponentType |
getType()
get component type
|
HealthResult |
isHealthy()
check component is health or not
|
void |
unregister()
unregister component
|
aggregateBindingHealth, canBeDuplicate, deactivate, dump, getContext, getName, getState, isActivated, isResolved, register, resolve, unresolvepublic static final ComponentType REFERENCE_COMPONENT_TYPE
public ReferenceComponent(Reference reference, Implementation implementation, BindingAdapterFactory bindingAdapterFactory, SofaRuntimeContext sofaRuntimeContext)
public ComponentType getType()
ComponentInfopublic Map<String,Property> getProperties()
ComponentInfopublic HealthResult isHealthy()
ComponentInfoisHealthy in interface ComponentInfoisHealthy in class AbstractComponentpublic void activate()
throws ServiceRuntimeException
Componentactivate in interface Componentactivate in class AbstractComponentServiceRuntimeExceptionpublic void unregister()
throws ServiceRuntimeException
Componentunregister in interface Componentunregister in class AbstractComponentServiceRuntimeExceptionpublic void exception(Exception e) throws ServiceRuntimeException
Componentexception in interface Componentexception in class AbstractComponentServiceRuntimeExceptionpublic Implementation getImplementation()
ComponentInfogetImplementation in interface ComponentInfogetImplementation in class AbstractComponentpublic Reference getReference()
Copyright © 2021. All rights reserved.