Search in sources :

Example 1 with PreInitLoader

use of com.arjuna.orbportability.internal.utils.PreInitLoader in project narayana by jbosstm.

the class ORB method initORB.

/**
 * Initialise the ORB.
 */
public synchronized void initORB(Applet a, Properties p) throws SystemException {
    if (opLogger.logger.isTraceEnabled()) {
        opLogger.logger.trace("ORB::initORB (Applet, Properties)");
    }
    if (!_orb.initialised()) {
        loadProperties(p);
        /**
         * Perform pre-initialisation classes for all ORBs
         */
        PreInitLoader preInit = new PreInitLoader(PreInitLoader.generateORBPropertyName(ORB_INITIALISER_NS), this);
        /**
         * Perform pre-initialisation classes for this ORB only
         */
        preInit = new PreInitLoader(PreInitLoader.generateORBPropertyName(ORB_INITIALISER_NS, _orbName), this);
        preInit = null;
        parseProperties(null, false);
        _orb.init(a, p);
        parseProperties(null, true);
        /**
         * Perform post-initialisation classes for all ORBs
         */
        PostInitLoader postInit = new PostInitLoader(PostInitLoader.generateORBPropertyName(ORB_INITIALISER_NS), this);
        /**
         * Perform post-initialisation classes for this ORB only
         */
        postInit = new PostInitLoader(PostInitLoader.generateORBPropertyName(ORB_INITIALISER_NS, _orbName), this);
        postInit = null;
    }
}
Also used : PostInitLoader(com.arjuna.orbportability.internal.utils.PostInitLoader) PreInitLoader(com.arjuna.orbportability.internal.utils.PreInitLoader)

Example 2 with PreInitLoader

use of com.arjuna.orbportability.internal.utils.PreInitLoader in project narayana by jbosstm.

the class ORB method initORB.

/**
 * Initialise the ORB.
 */
public synchronized void initORB(String[] s, Properties p) throws SystemException {
    if (opLogger.logger.isTraceEnabled()) {
        opLogger.logger.trace("ORB::initORB (String[], Properties)");
    }
    if (!_orb.initialised()) {
        loadProperties(p);
        /**
         * Perform pre-initialisation classes for all ORBs
         */
        PreInitLoader preInit = new PreInitLoader(PreInitLoader.generateORBPropertyName(ORB_INITIALISER_NS), this);
        /**
         * Perform pre-initialisation classes for this ORB only
         */
        preInit = new PreInitLoader(PreInitLoader.generateORBPropertyName(ORB_INITIALISER_NS, _orbName), this);
        preInit = null;
        parseProperties(s, false);
        _orb.init(s, p);
        parseProperties(s, true);
        /**
         * Perform post-initialisation classes for all ORBs
         */
        PostInitLoader postInit = new PostInitLoader(PostInitLoader.generateORBPropertyName(ORB_INITIALISER_NS), this);
        /**
         * Perform post-initialisation classes for this ORB only
         */
        postInit = new PostInitLoader(PostInitLoader.generateORBPropertyName(ORB_INITIALISER_NS, _orbName), this);
        postInit = null;
    }
}
Also used : PostInitLoader(com.arjuna.orbportability.internal.utils.PostInitLoader) PreInitLoader(com.arjuna.orbportability.internal.utils.PreInitLoader)

Example 3 with PreInitLoader

use of com.arjuna.orbportability.internal.utils.PreInitLoader in project narayana by jbosstm.

the class ORB method initORB.

/**
 * Initialise the default ORB.
 */
public synchronized void initORB() throws SystemException {
    if (opLogger.logger.isTraceEnabled()) {
        opLogger.logger.trace("ORB::initORB ()");
    }
    if (!_orb.initialised()) {
        // null op - just skip it loadProperties(null);
        /**
         * Perform pre-initialisation classes for all ORBs
         */
        PreInitLoader preInit = new PreInitLoader(PreInitLoader.generateORBPropertyName(ORB_INITIALISER_NS), this);
        /**
         * Perform pre-initialisation classes for this ORB only
         */
        preInit = new PreInitLoader(PreInitLoader.generateORBPropertyName(ORB_INITIALISER_NS, _orbName), this);
        preInit = null;
        parseProperties(null, false);
        _orb.init();
        parseProperties(null, true);
        /**
         * Perform post-initialisation classes for all ORBs
         */
        PostInitLoader postInit = new PostInitLoader(PostInitLoader.generateORBPropertyName(ORB_INITIALISER_NS), this);
        /**
         * Perform post-initialisation classes for this ORB only
         */
        postInit = new PostInitLoader(PostInitLoader.generateORBPropertyName(ORB_INITIALISER_NS, _orbName), this);
        postInit = null;
    }
}
Also used : PostInitLoader(com.arjuna.orbportability.internal.utils.PostInitLoader) PreInitLoader(com.arjuna.orbportability.internal.utils.PreInitLoader)

Example 4 with PreInitLoader

use of com.arjuna.orbportability.internal.utils.PreInitLoader in project narayana by jbosstm.

the class OA method performPreInit.

/**
 * Loads and runs the configured pre-initialisation classes
 */
protected void performPreInit(String oaName) {
    /**
     * Perform pre-initialisation classes for all OAs
     */
    PreInitLoader preInit = new PreInitLoader(PreInitLoader.generateOAPropertyName(ORB.ORB_INITIALISER_NS), this);
    /**
     * Perform pre-initialisation classes for all OAs
     */
    preInit = new PreInitLoader(PreInitLoader.generateOAPropertyName(ORB.ORB_INITIALISER_NS, _associatedORB.getName()), this);
    /**
     * Perform pre-initialisation classes for this OA only
     */
    preInit = new PreInitLoader(PreInitLoader.generateOAPropertyName(ORB.ORB_INITIALISER_NS, _associatedORB.getName(), oaName), this);
    preInit = null;
}
Also used : PreInitLoader(com.arjuna.orbportability.internal.utils.PreInitLoader)

Aggregations

PreInitLoader (com.arjuna.orbportability.internal.utils.PreInitLoader)4 PostInitLoader (com.arjuna.orbportability.internal.utils.PostInitLoader)3