org.apache.tomee.installer
Class Installer

java.lang.Object
  extended by org.apache.tomee.installer.Installer

public class Installer
extends Object


Nested Class Summary
static class Installer.Status
           
 
Constructor Summary
Installer(Paths paths)
           
Installer(Paths paths, boolean force)
           
 
Method Summary
 Alerts getAlerts()
           
 Installer.Status getStatus()
           
 void installAll()
           
 void installConfigFiles()
          Installs conf/tomee.xml and conf/logging.properties files.
 void installFull()
           
 void installJavaagent()
           
 void installListener()
           
 void installListener(String listener)
           
static Object invokeStaticNoArgMethod(String className, String propertyName)
           
static boolean isAgentInstalled()
           
static boolean isListenerInstalled()
           
static Class<?> loadClass(String className, ClassLoader classLoader)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Installer

public Installer(Paths paths)

Installer

public Installer(Paths paths,
                 boolean force)
Method Detail

isListenerInstalled

public static boolean isListenerInstalled()

isAgentInstalled

public static boolean isAgentInstalled()

getAlerts

public Alerts getAlerts()

reset

public void reset()

getStatus

public Installer.Status getStatus()

installAll

public void installAll()

installFull

public void installFull()

installListener

public void installListener()

installListener

public void installListener(String listener)

installJavaagent

public void installJavaagent()

installConfigFiles

public void installConfigFiles()
Installs conf/tomee.xml and conf/logging.properties files. This method retrieves the tomee.xml and logging.properties files from openejb core jar file and installs them under the conf directory of tomcat. if there is already a conf/logging.properties file available then this method appends the contents of openejb logging.properties file to the exisiting properties file. Replace web.xml to set jasper in production mode instead of dev mode. NOTE:- If the existing conf/logging.properties file already has some openejb specific configuration, then this method will just leave the logging.properties file alone


invokeStaticNoArgMethod

public static Object invokeStaticNoArgMethod(String className,
                                             String propertyName)

loadClass

public static Class<?> loadClass(String className,
                                 ClassLoader classLoader)
                          throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.