org.hibersap.configuration
Class AnnotationConfiguration

java.lang.Object
  extended by org.hibersap.configuration.Configuration
      extended by org.hibersap.configuration.AnnotationConfiguration

public class AnnotationConfiguration
extends Configuration

Configures Hibersap using annotated BAPI classes.

There are two possibilities to add annotated classes:

  1. In hibersap.xml: <annotated-class>org.hibersap.examples.flightlist.FlightListBapi</anotated-class>
  2. 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

Constructor Summary
AnnotationConfiguration()
           
AnnotationConfiguration(SessionManagerConfig config)
           
AnnotationConfiguration(String name)
           
 
Method Summary
 SessionManager buildSessionManager()
          Builds a SessionManager object.
 String getSessionManagerName()
           
 
Methods inherited from class org.hibersap.configuration.Configuration
getSessionManagerConfig, setBapiMappings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationConfiguration

public AnnotationConfiguration()

AnnotationConfiguration

public AnnotationConfiguration(SessionManagerConfig config)

AnnotationConfiguration

public AnnotationConfiguration(String name)
Method Detail

buildSessionManager

public SessionManager buildSessionManager()
Builds a SessionManager object.

Overrides:
buildSessionManager in class Configuration
Returns:
The SessionManager

getSessionManagerName

public String getSessionManagerName()


Copyright © 2012 akquinet tech@spree GmbH. All Rights Reserved.