* @throws ConfigException
**/
static public boolean checkIfAttributesAndPropertiesAreResolvable(ConfigBean element, String instanceName)
throws ConfigException
{
final PropertyResolver resolver = new PropertyResolver(element.getConfigContext(), instanceName);
final String[] attrNames = element.getAttributeNames();
//first - check attributes;
if(attrNames!=null)
{
for(int i=0; i<attrNames.length; i++)
{
String value = element.getAttributeValue(attrNames[i]);
if(value!=null && !resolver.isResolvable(value, true))
{
return false;
}
}
}
//then - properties;
ElementProperty[] props = getElementProperties(element);
if(props!=null)
{
for(int i=0; i<props.length; i++)
{
String value = props[i].getValue();
if(value!=null && !resolver.isResolvable(value, true))
{
return false;
}
}
}