org.ops4j.pax.coin.provider.scanner
Class ResourceGroupUtils

java.lang.Object
  extended by org.ops4j.pax.coin.provider.scanner.ResourceGroupUtils

public class ResourceGroupUtils
extends Object

Utilities related to resource groups.

Since:
0.3.0, March 09, 2008
Author:
Alin Dreghiciu

Nested Class Summary
static interface ResourceGroupUtils.FailureListener
          To be implemented by classes that whish to be notified of failures during processing.
 
Method Summary
static List<ResourceGroup> createGroups(Map<String,URL> urls, ResourceGroupUtils.FailureListener failureListener)
          Creates array of configuration groups out of a map if file names -> url.
The file name should be in format:
groupId[$configId].extension
where:
- config id is optional and should be present only for a msf configuration
- extension determines the type of properties adapter to be used
Assertions;
- there is only one $ in the file name
- there is always an extension
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createGroups

public static List<ResourceGroup> createGroups(Map<String,URL> urls,
                                               ResourceGroupUtils.FailureListener failureListener)
Creates array of configuration groups out of a map if file names -> url.
The file name should be in format:
groupId[$configId].extension
where:
- config id is optional and should be present only for a msf configuration
- extension determines the type of properties adapter to be used
Assertions;
- there is only one $ in the file name
- there is always an extension

Parameters:
urls - map between file name and url
failureListener - listener for failures during processing; can be null
Returns:
created groups


Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.