org.hibersap.configuration
Class AnnotationConfiguration
java.lang.Object
org.hibersap.configuration.Configuration
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:
- using hibersap.properties:
hibersap.bapi_class.0=org.hibersap.examples.flightlist.FlightListBapi
- similarily in hibersap.xml:
<class>org.hibersap.examples.flightlist.FlightListBapi</class>
- 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bapiMapper
protected AnnotationBapiMapper bapiMapper
AnnotationConfiguration
public AnnotationConfiguration()
AnnotationConfiguration
public AnnotationConfiguration(SessionManagerConfig config)
AnnotationConfiguration
public AnnotationConfiguration(java.lang.String name)
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.