Package org.apache.isis.core.commons.config

Examples of org.apache.isis.core.commons.config.IsisConfigurationDefault


        this(context, Arrays.asList(services));
    }

    public IsisMetaModel(final EmbeddedContext context, final List<Object> services) {
        this.services.addAll(services);
        setConfiguration(new IsisConfigurationDefault());
        setClassSubstitutor(new ClassSubstitutorAbstract() {
        });
        setCollectionTypeRegistry(new CollectionTypeRegistryDefault());
        setSpecificationTraverser(new SpecificationTraverserDefault());
        setMemberLayoutArranger(new MemberLayoutArrangerDefault());
View Full Code Here


                ignoring(mockAuthenticationManager);
                ignoring(mockAuthorizationManager);
            }
        });

        final IsisSessionFactoryDefault sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(), mockTemplateImageLoader, mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
                mockPersistenceSessionFactory, servicesList);
        IsisContextStatic.createRelaxedInstance(sessionFactory);
        sessionFactory.init();

        final TextBlockTarget target = new TextBlockTargetExample();
View Full Code Here

    @Before
    public void setUp() throws Exception {
        Logger.getRootLogger().setLevel(Level.OFF);

        configuration = new IsisConfigurationDefault();
        servicesList = Collections.emptyList();

        mockTemplateImageLoader = mockery.mock(TemplateImageLoader.class);
        mockSpecificationLoader = mockery.mock(SpecificationLoader.class);
        mockPersistenceSessionFactory = mockery.mock(PersistenceSessionFactory.class);
View Full Code Here

                ignoring(mockTransaction);
            }
        });

        final IsisSessionFactory sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(), mockTemplateImageLoader, mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory,
                servicesList);
        sessionFactory.init();
        IsisContextStatic.createRelaxedInstance(sessionFactory);

        IsisContext.openSession(new ExplorationSession());
View Full Code Here

                ignoring(mockAuthenticationManager);
                ignoring(mockAuthorizationManager);
            }
        });

        final IsisSessionFactory sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(), mockTemplateImageLoader, mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory,
                servicesList);
        sessionFactory.init();
        IsisContextStatic.createRelaxedInstance(sessionFactory);

        final TextBlockTarget target = new TextBlockTargetExample();
View Full Code Here

            }
        });

        TestToolkit.createInstance();

        final IsisConfigurationDefault configuration = new IsisConfigurationDefault();
        final IsisSessionFactory sessionFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader, mockSpecificationLoader, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader, mockPersistenceSessionFactory, servicesList);
        sessionFactory.init();
        IsisContextStatic.createRelaxedInstance(sessionFactory);
    }
View Full Code Here

                ignoring(mockAuthenticationManager);
                ignoring(mockAuthorizationManager);
            }
        });

        configuration = new IsisConfigurationDefault();

        SpecificationLoader mockSpecificationLoader;
        final JavaReflectorInstaller javaReflectorInstaller = new JavaReflectorInstaller();
        javaReflectorInstaller.setConfiguration(configuration);
        mockSpecificationLoader = javaReflectorInstaller.createReflector();
View Full Code Here

        this.initNOF(properties);
    }

    public void initNOF(final Properties properties) throws SQLException, ClassNotFoundException,
        InstantiationException, IllegalAccessException {
        final IsisConfigurationDefault configuration = new IsisConfigurationDefault();
        configuration.add(properties);
        persistorName = configuration.getString("isis.persistor");

        resetPersistorState(configuration);

        sqlDataClassFactory = new SqlDataClassFactory();
        if (system != null) {
View Full Code Here

        this.configuration = configuration;
    }

    public IsisConfigurationDefault getConfiguration() {
        if (configuration == null) {
            configuration = new IsisConfigurationDefault();
        }
        return configuration;
    }
View Full Code Here

    @Override
    protected void setUp() throws Exception {
        super.setUp();

        facetFactory = new ParseableFacetFactory();
        isisConfigurationDefault = new IsisConfigurationDefault();
        facetFactory.setIsisConfiguration(isisConfigurationDefault);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.commons.config.IsisConfigurationDefault

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.