Examples of Installer


Examples of com.sun.appserv.addons.Installer

    /**
     * Call Installer.install() on a specific addon.
     */
    private void _install(Object obj, String addonName)
        throws AddonFatalException {
        Installer inst = Installer.class.cast(obj);
        InstallationContext ic = new InstallationContext();
        ic.setInstallationDirectory(getInstallRoot());
        try {
            inst.install(ic);
            String addonInstalled =
            localStrings.getString("addon.installed", addonName);
            if (getLogger().isLoggable(Level.INFO)) {
                getLogger().info(addonInstalled);
            }
View Full Code Here

Examples of com.sun.appserv.addons.Installer

    /**
     * Call Installer.uninstall() for a specific addon.
     */
    private void _uninstall(Object obj, String addonName)
        throws AddonFatalException {
        Installer inst = Installer.class.cast(obj);
        InstallationContext ic = new InstallationContext();
        ic.setInstallationDirectory(getInstallRoot());
        try {
            inst.uninstall(ic);
            if (getLogger().isLoggable(Level.INFO)) {
                getLogger().info
                (localStrings.getString("addon.uninstalled", addonName));
            }
        } catch (AddonFatalException afe) {
View Full Code Here

Examples of com.sun.enterprise.jbi.serviceengine.install.Installer

     */
    public void onReady(ServerContext sc) throws ServerLifecycleException {
       
       
       
        Installer installer =
                ServiceEngineObjectFactoryImpl.getInstance().
                createInstaller();
        if(installer.isJBIInstalled()) {
            installer.setComponentName(DEFAULT_COMPONENT_NAME);
            try {
                boolean installedFlag = installer.isComponentInstalled();
                logger.log(Level.FINE, "Is Java EE Service Engine installed " + installedFlag);
               
                if(ServiceEngineUtil.isServiceEngineEnabled()) {
                    //Assumption here is if service engine is already installed,
                    // It will be resumed in its state by the JBI framework
                    if(!installedFlag) {
                        installer.install(null);
                        installer.start();
                    }
                }else {
                    logger.log(Level.FINEST, "Java EE Service Engine is disabled");
                    if(installedFlag) {
                        // If service engine is disabled, stop the service engine
                        try {
                            installer.stop();
                        } catch(Exception e) {
                        }
                    }
                }
            } catch (Throwable e) {
View Full Code Here

Examples of org.apache.isis.core.commons.components.Installer

                final String className = StringExtensions.asFirstWord(line);
                if (className.length() == 0 || className.startsWith("#")) {
                    continue;
                }
                try {
                    final Installer object = (Installer) InstanceUtil.createInstance(className);
                    LOG.debug("created component installer: " + object.getName() + " - " + className);
                    installerList.add(object);
                } catch (final UnavailableClassException e) {
                    LOG.info("component installer not found; it will not be available: " + className);
                } catch (final InstanceCreationClassException e) {
                    LOG.info("instance creation exception: " + e.getMessage());
View Full Code Here

Examples of org.apache.isis.core.commons.components.Installer

    @Override
    @SuppressWarnings("unchecked")
    public Installer getInstaller(final String implClassName) {
        try {
            final Installer installer = ObjectExtensions.asT(InstanceUtil.createInstance(implClassName));
            if (installer != null) {
                mergeConfigurationFor(installer);
                injectDependenciesInto(installer);
            }
            return installer;
View Full Code Here

Examples of org.apache.isis.core.commons.components.Installer

                final String className = StringExtensions.asFirstWord(line);
                if (className.length() == 0 || className.startsWith("#")) {
                    continue;
                }
                try {
                    final Installer object = (Installer) InstanceUtil.createInstance(className);
                    LOG.debug("created component installer: " + object.getName() + " - " + className);
                    installerList.add(object);
                } catch (final UnavailableClassException e) {
                    LOG.info("component installer not found; it will not be available: " + className);
                } catch (final InstanceCreationClassException e) {
                    LOG.info("instance creation exception: " + e.getMessage());
View Full Code Here

Examples of org.apache.isis.core.commons.components.Installer

    }

    @SuppressWarnings("unchecked")
    public Installer getInstaller(final String implClassName) {
        try {
            final Installer installer = ObjectExtensions.asT(InstanceUtil.createInstance(implClassName));
            if (installer != null) {
                mergeConfigurationFor(installer);
                injectDependenciesInto(installer);
            }
            return installer;
View Full Code Here

Examples of org.apache.openejb.tomcat.installer.Installer

        String openejbWarDir = properties.getProperty("openejb.war");
        if (openejbWarDir == null) return;

        Paths paths = new Paths(new File(openejbWarDir));
        if (paths.verify()) {
            Installer installer = new Installer(paths);
            installer.installConfigFiles();
        }
    }
View Full Code Here

Examples of org.apache.openejb.tomcat.installer.Installer

        String openejbWarDir = properties.getProperty("openejb.war");
        if (openejbWarDir != null) {

            Paths paths = new Paths(new File(openejbWarDir));
            if (paths.verify()) {
                Installer installer = new Installer(paths);
                installer.installConfigFiles();
            }
        }

        // Not thread safe
        if (OpenEJB.isInitialized()) {
View Full Code Here

Examples of org.apache.openejb.tomcat.installer.Installer

        String openejbWarDir = System.getProperty("openejb.war");
        if (openejbWarDir == null) return;

        Paths paths = new Paths(openejbWarDir);
        if (paths.verify()) {
            Installer installer = new Installer(paths);
            installer.installConfigFiles();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.