Examples of newUrlResource()


Examples of org.drools.io.ResourceProvider.newUrlResource()

   protected Resource findResource(String name)
   {
      URL url = getResource(name);
      ResourceProvider provider = getResourceProvider();
      Resource root = provider.newUrlResource(url);
      assertNotNull(root);
      return root;
   }

   public void testEquals() throws Exception
View Full Code Here

Examples of org.kie.api.io.KieResources.newUrlResource()

            if (resourcesModel != null) {
                KieResources kieResources = KieServices.Factory.get().getResources();
                for (Resource syResource : resourcesModel.getResources()) {
                    URL locationURL = syResource.getLocationURL(loader);
                    if (locationURL != null) {
                        org.kie.api.io.Resource kieResource = kieResources.newUrlResource(locationURL);
                        if (kieResource != null) {
                            org.kie.api.io.ResourceType kieResourceType = convertResourceType(syResource.getType());
                            if (kieResourceType != null) {
                                kieResource.setResourceType(kieResourceType);
                                ResourceDetail syResourceDetail = syResource.getDetail();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.