Package atg.nucleus

Examples of atg.nucleus.Configuration


     * method of the new instance does not reload import files or try to recreate
     * tables
     */
    public boolean restart()
            throws ServiceException {
        Configuration c = getServiceConfiguration();
        NucleusNameResolver r = new NucleusNameResolver(
                getNucleus(), getNucleus(), getNameContext(), true
        );
        InitializingVersionRepository newRepository = (InitializingVersionRepository) c.createNewInstance(
                this
        );
        c.configureService(newRepository, r, this);

        // Fool this new repository into thinking that it has been
        // bound to the same name context as the original repository
        // This changes will make sure that getAbsoluteName() returns
        // a correct value.
View Full Code Here


     * sets temporaryInstantiation to true so that the doStartService method of
     * the new instance does not reload import files or try to recreate tables
     */
    public boolean restart()
            throws ServiceException {
        Configuration c = getServiceConfiguration();
        NucleusNameResolver r = new NucleusNameResolver(
                getNucleus(), getNucleus(), getNameContext(), true
        );
        InitializingGSA newRepository = (InitializingGSA) c.createNewInstance(this);
        c.configureService(newRepository, r, this);

        // Fool this new repository into thinking that it has been
        // bound to the same name context as the original repository
        // This changes will make sure that getAbsoluteName() returns
        // a correct value.
View Full Code Here

     */
    public static Repository duplicateRepository(GSARepository pRepository,
                                                 DataSource pDS,
                                                 boolean pStart)
            throws ServiceException {
        Configuration c = pRepository.getServiceConfiguration();
        Nucleus n = pRepository.getNucleus();
        NucleusNameResolver r = new NucleusNameResolver(
                n, n, pRepository.getNameContext(), true
        );
        GSARepository newRepository = null;
        if (pRepository instanceof VersionRepository) {
            newRepository = (GSARepository) c.createNewInstance(((VersionRepository) pRepository).getWrappedRepository());
            c.configureService(
                    newRepository, r, ((VersionRepository) pRepository).getWrappedRepository()
            );
        }
        else {
            newRepository = (GSARepository) c.createNewInstance(pRepository);
            c.configureService(newRepository, r, pRepository);
        }
        newRepository.setDataSource(pDS);
        newRepository.setForeignRepositorySuffix("-Shadow");

    /*
 
View Full Code Here

TOP

Related Classes of atg.nucleus.Configuration

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.