*/
public void init(PolicyFinder finder)
{
String clazzName = getClass().getName();
// Load the policies
PolicyReader reader = new PolicyReader(finder,
java.util.logging.Logger.getLogger(clazzName), schemaFile);
Iterator it = policyList.iterator();
while (it.hasNext())
{
String str = (String)(it.next());
AbstractPolicy policy = null;
try
{
try
{
// first try to load it as a URL
URL url = new URL(str);
policy = reader.readPolicy(url);
}
catch (MalformedURLException murle)
{
// assume that this is a filename, and try again
policy = reader.readPolicy(new File(str));
}
}
catch (ParsingException e)
{
this.encounteredParsingException = true;