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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationObject[]
getDependents(int tenantId, int type, String key)
Find all the configuration objects dependent on a specified configuration object.ConfigurationObject[]
getDependents(int type, String key)
Find all the configuration objects dependent on a specified configuration object in the super tenant super tenant SynapseConfiguration.boolean
hasActiveDependents(int tenantId, int type, String key)
Check whether the specified object has any dependent objects.boolean
hasActiveDependents(int type, String key)
Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.boolean
hasDependents(int tenantId, int type, String key)
Check whether the specified object has any dependent objects.boolean
hasDependents(int type, String key)
Check whether the specified object has any dependent objects in super tenant SynapseConfiguration.
-
-
-
Method Detail
-
hasDependents
boolean hasDependents(int tenantId, int type, String key)
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
boolean hasActiveDependents(int tenantId, int type, String key)
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
ConfigurationObject[] getDependents(int tenantId, int type, String key)
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
boolean hasDependents(int type, String key)
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
boolean hasActiveDependents(int type, String key)
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
ConfigurationObject[] getDependents(int type, String key)
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
-
-