Examples of Module


Examples of net.paoding.rose.web.impl.module.Module

            // 因为使用的是类反射技术,所以需要先把实际异常从InvocationTargetException取出来
            while (cause instanceof InvocationTargetException) {
                cause = ((InvocationTargetException) cause).getTargetException();
            }
            //
            Module errorHandlerModule = module;
            ControllerErrorHandler errorHandler = errorHandlerModule.getErrorHandler();
            while (errorHandler == null && errorHandlerModule != null) {
                errorHandlerModule = errorHandlerModule.getParent();
                if (errorHandlerModule != null) {
                    errorHandler = errorHandlerModule.getErrorHandler();
                    if (errorHandler != null) {
                        if (errorHandler.getClass().isAnnotationPresent(NotForSubModules.class)) {
                            errorHandler = null;
                            continue;
                        }
View Full Code Here

Examples of net.sourceforge.marathon.api.module.Module

     * @param parent
     *            Parent Module for this directory module.
     * @return
     */
    private Module createModuleForDir(File moduleDir, Module parent) {
        Module moduleForDir = new Module(moduleDir.getName(), parent);
        File[] files = moduleDir.listFiles(new PyFileFilter());
        if (files == null || files.length == 0)
            return null;
        for (int i = 0; i < files.length; i++) {
            if (files[i].isDirectory()) {
                Module moduleForSubDir = createModuleForDir(files[i], moduleForDir);
                if (moduleForSubDir != null)
                    moduleForDir.addChild(moduleForSubDir);
            } else {
                Module moduleForFile = createModuleFromFile(files[i], moduleForDir);
                if (moduleForFile != null)
                    moduleForDir.addChild(moduleForFile);
            }
        }
        if (moduleForDir.getChildren().size() == 0)
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.model.config.Module

   
    // Update task-key on the task itself
    userTask.setFormKey(type.getName());
   
    // Create a form-config for the task
    Module shareModule = AlfrescoConversionUtil.getExtension(conversion).getModules().get(0);
    Configuration configuration = shareModule.addConfiguration(AlfrescoConversionConstants.EVALUATOR_TASK_TYPE
        , type.getName());
    Form formConfig = configuration.createForm();
   
    // Populate model and form based on FormDefinition
    formCreator.createForm(type, formConfig, humanStep.getForm(), conversion);
View Full Code Here

Examples of org.apache.accumulo.server.test.randomwalk.Module

      return;
   
    String confDir = acuHome + "/test/system/randomwalk/conf/";
    Framework.setConfigDir(confDir);
    try {
      Module module = new Module(new File(confDir + "modules/unit/Basic.xml"));
      module.visit(new State(new Properties()), new Properties());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.apache.accumulo.test.randomwalk.Module

    if (acuHome == null)
      return;
   
    String confDir = acuHome + "/test/system/randomwalk/conf/";
    try {
      Module module = new Module(new File(confDir + "modules/unit/Basic.xml"));
      module.visit(new State(new Properties()), new Properties());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.apache.axis2.modules.Module

    }

    private boolean canSupportAssertion(Assertion assertion, List moduleList) {

        AxisModule axisModule;
        Module module;

        for (Iterator iterator = moduleList.iterator(); iterator.hasNext();) {
            axisModule = (AxisModule) iterator.next();
            // FIXME is this step really needed ??
            // Shouldn't axisMoudle.getModule always return not-null value ??
            module = axisModule.getModule();

            if (!(module == null || module.canSupportAssertion(assertion))) {
                log.debug(((AxisModule) axisModule).getName()
                        + " says it can't support " + assertion.getName());
                return false;
            }
        }
View Full Code Here

Examples of org.apache.cayenne.di.Module

    public void testLoadEmpty() {

        // create dependencies

        Module testModule = new Module() {

            public void configure(Binder binder) {
                binder.bind(DataMapLoader.class).to(XMLDataMapLoader.class);
                binder.bind(ConfigurationNameMapper.class).to(
                        DefaultConfigurationNameMapper.class);
View Full Code Here

Examples of org.apache.etch.compiler.ast.Module

      else
        clo.lh.report( LogHandler.LEVEL_INFO, "Compiling..." );
     
      final EtchGrammar parser = new EtchGrammar( clo.backend, is );
       
        final Module m;
       
        // Parse .etch source
        try
        {
            m = parser.module( clo );
            clo.lh.report( LogHandler.LEVEL_INFO, "Parsed Ok." );
           
            m.check();
            clo.lh.report( LogHandler.LEVEL_INFO, "Checked Ok." );
        }
        catch ( ParseException e )
        {
            String fmt = e.getMessage();
View Full Code Here

Examples of org.apache.geronimo.j2ee.deployment.Module

        recursiveDelete(outputPath);
        outputPath.mkdirs();
        new File(outputPath, "war").mkdir();
        File path = new File(BASEDIR, "src/test/resources/deployables/war4");
        UnpackedJarFile jarFile = new UnpackedJarFile(path);
        Module module = builder.createModule(null, jarFile, kernel.getNaming(), new ModuleIDBuilder());
        Repository repository = null;

        AbstractName moduleName = module.getModuleName();
        EARContext earContext = createEARContext(outputPath, defaultEnvironment, repository, configStore, moduleName);
        module.setEarContext(earContext);
        module.setRootEarContext(earContext);
        builder.initContext(earContext, module, cl);
        builder.addGBeans(earContext, module, cl, Collections.EMPTY_SET);
        ConfigurationData configurationData = earContext.getConfigurationData();
        earContext.close();
        module.close();

        Artifact configurationId = configurationData.getId();
        configurationManager.loadConfiguration(configurationData);
        Configuration configuration = configurationManager.getConfiguration(configurationId);
        configurationManager.startConfiguration(configurationId);
View Full Code Here

Examples of org.apache.geronimo.jee.application.Module

    }

    public boolean performFinish() {
        AbstractTableWizardPage page = (AbstractTableWizardPage) getPages()[0];
        Path path;
        Module module;

        if (eObject == null) {
            eObject = getEFactory().create(Module.class);
            JAXBElement plan = section.getPlan();

            module = (Module)eObject;

            List moduleList = ((Application)plan.getValue()).getModule();
            if (moduleList == null) {
                moduleList = (List)getEFactory().create(Module.class);
            }
            moduleList.add(eObject);
        }
        else {
            module = (Module)eObject;
            module.setConnector(null);
            module.setEjb(null);
            module.setJava(null);
            module.setWeb(null);
        }

        // NOTE!! this replaces the call to processEAttributes (page);
        path = (Path)getEFactory().create(Path.class);
        path.setValue(page.getTextEntry(0).getText());

        if (((ModuleWizardPage)page).buttonList[0].getSelection())
            module.setConnector(path);
        else if (((ModuleWizardPage)page).buttonList[1].getSelection())
            module.setEjb(path);
        else if (((ModuleWizardPage)page).buttonList[2].getSelection())
            module.setJava(path);
        else if (((ModuleWizardPage)page).buttonList[3].getSelection())
            module.setWeb(path);
       
        String altDD = page.getTextEntry(1).getText();
        path = (Path)getEFactory().create(Path.class);
        path.setValue(altDD);
        module.setAltDd(path);
       
        if (section.getViewer().getInput() == section.getPlan()) {
            section.getViewer().setInput(section.getInput());
        }
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.