Package com.volantis.mcs.runtime.project

Examples of com.volantis.mcs.runtime.project.PopulatableProjectManager


            // Create the local project specific constraints.
            CacheControlConstraintsMap defaultLocalCacheControlConstraintsMap
                    = createLocalCacheControlConstraintsMap();

            PopulatableProjectManager projectManager =
                    new ProjectManagerImpl(projectLoader,
                            new RuntimeProjectConfiguratorImpl(
                                    defaultLocalCacheControlConstraintsMap,
                                    defaultRemoteCacheControlConstraintsMap,
                                    pathURLMapper, policyCache),
                            repositoryContainer,
                            remoteReadersFactory);

            // Create the activator.
            PolicyReferenceFactory referenceFactory =
                    new PolicyReferenceFactoryImpl(projectManager);

            PolicyActivator policyActivator =
                    initializeRepositoryObjectActivators(referenceFactory);

            // Create the retriever to use to retrieve activated policies from
            // any source.
            RuntimePolicyFactory runtimePolicyFactory =
                    RuntimePolicyFactory.getDefaultInstance();

            ActivatedPolicyRetriever activatedPolicyRetriever =
                    runtimePolicyFactory.createCachingRetriever(
                            policyActivator, projectManager, policyCache);

            policyFetcher = new PolicyFetcherImpl(activatedPolicyRetriever);

            // Initialize the projects

            projectManager.createPredefinedProjects(projects, configContext,
                    defaultLocalCacheControlConstraintsMap,
                    policyCache.getLocalDefaultGroup());
            RuntimeProject defaultProject = projectManager.getDefaultProject();

            // Determine the repository within which the default project
            // resides.
            LocalRepository defaultRepository;
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.project.PopulatableProjectManager

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.