fr.improve.xdi
Class IntegratorFactory

java.lang.Object
  extended byfr.improve.xdi.IntegratorFactory

public class IntegratorFactory
extends java.lang.Object

Import / Export Factory
Before using XDI you must define the mapping tool EOF or Hibernate :

Implementation must be define for class : Default implementation are define in : You can define your own implementations using : Mapping properties must be set for Hibernate : Use HibernateSynchroniser Eclipse plugin for an easy Hibernate integration
For calling a new import controller : For calling a new export controller :

Author:
Sébastien Letélié

Field Summary
static int EOF
           
static int HIBERNATE
           
 
Constructor Summary
IntegratorFactory()
           
 
Method Summary
 EnterpriseContext getEnterpriseContext()
          Get the EnterpriseContext implementation
static IntegratorFactory getInstance()
          Singleton pattern
 XMLDecoder newDecoder()
          Get the XML decoder used by the import controller
 XMLEncoder newEncoder()
          Get the export controller
 Integrator newIntegrator()
          Get the import controller
static void setIntegratorProperties(java.io.InputStream in_stream)
          Set the implementation properties file
static void setMapping(int in_type)
          Set the mapping tool
static void setMappingProperties(java.net.URL in_url)
          Set the hibernate mapping XML file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOF

public static final int EOF
See Also:
Constant Field Values

HIBERNATE

public static final int HIBERNATE
See Also:
Constant Field Values
Constructor Detail

IntegratorFactory

public IntegratorFactory()
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException - : if an implementation class is not found
Method Detail

setIntegratorProperties

public static void setIntegratorProperties(java.io.InputStream in_stream)
                                    throws java.io.IOException
Set the implementation properties file

Parameters:
in_stream -
Throws:
java.io.IOException

setMappingProperties

public static void setMappingProperties(java.net.URL in_url)
                                 throws java.io.IOException
Set the hibernate mapping XML file

Parameters:
in_url -
Throws:
java.io.IOException

setMapping

public static void setMapping(int in_type)
Set the mapping tool

Parameters:
in_type - : EOF for EOF, HIBERNATE for Hibernate

getInstance

public static IntegratorFactory getInstance()
                                     throws java.io.IOException,
                                            java.lang.ClassNotFoundException
Singleton pattern

Returns:
Throws:
java.io.IOException
java.lang.ClassNotFoundException

getEnterpriseContext

public EnterpriseContext getEnterpriseContext()
                                       throws java.lang.InstantiationException,
                                              java.lang.IllegalAccessException
Get the EnterpriseContext implementation

Returns:
EnterpriseContext implementation instance
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
See Also:
fr.improve.mapping.EnterpriseContext

newIntegrator

public Integrator newIntegrator()
                         throws javax.xml.parsers.ParserConfigurationException,
                                java.lang.InstantiationException,
                                java.lang.IllegalAccessException,
                                java.io.IOException,
                                java.lang.ClassNotFoundException
Get the import controller

Returns:
import controller
Throws:
javax.xml.parsers.ParserConfigurationException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.io.IOException
java.lang.ClassNotFoundException

newEncoder

public XMLEncoder newEncoder()
                      throws java.lang.InstantiationException,
                             java.lang.IllegalAccessException,
                             java.lang.ClassNotFoundException
Get the export controller

Returns:
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.ClassNotFoundException

newDecoder

public XMLDecoder newDecoder()
                      throws java.lang.InstantiationException,
                             java.lang.IllegalAccessException
Get the XML decoder used by the import controller

Returns:
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException


Copyright © 2004-2005 Improve. All Rights Reserved.