Interface DependencyManagementService
- All Known Implementing Classes:
DependencyManagementServiceImpl
public interface DependencyManagementService
This service interface enables access to the underlying configuration dependency
management model used by the mediation initializer thus allowing other components
to retrieve and resolve inter dependencies among different mediation configuration
elements (eg: sequences, endpoints).
-
Method Summary
Modifier and TypeMethodDescriptiongetDependents(int tenantId, int type, String key) Find all the configuration objects dependent on a specified configuration object.getDependents(int type, String key) Find all the configuration objects dependent on a specified configuration object in the super tenant super tenant SynapseConfiguration.booleanhasActiveDependents(int tenantId, int type, String key) Check whether the specified object has any dependent objects.booleanhasActiveDependents(int type, String key) Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.booleanhasDependents(int tenantId, int type, String key) Check whether the specified object has any dependent objects.booleanhasDependents(int type, String key) Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.
-
Method Details
-
hasDependents
Check whether the specified object has any dependent objects. This also includes non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Parameters:
tenantId- Tenant IDtype- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one dependent and false otherwise
-
hasActiveDependents
Check whether the specified object has any dependent objects. This does not include non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Parameters:
tenantId- Tenant IDtype- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one active dependent and false otherwise
-
getDependents
Find all the configuration objects dependent on a specified configuration object. This method also returns the non-active (type UNKNOWN) configuration objects which are dependent on the specified object.- Parameters:
tenantId- Tenant IDtype- integer value representing the type of the objectkey- name of the object- Returns:
- an array of dependent objects or null if there are no dependents
-
hasDependents
Check whether the specified object has any dependent objects in super tenant SynapseConfiguration. This also includes non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Parameters:
type- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one dependent and false otherwise
-
hasActiveDependents
Check whether the specified object has any dependent objects in super tenant SynapseConfiguration. This does not include non-active (type UNKNOWN) objects which may still have a dependency on the given object.- Parameters:
type- Type of the objectkey- Name (ID) of the object- Returns:
- true if the object has at least one active dependent and false otherwise
-
getDependents
Find all the configuration objects dependent on a specified configuration object in the super tenant super tenant SynapseConfiguration. This method also returns the non-active (type UNKNOWN) configuration objects which are dependent on the specified object.- Parameters:
type- integer value representing the type of the objectkey- name of the object- Returns:
- an array of dependent objects or null if there are no dependents
-