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 PrintStreamerrPrintStreamout
-
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 voidclose()List<Object>getAllOptions()org.springframework.context.ApplicationContextgetApplicationContext()com.evolveum.midpoint.audit.api.AuditServicegetAuditService()CharsetgetCharset()LoggetLog()MidpointConfigurationgetMidpointConfiguration()<T> TgetOptions(Class<T> type)PrismContextgetPrismContext()QueryConvertergetQueryConverter()com.evolveum.midpoint.repo.api.RepositoryServicegetRepository()SchemaServicegetSchemaService()LoginitializeLogging(LogTarget target)booleanisBatchMode()booleanisUserMode()booleanisVerbose()voidsetLog(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:
closein interfaceAutoCloseable- Specified by:
closein 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 com.evolveum.midpoint.repo.api.RepositoryService getRepository()
-
getAuditService
public com.evolveum.midpoint.audit.api.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()
-
-