org.hibersap.configuration
Class AnnotationConfiguration

java.lang.Object
  extended by org.hibersap.configuration.Configuration
      extended by org.hibersap.configuration.AnnotationConfiguration
All Implemented Interfaces:
java.io.Serializable

public class AnnotationConfiguration
extends Configuration

Configures Hibersap using annotated BAPI classes. There are three possibilities to add annotated classes:

  1. using hibersap.properties: hibersap.bapi_class.0=org.hibersap.examples.flightlist.FlightListBapi
  2. similarily in hibersap.xml: <class>org.hibersap.examples.flightlist.FlightListBapi</class>
  3. programmatically via addAnnotatedClass().
After calling buildSessionManager() this instance can be discarded. The SessionManager will be used to interact with the back-end system. Properties may be overwritten using the methods in this class' superclass, e.g. to specify different SAP systems in a test environment. For each SAP system which will be accessed by the client application, one SessionManager has to be built.

Author:
Carsten Erker
See Also:
Serialized Form

Field Summary
protected  AnnotationBapiMapper bapiMapper
           
 
Fields inherited from class org.hibersap.configuration.Configuration
bapiMappingForClass, interceptors, sessionManagerConfig
 
Constructor Summary
AnnotationConfiguration()
           
AnnotationConfiguration(SessionManagerConfig config)
           
AnnotationConfiguration(java.lang.String name)
           
 
Method Summary
 SessionManager buildSessionManager()
          Builds a SessionManager object.
 
Methods inherited from class org.hibersap.configuration.Configuration
addInterceptor, getBapiMappings, getInterceptors, getSessionManagerConfig, setSessionManagerConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bapiMapper

protected AnnotationBapiMapper bapiMapper
Constructor Detail

AnnotationConfiguration

public AnnotationConfiguration()

AnnotationConfiguration

public AnnotationConfiguration(SessionManagerConfig config)

AnnotationConfiguration

public AnnotationConfiguration(java.lang.String name)
Method Detail

buildSessionManager

public SessionManager buildSessionManager()
Builds a SessionManager object. Provide properties and add BAPI classes before calling this method.

Overrides:
buildSessionManager in class Configuration
Returns:
The SessionManager


Copyright © 2009 Akquinet Tech@Spree GmbH. All Rights Reserved.