Package org.apache.isis.core.metamodel.specloader

Examples of org.apache.isis.core.metamodel.specloader.ServiceInitializer


        servicesInjector.setContainer(container);
        servicesInjector.setServices(services);
        servicesInjector.init();

        // validate
        final ServiceInitializer serviceInitializer = new ServiceInitializer();
        serviceInitializer.validate(getConfiguration(), container, services);

        // call @PostConstruct (in a session)
        IsisContext.openSession(new InitialisationSession());
        try {
            IsisContext.getTransactionManager().startTransaction();
            try {
                serviceInitializer.postConstruct();
               
                return serviceInitializer;
            } catch(RuntimeException ex) {
                IsisContext.getTransactionManager().getTransaction().setAbortCause(new IsisTransactionManagerException(ex));
                return serviceInitializer;
View Full Code Here


//        servicesInjector.setSpecificationLookup(sessionFactory.getSpecificationLoader());
//        servicesInjector.setServices(services);
//        servicesInjector.init();

        // validate
        final ServiceInitializer serviceInitializer = new ServiceInitializer();
        serviceInitializer.validate(getConfiguration(), services);

        // call @PostConstruct (in a session)
        IsisContext.openSession(new InitialisationSession());
        try {
            getTransactionManager().startTransaction();
            try {
                serviceInitializer.postConstruct();
               
                return serviceInitializer;
            } catch(RuntimeException ex) {
                getTransactionManager().getTransaction().setAbortCause(new IsisTransactionManagerException(ex));
                return serviceInitializer;
View Full Code Here

TOP

Related Classes of org.apache.isis.core.metamodel.specloader.ServiceInitializer

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.