org.openejb.alt.config
Class ServiceUtils
java.lang.Object
org.openejb.alt.config.ServiceUtils
- public class ServiceUtils
- extends Object
Utility methods for reading, writing, and configuring services
- Author:
- David Blevins
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultProviderURL
public static final String defaultProviderURL
- See Also:
- Constant Field Values
messages
public static Messages messages
logger
public static Logger logger
ServiceUtils
public ServiceUtils()
getServiceProvider
public static ServiceProvider getServiceProvider(Service service)
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProvider
public static ServiceProvider getServiceProvider(String id)
throws OpenEJBException
- org.openejb#Default JDBC Connector
Default JDBC Connector
org.postgresql#JDBCService
- Parameters:
id
-
- Returns:
- ServiceProvider
- Throws:
OpenEJBException
readServicesJar
public static ServicesJar readServicesJar(String providerName)
throws OpenEJBException
- Opens the specified jar file, locates the service-jar.xml file,
unmarshals it to a java object and returns it. If there is no
service-jar.xml in the jar an exception will be thrown.
- Parameters:
providerName
-
- Returns:
- ServicesJar
- Throws:
OpenEJBException
writeServicesJar
public static void writeServicesJar(String xmlFile,
ServicesJar servicesJarObject)
throws OpenEJBException
- Throws:
OpenEJBException
assemblePropertiesFor
public static Properties assemblePropertiesFor(String confItem,
String itemId,
String itemContent,
String confFile,
ServiceProvider service)
throws OpenEJBException
- Throws:
OpenEJBException
loadProperties
public static Properties loadProperties(String pFile)
throws OpenEJBException
- Throws:
OpenEJBException
loadProperties
public static Properties loadProperties(String propertiesFile,
Properties defaults)
throws OpenEJBException
- Throws:
OpenEJBException
loadProperties
public static Properties loadProperties(InputStream in,
Properties defaults)
throws OpenEJBException
- Throws:
OpenEJBException
Copyright © 1999-2007 OpenEJB. All Rights Reserved.