| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdeveloper.audit.service.Profile
oracle.jdevimpl.audit.core.DefaultProfile
public class DefaultProfile
| Field Summary | |
|---|---|
| static java.lang.String | FORMAT_VERSIONThe current version of the Audit profile file format. | 
| Constructor Summary | |
|---|---|
| DefaultProfile(Profile profile) | |
| DefaultProfile(ProfileDefinition definition,
               Profile profile) | |
| DefaultProfile(ProfileDefinition definition,
               java.lang.String name,
               java.net.URL url)Creates a new predefined profile with all registered bean definitions configured from a specified file. | |
| DefaultProfile(ProfileDefinition definition,
               java.lang.String name,
               java.net.URL url,
               BeanDefinition[] definitions) | |
| DefaultProfile(java.lang.String name)Creates a new Profilewith all registered bean beans included and
 enabled. | |
| DefaultProfile(java.lang.String name,
               BeanDefinition[] beans)Creates a new Profilewith the beans with specified definitions
 included and enabled. | |
| DefaultProfile(java.lang.String name,
               java.lang.String[] ids)Creates a new Profilewith all registered bean beans included and
 the beans with specified ids enabled. | |
| DefaultProfile(java.lang.String name,
               java.net.URL url)Creates a new profile with all registered analyzers configured from a profile file. | |
| DefaultProfile(java.net.URL url) | |
| Method Summary | |
|---|---|
|  void | addChangeListener(javax.swing.event.ChangeListener listener)Adds a change listener to be notified when changes are applied to this profile. | 
|  void | applyChanges(ProfileTransaction transaction)Apply the changes in a transaction to this profile. | 
|  ExtensionBean | createBean(BeanDefinition definition,
           boolean force,
           java.util.Map<java.lang.String,ExtensionBean> context)Creates an instance of a bean in this profile. | 
|  java.util.Map<java.lang.String,ExtensionBean> | createBeans(boolean force)Creates instances of all beans in this profile. | 
|  ProfileTransaction | createTransaction()Creates a transaction for this profile. | 
|  boolean | equals(java.lang.Object object) | 
|  ValueHandle | getChangedValue(java.lang.String id,
                java.lang.String propertyName)Gets the value of a property of a bean of this profile changed from its default value, null if not changed. | 
|  MultiMap<java.lang.String,ValueHandle> | getChangedValues()Gets the properties of beans of this profile changed from their default values. | 
|  java.lang.Object | getDefaultValue(BeanDefinition definition,
                java.lang.String propertyName)Gets the default value of a property of a bean of this profile. | 
|  ProfileDefinition | getDefinition()Gets the definition of this profile, or null if not a predefined profile. | 
|  BeanDefinition | getDefinition(java.lang.String id)Gets the definition of a specified bean in this profile, or null if none. | 
|  java.util.Collection<BeanDefinition> | getDefinitions()Gets the definitions of all beans in this profile. | 
|  java.lang.String | getId()Gets the id of this profile, or null if not a predefined profile. | 
|  java.lang.String | getName()Gets the name of this profile. | 
|  java.net.URL | getURL()Gets the URL from which to load properties of this profile, or null if this profile is not associated with a file. | 
|  int | hashCode() | 
|  boolean | isEnabled(java.lang.String id)Gets whether a bean in this profile is enabled. | 
|  void | removeChangeListener(javax.swing.event.ChangeListener listener)Adds a change listener to be notified when changes are applied to this profile. | 
|  void | save(java.net.URL url)Saves this profile. | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String FORMAT_VERSION
XMLEncoder/XMLDecoder.
 9.0.5 did not include a foramt identifier (version).
 | 10.1.3 | Boolean identifying profile as predefined replaced by a String key identifying predefined profile. Format identifier added. | 
| 10.1.3-1 | Added support for dynamic property setters. | 
| 11.1.1 | Disassociated setters from analyzers. | 
| 11.1.1-1 | Added qualifying prefix to bean names. | 
| 11.1.2 | New file format. | 
| Constructor Detail | 
|---|
public DefaultProfile(java.net.URL url)
               throws java.io.IOException
