Package org.apache.isis.core.runtime.system.internal

Examples of org.apache.isis.core.runtime.system.internal.InitialisationSession


        fixtureInstaller = obtainFixturesInstaller();
        if (isNoop(fixtureInstaller)) {
            return;
        }

        IsisContext.openSession(new InitialisationSession());
        fixtureInstaller.installFixtures();
        try {

            // only allow logon fixtures if not in production mode.
            if (!getDeploymentType().isProduction()) {
View Full Code Here


        // 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();
               
View Full Code Here

     * @see #initializeServices()
     */
    private void shutdownServices(final ServiceInitializer serviceInitializer) {
       
        // call @PostDestroy (in a session)
        IsisContext.openSession(new InitialisationSession());
        try {
            IsisContext.getTransactionManager().startTransaction();
            try {
                serviceInitializer.preDestroy();
               
View Full Code Here

        fixtureInstaller = obtainFixturesInstaller();
        if (isNoop(fixtureInstaller)) {
            return;
        }

        IsisContext.openSession(new InitialisationSession());
        fixtureInstaller.installFixtures();
        try {

            // only allow logon fixtures if not in production mode.
            if (!getDeploymentType().isProduction()) {
View Full Code Here

        // 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();
               
View Full Code Here

     * @see #initializeServices()
     */
    private void shutdownServices(final ServiceInitializer serviceInitializer) {
       
        // call @PostDestroy (in a session)
        IsisContext.openSession(new InitialisationSession());
        try {
            getTransactionManager().startTransaction();
            try {
                serviceInitializer.preDestroy();
               
View Full Code Here

        fixtureInstaller = obtainFixturesInstaller();
        if (isNoop(fixtureInstaller)) {
            return;
        }

        IsisContext.openSession(new InitialisationSession());
        fixtureInstaller.installFixtures();
        try {

            // only allow logon fixtures if not in production mode.
            if (!getDeploymentType().isProduction()) {
View Full Code Here

        try {
            // create system...
            isisSystem = createSystem(deploymentType, configurationBuilder);

            // ... and provide a session in order to install fixtures
            IsisContext.openSession(new InitialisationSession());

        } catch (final RuntimeException e) {
            if (isisSystem != null) {
                isisSystem.shutdown();
            }
View Full Code Here

        fixtureInstaller = obtainFixturesInstaller();
        if (isNoop(fixtureInstaller)) {
            return;
        }

        IsisContext.openSession(new InitialisationSession());
        fixtureInstaller.installFixtures();
        try {

            // only allow logon fixtures if not in production mode.
            if (!getDeploymentType().isProduction()) {
View Full Code Here

TOP

Related Classes of org.apache.isis.core.runtime.system.internal.InitialisationSession

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.