public abstract class AuditManager
extends java.lang.Object
AuditProvider describing its analyzers, columns, and other
 extensions, and register it here. The Audit manager is also the factory for
 the central Auditor class of
 the Audit service API, used by clients which invoke Audit programmatically.| Constructor and Description | 
|---|
AuditManager()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract Auditor | 
createAuditor(java.lang.Class<? extends Analyzer>... analyzers)
Creates an  
Auditor which uses the default model type factory. | 
abstract Auditor | 
createAuditor(ModelTypeFactory factory,
             java.lang.Class<? extends Analyzer>... analyzers)
Creates an  
Auditor. | 
abstract AuditModel | 
createModel()
Creates an  
AuditModel. | 
abstract ModelTypeFactory | 
createModelTypeFactory(ModelType... modelTypes)
Creates a  
ModelTypeFactory with specific model types and the 
 standard container types (root, workspace, project, and directory). | 
abstract Profile | 
createProfile(java.lang.String name)
Creates a new  
Profile with all registered beans included and
 enabled. | 
abstract Profile | 
createProfile(java.lang.String name,
             BeanDefinition... beans)
Creates a new  
Profile with beans from specified bean
 definitions included and enabled. | 
abstract Profile | 
createProfile(java.lang.String name,
             java.lang.String... ids)
Creates a new  
Profile with all registered beans included and with
 beans from specified ids, if any, enabled. | 
abstract Transformer | 
createTransformer()
Creates a  
Transformer. | 
static AuditManager | 
getAuditManager()
Gets the singleton Audit manager. 
 | 
abstract java.util.Map<java.lang.Class<?>,BeanCustomizer> | 
getBeanCustomizers()
Gets the bean customizers registered with this Audit manager. 
 | 
abstract ExtensionBeanFactory | 
getDefaultExtensionBeanFactory()
Gets the default Audit profile repository. 
 | 
abstract ModelTypeFactory | 
getDefaultModelTypeFactory()
Gets the default  
ModelTypeFactory which uses all model types
 registered with Audit. | 
abstract ProfileRepository | 
getDefaultProfileRepository()
Gets the default Audit profile repository. 
 | 
abstract AuditPreferences | 
getPreferences()
Gets the Audit preferences. 
 | 
abstract java.util.Collection<java.net.URL> | 
getProfileStyleSheets()
Gets the profile style sheet URLs registered with this Audit manager. 
 | 
abstract java.util.Collection<java.net.URL> | 
getStyleSheets()
Gets the style sheet URLs registered with this Audit manager. 
 | 
static boolean | 
isDevelopment()
Gets whether Audit is running in development mode. 
 | 
abstract void | 
register(AuditProvider provider)
Registers an Audit provider with this Audit manager. 
 | 
abstract AuditModel | 
runShowLogPage(Context context,
              Auditor auditor,
              java.lang.String label,
              java.lang.Thread.UncaughtExceptionHandler handler)
Creates and shows an Audit log page for an  
Auditor, and runs the
 audit. | 
static void | 
setAuditManager(AuditManager manager)
Sets the singleton Audit manager. 
 | 
abstract void | 
showLogPage(Context context,
           Auditor auditor,
           AuditModel model,
           java.lang.String label)
 | 
public static AuditManager getAuditManager()
public static boolean isDevelopment()
public static void setAuditManager(AuditManager manager)
public abstract void register(AuditProvider provider)
public abstract AuditPreferences getPreferences()
public abstract ExtensionBeanFactory getDefaultExtensionBeanFactory()
public abstract ProfileRepository getDefaultProfileRepository()
public abstract ModelTypeFactory createModelTypeFactory(ModelType... modelTypes)
ModelTypeFactory with specific model types and the 
 standard container types (root, workspace, project, and directory).public abstract ModelTypeFactory getDefaultModelTypeFactory()
ModelTypeFactory which uses all model types
 registered with Audit.public abstract Profile createProfile(java.lang.String name)
Profile with all registered beans included and
 enabled.name - The name of the profile.public abstract Profile createProfile(java.lang.String name, BeanDefinition... beans)
Profile with beans from specified bean
 definitions included and enabled.name - The name of the profile.beans - The bean definitions for the profile.public abstract Profile createProfile(java.lang.String name, java.lang.String... ids)
Profile with all registered beans included and with
 beans from specified ids, if any, enabled.name - The name of the profile.ids - Beans to enable for the profile.public abstract Auditor createAuditor(ModelTypeFactory factory, java.lang.Class<? extends Analyzer>... analyzers)
Auditor. If no analyzers are specified, then all
 registered analyzers are included.factory - The factory for the models to audit.public abstract Auditor createAuditor(java.lang.Class<? extends Analyzer>... analyzers)
Auditor which uses the default model type factory.
 If no analyzers are specified, then all registered analyzers are included.public abstract AuditModel createModel()
AuditModel.public abstract AuditModel runShowLogPage(Context context, Auditor auditor, java.lang.String label, java.lang.Thread.UncaughtExceptionHandler handler)
Auditor, and runs the
 audit. If a log page already exists for the label and the associated
 auditor is still auditing, that audit is cancelled, and that auditor
 is replaced by the auditor passed to this method.context - The current IDE context.auditor - The auditor to run the audit.label - The label for the log page.handler - A handler for uncaught exceptions, or null for a default.AuditModel, attached to the auditor, shown in the page.java.lang.IllegalStateException - if the auditor is already running.public abstract void showLogPage(Context context, Auditor auditor, AuditModel model, java.lang.String label)
Auditor and model. The caller is responsible for attaching the model to 
 the auditor and for running the audit.context - The current IDE context.auditor - The auditor running the audit.model - The AuditModel, attached to the auditor, to be shown.label - The label for the log page.public abstract Transformer createTransformer()
Transformer.public abstract java.util.Collection<java.net.URL> getStyleSheets()
public abstract java.util.Collection<java.net.URL> getProfileStyleSheets()
public abstract java.util.Map<java.lang.Class<?>,BeanCustomizer> getBeanCustomizers()