org.objectweb.easybeans.client.xml
Class ApplicationClientLoader

java.lang.Object
  extended by org.objectweb.easybeans.client.xml.ApplicationClientLoader

public final class ApplicationClientLoader
extends java.lang.Object

Class used to fill ApplicationClient implementation class by loading an XML.

Author:
Florent Benoit

Field Summary
private static java.lang.String APPLICATION_CLIENT_XML_FILE
          Name of the persistence.xml file.
private static java.lang.String DIRECTORY_APPLICATION_CLIENT_XML_FILE
          Directory where application-client.xml file should be.
private static java.lang.String EJB_REF
          <ejb-ref> element.
private static java.lang.String JAVAEE_NS
          Persistence namespace.
private static JLog logger
          Logger.
private static boolean validating
          Validating with schema ?
 
Constructor Summary
private ApplicationClientLoader()
          Utility class, no public constructor.
 
Method Summary
static ApplicationClient loadApplicationClient(java.io.File archive)
          Detects and analyze the META-INF/application-client.xml file.
private static ApplicationClient loadXML(java.net.URL url)
          Load the application-client.xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVAEE_NS

private static final java.lang.String JAVAEE_NS
Persistence namespace.

See Also:
Constant Field Values

EJB_REF

private static final java.lang.String EJB_REF
<ejb-ref> element.

See Also:
Constant Field Values

DIRECTORY_APPLICATION_CLIENT_XML_FILE

private static final java.lang.String DIRECTORY_APPLICATION_CLIENT_XML_FILE
Directory where application-client.xml file should be.

See Also:
Constant Field Values

APPLICATION_CLIENT_XML_FILE

private static final java.lang.String APPLICATION_CLIENT_XML_FILE
Name of the persistence.xml file.

See Also:
Constant Field Values

logger

private static JLog logger
Logger.


validating

private static boolean validating
Validating with schema ?

Constructor Detail

ApplicationClientLoader

private ApplicationClientLoader()
Utility class, no public constructor.

Method Detail

loadXML

private static ApplicationClient loadXML(java.net.URL url)
                                  throws ParsingException
Load the application-client.xml file.

Parameters:
url - the URL of the the Reader of the XML file.
Returns:
an application object.
Throws:
ParsingException - if parsing of XML file fails.

loadApplicationClient

public static ApplicationClient loadApplicationClient(java.io.File archive)
                                               throws ParsingException
Detects and analyze the META-INF/application-client.xml file.

Parameters:
archive - the file to analyze (or directory) in order to find a application-client.xml file.
Returns:
an application object.
Throws:
ParsingException - if parsing of XML file fails.