java.io.IOException
public DefaultProfile(java.lang.String name,
                      java.net.URL url)
               throws java.io.IOException
name - The name of the profile.url - The url of a profile file.
java.io.IOException
public DefaultProfile(ProfileDefinition definition,
                      java.lang.String name,
                      java.net.URL url)
               throws java.io.IOException
definition - The definition of this profile.name - The name of the profile.url - The url of a profile file.
java.io.IOExceptionpublic DefaultProfile(java.lang.String name)
Profile with all registered bean beans included and
 enabled.
name - The name of the profile.
public DefaultProfile(java.lang.String name,
                      java.lang.String[] ids)
Profile with all registered bean beans included and
 the beans with specified ids enabled. If no ids are specified, none are
 enabled.
name - The name of the profile.ids - The bean definitions to enable for the profile.
public DefaultProfile(java.lang.String name,
                      BeanDefinition[] beans)
Profile with the beans with specified definitions
 included and enabled. If no bean definitions are specified, then all
 registered beans are included and enabled.
name - The name of the profile.beans - The bean definitions for the profile.public DefaultProfile(Profile profile)
public DefaultProfile(ProfileDefinition definition,
                      Profile profile)
public DefaultProfile(ProfileDefinition definition,
                      java.lang.String name,
                      java.net.URL url,
                      BeanDefinition[] definitions)
               throws java.io.IOException
java.io.IOException| Method Detail | 
|---|
public ProfileDefinition getDefinition()
Profile
getDefinition in class Profilepublic java.lang.String getId()
Profile
getId in class Profilepublic java.lang.String getName()
Profile
getName in class Profilepublic java.net.URL getURL()
Profile
getURL in class Profilepublic java.util.Collection<BeanDefinition> getDefinitions()
Profile
getDefinitions in class Profilepublic BeanDefinition getDefinition(java.lang.String id)
Profile
getDefinition in class Profileid - the id of the bean.public java.util.Map<java.lang.String,ExtensionBean> createBeans(boolean force)
ProfileWhen force is true, loading classes is first tried with the Audit class loader before an unloaded extension is loaded.
createBeans in class Profileforce - Whether to load the extension defining this bean if needed.
public ExtensionBean createBean(BeanDefinition definition,
                                boolean force,
                                java.util.Map<java.lang.String,ExtensionBean> context)
ProfileWhen force is true, loading classes is first tried with the Audit class loader before an unloaded extension is loaded.
The created bean is added to the context map, referenced beans are taken from the context map if present, otherwise they are created and added to the context map.
createBean in class Profiledefinition - The definition of the bean to load.force - Whether to load the extension defining this bean if needed.context - Context map for the created bean.
public java.lang.Object getDefaultValue(BeanDefinition definition,
                                        java.lang.String propertyName)
                                 throws java.beans.IntrospectionException,
                                        java.lang.reflect.InvocationTargetException,
                                        java.lang.IllegalAccessException
Profile
getDefaultValue in class Profiledefinition - The definition of the bean.propertyName - The name of the property.
java.beans.IntrospectionException
java.lang.reflect.InvocationTargetException
java.lang.IllegalAccessExceptionpublic boolean isEnabled(java.lang.String id)
Profile
isEnabled in class Profileid - the id of the bean.public MultiMap<java.lang.String,ValueHandle> getChangedValues()
Profile
getChangedValues in class Profile
public ValueHandle getChangedValue(java.lang.String id,
                                   java.lang.String propertyName)
Profile
getChangedValue in class Profileid - the id of the bean.propertyName - the name of the property.public ProfileTransaction createTransaction()
Profile
createTransaction in class Profilepublic void addChangeListener(javax.swing.event.ChangeListener listener)
Profile
addChangeListener in class Profilepublic void removeChangeListener(javax.swing.event.ChangeListener listener)
Profile
removeChangeListener in class Profilepublic void applyChanges(ProfileTransaction transaction)
Profile
applyChanges in class Profilepublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
public void save(java.net.URL url)
          throws java.io.IOException
Profile
save in class Profilejava.io.IOException| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||