com.adaptrex.core
Class Adaptrex

java.lang.Object
  extended by com.adaptrex.core.Adaptrex

public class Adaptrex
extends Object

An instance of this class is the main entry point into Adaptrex services. Your webapp needs to bootstrap Adaptrex before it can be used. For more information on bootstrapping, see AdaptrexContextListener

In general, most interactions with Adaptrex use the following:

In those cases, you do not need to access the Adaptrex service directly. If you do need access to some services (such as AdaptrexPersistence) you can retrieve them directly from the Adaptrex service instance. You can always retrieve the service by calling Adaptrex.getAdaptrex() or by whatever other mechanism you have enabled in your application


Field Summary
static String ATTRIBUTE
           
 
Constructor Summary
Adaptrex()
           
Adaptrex(AdaptrexPersistenceManager... opms)
           
 
Method Summary
static Adaptrex get(javax.servlet.http.HttpServletRequest request)
           
static Adaptrex get(javax.servlet.ServletContext context)
           
 AdaptrexPersistenceManager getPersistenceManager()
           
 AdaptrexPersistenceManager getPersistenceManager(String factoryName)
           
 AdaptrexProperties getProperties()
           
 RestService getRestService()
           
 void initialize(javax.servlet.ServletContext context)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE

public static final String ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

Adaptrex

public Adaptrex()
         throws Exception
Throws:
Exception

Adaptrex

public Adaptrex(AdaptrexPersistenceManager... opms)
         throws Exception
Throws:
Exception
Method Detail

initialize

public void initialize(javax.servlet.ServletContext context)

getPersistenceManager

public AdaptrexPersistenceManager getPersistenceManager()

getPersistenceManager

public AdaptrexPersistenceManager getPersistenceManager(String factoryName)

getRestService

public RestService getRestService()

getProperties

public AdaptrexProperties getProperties()

shutdown

public void shutdown()

get

public static Adaptrex get(javax.servlet.ServletContext context)

get

public static Adaptrex get(javax.servlet.http.HttpServletRequest request)


Copyright © 2012 Adaptrex, LLC. All Rights Reserved.