Package com.evolveum.midpoint.ninja.impl
Class NinjaContext
- java.lang.Object
-
- com.evolveum.midpoint.ninja.impl.NinjaContext
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class NinjaContext extends Object implements Closeable
Created by Viliam Repan (lazyman).
-
-
Field Summary
Fields Modifier and Type Field Description PrintStream
err
PrintStream
out
-
Constructor Summary
Constructors Constructor Description NinjaContext(@NotNull PrintStream out, @NotNull PrintStream err, @NotNull List<Object> options, @NotNull NinjaApplicationContextLevel applicationContextLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
List<Object>
getAllOptions()
org.springframework.context.ApplicationContext
getApplicationContext()
AuditService
getAuditService()
Charset
getCharset()
Log
getLog()
MidpointConfiguration
getMidpointConfiguration()
<T> T
getOptions(Class<T> type)
PrismContext
getPrismContext()
QueryConverter
getQueryConverter()
RepositoryService
getRepository()
SchemaService
getSchemaService()
Log
initializeLogging(LogTarget target)
boolean
isBatchMode()
boolean
isUserMode()
boolean
isVerbose()
void
setLog(Log log)
-
-
-
Field Detail
-
out
public final PrintStream out
-
err
public final PrintStream err
-
-
Constructor Detail
-
NinjaContext
public NinjaContext(@NotNull @NotNull PrintStream out, @NotNull @NotNull PrintStream err, @NotNull @NotNull List<Object> options, @NotNull @NotNull NinjaApplicationContextLevel applicationContextLevel)
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
setLog
public void setLog(Log log)
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
getOptions
public <T> T getOptions(Class<T> type)
-
getMidpointConfiguration
public MidpointConfiguration getMidpointConfiguration()
-
getRepository
public RepositoryService getRepository()
-
getAuditService
public AuditService getAuditService()
-
isVerbose
public boolean isVerbose()
-
isBatchMode
public boolean isBatchMode()
-
isUserMode
public boolean isUserMode()
-
getCharset
public Charset getCharset()
-
getPrismContext
public PrismContext getPrismContext()
-
getSchemaService
public SchemaService getSchemaService()
-
getLog
public Log getLog()
-
getQueryConverter
public QueryConverter getQueryConverter()
-
-