Package org.openiaml.model.drools

Examples of org.openiaml.model.drools.ICreateElementsFactory


      }
     
      // select the actual target
      final EObject target = selectRootElement(obj);
     
      ICreateElementsFactory factory = new ICreateElementsFactory() {

        @Override
        public ICreateElements createHandler(EObject model) {
          return new EmfInferenceHandler(
            part.getEditingDomain(),
View Full Code Here


      IModelReloader reloader = new IModelReloader() {
        @Override
        public EObject reload() throws InferenceException {
          try {
            InternetApplication root = (InternetApplication) DroolsPerformanceTest.this.reload();
            ICreateElementsFactory factory = CachedModelInferer.getInstance().createCreateElementsFactory();
            EcoreCreateElementsHelper handler = (EcoreCreateElementsHelper) factory.createHandler(root);
           
            // add the pages etc
            for (int j = 0; j < i_copy; j++) {
              Frame page = handler.createFrame(root);
              page.setName("test page " + j);
View Full Code Here

    Resource resource = root.eResource();
    if (resource == null) {
      throw new IllegalArgumentException("EObject '" + root + "' has a null resource.");
    }
   
    ICreateElementsFactory handler = createCreateElementsFactory();
    CreateMissingElementsWithDrools ce = provider.getInferenceEngine(handler, false, reloader);
    ce.create(root, logRuleSource, createMonitor());

    // write out this inferred model for reference
    inferredModel = provider.saveInferredModel(resource);
View Full Code Here

      Resource resource = root.eResource();
      if (resource == null) {
        throw new IllegalArgumentException("EObject '" + root + "' has a null resource.");
      }
     
      ICreateElementsFactory handler = createCreateElementsFactory();
      CreateMissingElementsWithDrools ce = provider.getInferenceEngine(handler, false, new IModelReloader() {

        @Override
        public EObject reload() throws InferenceException {
          try {
View Full Code Here

TOP

Related Classes of org.openiaml.model.drools.ICreateElementsFactory

Copyright © 2018 www.massapicom. 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.