Package org.qi4j.entitystore.prefs

Examples of org.qi4j.entitystore.prefs.PreferencesEntityStoreInfo


    {
        String applicationName = module.layer().application().name();

        Preferences root = Preferences.userRoot();
        Preferences node = root.node( applicationName );
        PreferencesEntityStoreInfo info = new PreferencesEntityStoreInfo( node );
        ServiceDeclaration service = module.services( PreferencesEntityStoreService.class )
            .setMetaInfo( info )
            .visibleIn( visibility() )
            .instantiateOnStartup();
        if( hasIdentity() )
View Full Code Here


        module.layer().application().setName( "PreferencesTest" );

        super.assemble( module );
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader( null );
        PreferencesEntityStoreInfo metaInfo = new PreferencesEntityStoreInfo( Preferences.userNodeForPackage( getClass() ) );
        Thread.currentThread().setContextClassLoader( cl );
        module.services( PreferencesEntityStoreService.class ).setMetaInfo( metaInfo ).instantiateOnStartup();
        new OrgJsonValueSerializationAssembler().assemble( module );
    }
View Full Code Here

TOP

Related Classes of org.qi4j.entitystore.prefs.PreferencesEntityStoreInfo

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.