Examples of IsisConfigurationDefault


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

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

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

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

        properties.load(new FileInputStream(propertiesDirectory + "/" + propertiesFileName));
        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");

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

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

        this.configuration = configuration;
    }

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

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

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

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

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

    private final Map<Object, ObjectAdapter> adapters = Maps.newHashMap();

    public TrialObjects() {

        final IsisConfigurationDefault configuration = new IsisConfigurationDefault();

        final AdapterMapAbstract adapterMap = new AdapterMapAbstract() {

            @Override
            public ObjectAdapter getAdapterFor(final Object pojo) {
View Full Code Here

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

        mockPersistenceSessionFactory = mockery.mock(PersistenceSessionFactory.class);
        mockUserProfileLoader = mockery.mock(UserProfileLoader.class);
        mockAuthenticationManager = mockery.mock(AuthenticationManager.class);
        mockAuthorizationManager = mockery.mock(AuthorizationManager.class);

        configuration = new IsisConfigurationDefault();
        reflector = new TestProxyReflector();
        persistenceSession = new TestProxyPersistenceSession(mockPersistenceSessionFactory);

        mockery.checking(new Expectations() {
            {
View Full Code Here

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

        Logger.getRootLogger().setLevel(Level.OFF);
        final Mockery mockery = new JUnit4Mockery();
        final ArrayList<Object> servicesList = new ArrayList<Object>();
        service = new TestServiceObject1();
        servicesList.add(service);
        final IsisSessionFactory executionContextFactory = new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, new IsisConfigurationDefault(), mockery.mock(TemplateImageLoader.class), mockery.mock(SpecificationLoader.class), mockery.mock(AuthenticationManager.class),
                mockery.mock(AuthorizationManager.class), mockery.mock(UserProfileLoader.class), mockery.mock(PersistenceSessionFactory.class), servicesList);

        IsisContextStatic.createRelaxedInstance(executionContextFactory);

        final XMLReader parser = XMLReaderFactory.createXMLReader();
View Full Code Here

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

        properties.put(SqlAuthenticator.PROPERTY_BASE + ".jdbc.driver", "org.hsqldb.jdbcDriver");
        properties.put(SqlAuthenticator.PROPERTY_BASE + ".jdbc.connection", "jdbc:hsqldb:file:hsql-db/authenticator-tests");
        properties.put(SqlAuthenticator.PROPERTY_BASE + ".jdbc.user", "sa");
        properties.put(SqlAuthenticator.PROPERTY_BASE + ".jdbc.password", "");

        configuration = new IsisConfigurationDefault();
        configuration.add(properties);

        // setup configuration
        IsisContext.setConfiguration(configuration);
View Full Code Here

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

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

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

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

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

        final IsisConfigurationDefault configuration = new IsisConfigurationDefault();

        mockTemplateImageLoader = mockery.mock(TemplateImageLoader.class);
        mockPersistenceSessionFactory = mockery.mock(PersistenceSessionFactory.class);
        mockUserProfileLoader = mockery.mock(UserProfileLoader.class);
        mockAuthenticationManager = mockery.mock(AuthenticationManager.class);
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.