|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibersap.configuration.Configuration
public abstract class Configuration
Abstract Superclass for different configuration strategies. Implements properties / settings handling. The concrete class' responsibility is to provide the BapiMappings, e.g. by analyzing annotated classes or XML mappings.
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(String sessionManagerName)
Creates a Configuration for a concrete SessionManager. |
Method Summary | |
---|---|
SessionManager |
buildSessionManager()
Builds the session manager for this Configuration. |
protected SessionManagerConfig |
getSessionManagerConfig()
|
protected void |
setBapiMappings(Map<Class<?>,BapiMapping> bapiMappings)
Concrete subclasses should use this method to provide the BAPI mapping information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Configuration(SessionManagerConfig sessionManagerConfig)
sessionManagerConfig
- The session manager configurationpublic Configuration(String sessionManagerName)
sessionManagerName
- The SessionManager name as specified in the hibersap.xml filepublic Configuration()
Method Detail |
---|
public SessionManager buildSessionManager()
protected void setBapiMappings(Map<Class<?>,BapiMapping> bapiMappings)
bapiMappings
- A Map with the BAPI class as key and the BapiMappings as value.protected SessionManagerConfig getSessionManagerConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |