public interface CASMgr
Modifier and Type | Method and Description |
---|---|
void |
enableReset(boolean flag)
Enable/disable resetting the CAS with
CAS.reset() . |
void |
flush()
Deprecated.
Use
reset() instead. |
CAS |
getCAS()
Return a non-admin version of the CAS.
|
FSIndexRepositoryMgr |
getIndexRepositoryMgr() |
ClassLoader |
getJCasClassLoader()
Gets the ClassLoader that should be used by the JCas to load the generated FS cover classes for
this CAS.
|
TypeSystemMgr |
getTypeSystemMgr()
Return a writable version of the type system.
|
void |
initCASIndexes()
Install the standard built-in indexes into the base CAS
|
void |
reset()
Flush this CAS instance of all transient data.
|
void |
setCAS(CAS cas) |
void |
setJCasClassLoader(ClassLoader classLoader)
Sets the ClassLoader that should be used by the JCas to load the generated FS cover classes for
this CAS.
|
TypeSystemMgr getTypeSystemMgr()
FSIndexRepositoryMgr getIndexRepositoryMgr() throws CASAdminException
CASAdminException
- If the type system has not been committed.@Deprecated void flush() throws CASAdminException
reset()
instead.CASAdminException
void reset() throws CASAdminException
CASAdminException
CAS getCAS() throws CASAdminException
CASAdminException
- If the index repository has not been committed.void enableReset(boolean flag)
CAS.reset()
.flag
- true to enable resetvoid setCAS(CAS cas)
void initCASIndexes() throws CASException
CASException
- if an error occursClassLoader getJCasClassLoader()
void setJCasClassLoader(ClassLoader classLoader)
classLoader
- the JCas ClassLoder for this CASCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.