Thank you all Inshaf, Aruna and Chandana for the support. I could be able to resolve the matter by treating directory as a collection resource.
On Fri, Apr 17, 2015 at 11:05 AM, Chandana Napagoda <[email protected]> wrote: > Hi Tharik, > > You can get all the resource under a given collection as below. > > Resource resource = registry.get(path); > > if (resource instanceof Collection) { > Collection collection = (Collection) resource; > String[] resources = collection.getChildren(); > } > > Regards, > Chandana > > > > On Fri, Apr 17, 2015 at 10:37 AM, Tharik Kanaka <[email protected]> wrote: > >> Hi All, >> >> In WSO2 core Registry we can get any Resource by specifying file path of >> resource as following code line. >> >> Resource configFile = registry.get(path); >> >> Is there any method available in registry to get all the resources (into >> a Resource array or any collection) from a specified registry directory >> path? I could not find a method. >> >> Thanks, >> -- >> >> *Tharik Kanaka* | Associate Software Engineer >> >> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka >> >> Email: [email protected] | Web: www.wso2.com >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Chandana Napagoda* > Senior Software Engineer > WSO2 Inc. - http://wso2.org > > *Email : [email protected] <[email protected]>**Mobile : +94718169299 > <%2B94718169299>* > > *Blog : http://cnapagoda.blogspot.com <http://cnapagoda.blogspot.com>* > > -- *Tharik Kanaka* | Associate Software Engineer WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka Email: [email protected] | Web: www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
