thinkmap.server
Class LocalDataSource
java.lang.Object
thinkmap.server.LocalDataSource
- All Implemented Interfaces:
- IDataSource
public class LocalDataSource
- extends Object
- implements IDataSource
This class is similar to the RemoteDataSource, but only works with other IDataSources
that are hosted in the same web application. This is useful when creating composite data
sources that combine multiple local datasources that need to be accessed separately.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalDataSource
public LocalDataSource()
LocalDataSource
public LocalDataSource(DataSourceServlet dsServlet)
setURI
public void setURI(String uri)
- Sets the URI of the DataSource that this LocalDataSource references.
- Parameters:
uri - the URI of the DataSource that this LocalDataSource references.
init
public void init(IThinkmapContext context)
throws Exception
- Throws:
Exception
destroy
public void destroy()
createRequest
public IEntityHandler createRequest(IEntityHandler callback)
- Description copied from interface:
IDataSource
- Create a request. The server and client's IEntityHandlers are linked.
- Specified by:
createRequest in interface IDataSource
- Parameters:
callback - The IEntityHandler that will recieve the response.
- Returns:
- The IEntityHandler for sending a request.
contextInitializing
public void contextInitializing(IThinkmapContext itc)
throws Exception
- Throws:
Exception
contextStarting
public void contextStarting(IThinkmapContext itc)
contextStopping
public void contextStopping(IThinkmapContext itc)
contextDestroyed
public void contextDestroyed(IThinkmapContext itc)
Copyright © 2013 Thinkmap, Inc. All Rights Reserved.