Class BindableResourcesHelper


  • @Service
    public class BindableResourcesHelper
    extends Object
    Author:
    Jagadish Ramu
    • Constructor Detail

      • BindableResourcesHelper

        public BindableResourcesHelper()
    • Method Detail

      • resourceExists

        public boolean resourceExists​(String jndiName,
                                      String target)
      • validateBindableResourceForDuplicates

        public ResourceStatus validateBindableResourceForDuplicates​(Resources resources,
                                                                    String jndiName,
                                                                    boolean validateResourceRef,
                                                                    String target,
                                                                    Class<? extends BindableResource> resourceTypeToValidate)
        checks whether duplicate resource exists or resource is already created but not resource-ref or resource-ref already exists.
        Parameters:
        resources - resources
        jndiName - resource-name
        validateResourceRef - whether to validate resource-ref
        target - target instance/cluster/domain
        resourceTypeToValidate - type of resource
        Returns:
        ResourceStatus indicating Success or Failure
      • isBindableResourceEnabled

        public boolean isBindableResourceEnabled​(BindableResource br)