org.hibersap.configuration
Class Configuration

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

public abstract class Configuration
extends java.lang.Object
implements java.io.Serializable

Abstract Superclass for different configuration strategies. Implements properties / settings handling.

Author:
Carsten Erker
See Also:
Serialized Form

Field Summary
protected  java.util.Map<java.lang.Class<?>,BapiMapping> bapiMappingForClass
           
protected  java.util.Set<ExecutionInterceptor> interceptors
           
protected  SessionManagerConfig sessionManagerConfig
           
 
Constructor Summary
Configuration()
          Creates a Configuration for the first SessionManager specified in the hibersap.xml file.
Configuration(SessionManagerConfig sessionManagerConfig)
          Creates a Configuration for programmatic configuration of Hibersap.
Configuration(java.lang.String sessionManagerName)
          Creates a Configuration for a concrete SessionManager.
 
Method Summary
 void addInterceptor(ExecutionInterceptor interceptor)
           
 SessionManager buildSessionManager()
          Builds the session manager for this Configuration.
 java.util.Map<java.lang.Class<?>,BapiMapping> getBapiMappings()
           
 java.util.Set<ExecutionInterceptor> getInterceptors()
           
 SessionManagerConfig getSessionManagerConfig()
           
 void setSessionManagerConfig(SessionManagerConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sessionManagerConfig

protected SessionManagerConfig sessionManagerConfig

bapiMappingForClass

protected final java.util.Map<java.lang.Class<?>,BapiMapping> bapiMappingForClass

interceptors

protected final java.util.Set<ExecutionInterceptor> interceptors
Constructor Detail

Configuration

public Configuration(java.lang.String sessionManagerName)
Creates a Configuration for a concrete SessionManager. The SessionManager must be configured in the hibersap.xml file.

Parameters:
sessionManagerName - The SessionManager name as specified in the hibersap.xml file

Configuration

public Configuration()
Creates a Configuration for the first SessionManager specified in the hibersap.xml file. This method should only be used when there is exactly one SessionManager specified in hibersap.xml.


Configuration

public Configuration(SessionManagerConfig sessionManagerConfig)
Creates a Configuration for programmatic configuration of Hibersap. You have to create a org.hibersap.configuration.xml.SessionManagerConfig first.

Parameters:
sessionManagerConfig - The session manager configuration
Method Detail

buildSessionManager

public SessionManager buildSessionManager()
Builds the session manager for this Configuration.

Returns:
The session manager

getBapiMappings

public java.util.Map<java.lang.Class<?>,BapiMapping> getBapiMappings()

getSessionManagerConfig

public SessionManagerConfig getSessionManagerConfig()

setSessionManagerConfig

public void setSessionManagerConfig(SessionManagerConfig config)

getInterceptors

public java.util.Set<ExecutionInterceptor> getInterceptors()

addInterceptor

public void addInterceptor(ExecutionInterceptor interceptor)


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