|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.audit.service.Profile
A set of analyzers with category, rule, and metric bean properties configured to specific values. A profile is essentially an analyzer factory which instantiates exactly one analyzer for each analyzer class registered with Audit and configures the properties of its beans.
Profiles are typically created with the URL of a profile file by the profile repository. The profile name and the bean property values are lazily loaded from the profile file. An auditor causes the profile to instantiate the analyzers and configure the bean properties at the start of an audit, and to release the analyzer and bean instances to the garbage collector at the end of an audit. If rerun, the auditor will cause the same profile to instantiate and configure new instances. A profile can be created in one of three ways:
Analyzer
Nested Class Summary | |
static class |
Profile.Setter
An XML encodable setter class. |
Field Summary | |
static AuditType |
AUDIT
|
static AuditType |
METRICS
|
Constructor Summary | |
Profile(AuditType type,
java.lang.String name)
Creates a new profile with all registered analyzers and with all beans in their default state, then enables all rules or metrics. |
|
Profile(AuditType type,
java.lang.String name,
Analyzer analyzer)
Creates a new profile with a specific analyzer. |
|
Profile(AuditType type,
java.lang.String name,
Analyzer[] analyzers)
Creates a new profile with specific analyzers. |
|
Profile(AuditType type,
java.net.URL url)
Creates a new profile with all registered analyzers configured from a profile file. |
|
Profile(AuditType type,
java.net.URL url,
java.lang.String name)
Creates a new profile with all registered analyzers configured from a profile file. |
Method Summary | |
java.util.Iterator |
analyzers()
Iterates the analyzers of this profile. |
java.util.Iterator |
beans()
Iterates the profileable beans of this profile. |
void |
clear()
Clears the instances of this profile. |
Profile |
createCopyAndRevert(java.lang.String name)
Creates a new profile that is an identical copy of this profile, including any modified bean properties, and reverts this profile to its saved state. |
boolean |
equals(java.lang.Object object)
|
Analyzer |
getAnalyzer(java.lang.Class analyzerClass)
Gets the instance of an analyzer class from this profile. |
Profileable |
getBean(java.lang.Class analyzerClass,
java.lang.String name)
Gets an instance of a bean, a metric or rule, from this profile. |
java.lang.String |
getName()
Gets the name of this profile. |
AuditType |
getType()
Gets the type of this profile. |
java.net.URL |
getURL()
Gets the URL where the contents of this profile are saved, or null if new. |
int |
hashCode()
|
boolean |
isModified()
Gets whether properties of the beans in this profile have been modified from their saved state. |
boolean |
isPredefined()
Gets whether this profile is predefined. |
void |
revert()
|
void |
save(java.net.URL url)
|
void |
setModified(boolean modified)
Sets whether properties of the beans in this profile have been modified from their saved state. |
void |
setPredefined(boolean predefined)
Sets whether this profile is predefined. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final AuditType AUDIT
public static final AuditType METRICS
Constructor Detail |
public Profile(AuditType type, java.net.URL url)
type
- The feature type (Audit or Metrics) of this profile.url
- The url of a profile file.public Profile(AuditType type, java.net.URL url, java.lang.String name)
name
should be supplied so
that the file does not have to be read to determine the name.
type
- The feature type (Audit or Metrics) of this profile.url
- The url of a profile file.name
- The name of the profile, or null to use the name in the file.public Profile(AuditType type, java.lang.String name, Analyzer analyzer)
type
- The feature type (Audit or Metrics) of this profile.name
- The name of this profile.analyzer
- The single analyzer for this profile.public Profile(AuditType type, java.lang.String name, Analyzer[] analyzers)
type
- The feature type (Audit or Metrics) of this profile.name
- The name of this profile.analyzers
- An array of one or more analyzers for this profile.public Profile(AuditType type, java.lang.String name)
type
- The feature type (AUDIT or METRICS) of this profile.name
- The name of this profile.Method Detail |
public Profile createCopyAndRevert(java.lang.String name)
name
- The name for the copy.
java.lang.IllegalArgumentException
- if the profile is not reusable.public java.lang.String getName()
public boolean isModified()
public void setPredefined(boolean predefined)
public boolean isPredefined()
public void setModified(boolean modified)
modified
- true if properties have been modified.public AuditType getType()
public java.net.URL getURL()
public Analyzer getAnalyzer(java.lang.Class analyzerClass)
analyzerClass
- The class for which to get the instance.
public Profileable getBean(java.lang.Class analyzerClass, java.lang.String name)
public java.util.Iterator analyzers()
public java.util.Iterator beans()
public void clear()
public void revert()
public void save(java.net.URL url) throws java.io.IOException
java.io.IOException
public boolean equals(java.lang.Object object)
public int hashCode()
public java.lang.String toString()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.