| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.5.0_06) on Wed Jul 19 14:45:45 EDT 2006 --> |
| <TITLE> |
| DefaultConfiguration (Apache Cayenne API Documentation - v.2.0-incubating-SNAPSHOT) |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.apache.cayenne.conf.DefaultConfiguration class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../apache-javadoc.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="DefaultConfiguration (Apache Cayenne API Documentation - v.2.0-incubating-SNAPSHOT)"; |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/cayenne/conf/DBCPDataSourceFactory.html" title="class in org.apache.cayenne.conf"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/cayenne/conf/DriverDataSourceFactory.html" title="class in org.apache.cayenne.conf"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/cayenne/conf/DefaultConfiguration.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="DefaultConfiguration.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.cayenne.conf.Configuration">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.cayenne.conf</FONT> |
| <BR> |
| Class DefaultConfiguration</H2> |
| <PRE> |
| java.lang.Object |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">org.apache.cayenne.conf.Configuration</A> |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.cayenne.conf.DefaultConfiguration</B> |
| </PRE> |
| <DL> |
| <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/cayenne/conf/BasicServletConfiguration.html" title="class in org.apache.cayenne.conf">BasicServletConfiguration</A>, <A HREF="../../../../org/apache/cayenne/conf/FileConfiguration.html" title="class in org.apache.cayenne.conf">FileConfiguration</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>DefaultConfiguration</B><DT>extends <A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></DL> |
| </PRE> |
| |
| <P> |
| Subclass of Configuration that uses the System CLASSPATH to locate resources. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Author:</B></DT> |
| <DD>Andrei Adamchik</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TH> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_org.apache.cayenne.conf.Configuration"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Fields inherited from class org.apache.cayenne.conf.<A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#ACCEPT_ALL_DATAVIEWS">ACCEPT_ALL_DATAVIEWS</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#configurationShutdownHook">configurationShutdownHook</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#dataDomains">dataDomains</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#dataViewLocations">dataViewLocations</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#DEFAULT_CONFIGURATION_CLASS">DEFAULT_CONFIGURATION_CLASS</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#DEFAULT_DOMAIN_FILE">DEFAULT_DOMAIN_FILE</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#DEFAULT_LOGGING_PROPS_FILE">DEFAULT_LOGGING_PROPS_FILE</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#domainConfigurationName">domainConfigurationName</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#eventManager">eventManager</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#ignoringLoadFailures">ignoringLoadFailures</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#loaderDelegate">loaderDelegate</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#loadStatus">loadStatus</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#overrideFactory">overrideFactory</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#projectVersion">projectVersion</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#saverDelegate">saverDelegate</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#sharedConfiguration">sharedConfiguration</A></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#DefaultConfiguration()">DefaultConfiguration</A></B>()</CODE> |
| |
| <BR> |
| Default constructor.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#DefaultConfiguration(java.lang.String)">DefaultConfiguration</A></B>(java.lang.String domainConfigurationName)</CODE> |
| |
| <BR> |
| Constructor with a named domain configuration resource.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#DefaultConfiguration(java.lang.String, org.apache.cayenne.util.ResourceLocator)">DefaultConfiguration</A></B>(java.lang.String domainConfigurationName, |
| <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util">ResourceLocator</A> locator)</CODE> |
| |
| <BR> |
| Creates DefaultConfiguration with specified cayenne project file name and |
| ResourceLocator.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#addClassPath(java.lang.String)">addClassPath</A></B>(java.lang.String customPath)</CODE> |
| |
| <BR> |
| Adds a custom path for class path lookups.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#addResourcePath(java.lang.String)">addResourcePath</A></B>(java.lang.String path)</CODE> |
| |
| <BR> |
| Adds the given String as a custom path for resource lookups.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#canInitialize()">canInitialize</A></B>()</CODE> |
| |
| <BR> |
| Default implementation of <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#canInitialize()"><CODE>Configuration.canInitialize()</CODE></A>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#didInitialize()">didInitialize</A></B>()</CODE> |
| |
| <BR> |
| Default implementation of <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#didInitialize()"><CODE>Configuration.didInitialize()</CODE></A>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.io.InputStream</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#getDomainConfiguration()">getDomainConfiguration</A></B>()</CODE> |
| |
| <BR> |
| Returns the domain configuration as a stream or <code>null</code> if it cannot be |
| found.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.io.InputStream</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#getMapConfiguration(java.lang.String)">getMapConfiguration</A></B>(java.lang.String location)</CODE> |
| |
| <BR> |
| Returns the <A HREF="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map"><CODE>DataMap</CODE></A> configuration from a |
| specified location or <code>null</code> if it cannot be found.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util">ResourceLocator</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#getResourceLocator()">getResourceLocator</A></B>()</CODE> |
| |
| <BR> |
| Returns the default ResourceLocator configured for CLASSPATH lookups.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.io.InputStream</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#getViewConfiguration(java.lang.String)">getViewConfiguration</A></B>(java.lang.String location)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#initialize()">initialize</A></B>()</CODE> |
| |
| <BR> |
| Initializes all Cayenne resources.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#setResourceLocator(org.apache.cayenne.util.ResourceLocator)">setResourceLocator</A></B>(<A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util">ResourceLocator</A> locator)</CODE> |
| |
| <BR> |
| Sets the specified <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util"><CODE>ResourceLocator</CODE></A>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#toString()">toString</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_org.apache.cayenne.conf.Configuration"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class org.apache.cayenne.conf.<A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#addDomain(org.apache.cayenne.access.DataDomain)">addDomain</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#bootstrapSharedConfiguration(java.lang.Class)">bootstrapSharedConfiguration</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#configureCommonLogging()">configureCommonLogging</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#configureCommonLogging(java.net.URL)">configureCommonLogging</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#configureLogging()">configureLogging</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getDataSourceFactory()">getDataSourceFactory</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getDataViewLocations()">getDataViewLocations</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getDomain()">getDomain</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getDomain(java.lang.String)">getDomain</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getDomainConfigurationName()">getDomainConfigurationName</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getDomains()">getDomains</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getEventManager()">getEventManager</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getLoaderDelegate()">getLoaderDelegate</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getLoadStatus()">getLoadStatus</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getLoggingLevel()">getLoggingLevel</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getProjectVersion()">getProjectVersion</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getResourceLoader()">getResourceLoader</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getSaverDelegate()">getSaverDelegate</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getSharedConfiguration()">getSharedConfiguration</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#initializeSharedConfiguration()">initializeSharedConfiguration</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#initializeSharedConfiguration(java.lang.Class)">initializeSharedConfiguration</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#initializeSharedConfiguration(org.apache.cayenne.conf.Configuration)">initializeSharedConfiguration</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#installConfigurationShutdownHook()">installConfigurationShutdownHook</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#isIgnoringLoadFailures()">isIgnoringLoadFailures</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#isLoggingConfigured()">isLoggingConfigured</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#loadDataView(org.apache.cayenne.dataview.DataView)">loadDataView</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#loadDataView(org.apache.cayenne.dataview.DataView, org.apache.commons.collections.Predicate)">loadDataView</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#removeDomain(java.lang.String)">removeDomain</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setDataSourceFactory(org.apache.cayenne.conf.DataSourceFactory)">setDataSourceFactory</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setDataViewLocations(java.util.Map)">setDataViewLocations</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setDomainConfigurationName(java.lang.String)">setDomainConfigurationName</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setEventManager(org.apache.cayenne.event.EventManager)">setEventManager</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setIgnoringLoadFailures(boolean)">setIgnoringLoadFailures</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setLoaderDelegate(org.apache.cayenne.conf.ConfigLoaderDelegate)">setLoaderDelegate</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setLoadStatus(org.apache.cayenne.conf.ConfigStatus)">setLoadStatus</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setLoggingConfigured(boolean)">setLoggingConfigured</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setLoggingLevel(org.apache.log4j.Level)">setLoggingLevel</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setProjectVersion(java.lang.String)">setProjectVersion</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#setSaverDelegate(org.apache.cayenne.conf.ConfigSaverDelegate)">setSaverDelegate</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#shutdown()">shutdown</A>, <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#uninstallConfigurationShutdownHook()">uninstallConfigurationShutdownHook</A></CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="DefaultConfiguration()"><!-- --></A><H3> |
| DefaultConfiguration</H3> |
| <PRE> |
| public <B>DefaultConfiguration</B>()</PRE> |
| <DL> |
| <DD>Default constructor. Simply calls |
| <A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#DefaultConfiguration(java.lang.String)"><CODE>DefaultConfiguration(String)</CODE></A> with |
| <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#DEFAULT_DOMAIN_FILE"><CODE>Configuration.DEFAULT_DOMAIN_FILE</CODE></A> as argument. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#Configuration()"><CODE>Configuration.Configuration()</CODE></A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DefaultConfiguration(java.lang.String)"><!-- --></A><H3> |
| DefaultConfiguration</H3> |
| <PRE> |
| public <B>DefaultConfiguration</B>(java.lang.String domainConfigurationName)</PRE> |
| <DL> |
| <DD>Constructor with a named domain configuration resource. Simply calls |
| <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#Configuration(java.lang.String)"><CODE>Configuration.Configuration(String)</CODE></A>. |
| <P> |
| <DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/cayenne/ConfigurationException.html" title="class in org.apache.cayenne">ConfigurationException</A></CODE> - when <code>domainConfigurationName</code> is |
| <code>null</code>.<DT><B>See Also:</B><DD><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#Configuration(java.lang.String)"><CODE>Configuration.Configuration(String)</CODE></A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="DefaultConfiguration(java.lang.String, org.apache.cayenne.util.ResourceLocator)"><!-- --></A><H3> |
| DefaultConfiguration</H3> |
| <PRE> |
| public <B>DefaultConfiguration</B>(java.lang.String domainConfigurationName, |
| <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util">ResourceLocator</A> locator)</PRE> |
| <DL> |
| <DD>Creates DefaultConfiguration with specified cayenne project file name and |
| ResourceLocator. |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>1.2</DD> |
| </DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="addClassPath(java.lang.String)"><!-- --></A><H3> |
| addClassPath</H3> |
| <PRE> |
| public void <B>addClassPath</B>(java.lang.String customPath)</PRE> |
| <DL> |
| <DD>Adds a custom path for class path lookups. Format should be "my/package/name" |
| <i>without</i> leading "/". This allows for easy customization of custom search |
| paths after Constructor invocation: |
| |
| <pre> |
| conf = new DefaultConfiguration(); |
| conf.addClassPath("my/package/name"); |
| Configuration.initializeSharedConfiguration(conf); |
| </pre> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="addResourcePath(java.lang.String)"><!-- --></A><H3> |
| addResourcePath</H3> |
| <PRE> |
| public void <B>addResourcePath</B>(java.lang.String path)</PRE> |
| <DL> |
| <DD>Adds the given String as a custom path for resource lookups. The path can be |
| relative or absolute and is <i>not </i> checked for existence. Depending on the |
| underlying ResourceLocator configuration this can for instance be a path in the web |
| application context or a filesystem path. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if <code>path</code> is <code>null</code>.<DT><B>Since:</B></DT> |
| <DD>1.2 moved from subclass - FileConfiguration.</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="canInitialize()"><!-- --></A><H3> |
| canInitialize</H3> |
| <PRE> |
| public boolean <B>canInitialize</B>()</PRE> |
| <DL> |
| <DD>Default implementation of <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#canInitialize()"><CODE>Configuration.canInitialize()</CODE></A>. Creates a |
| ResourceLocator suitable for loading from the CLASSPATH, unless it has already been |
| set in a subclass. Always returns <code>true</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#canInitialize()">canInitialize</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initialize()"><!-- --></A><H3> |
| initialize</H3> |
| <PRE> |
| public void <B>initialize</B>() |
| throws java.lang.Exception</PRE> |
| <DL> |
| <DD>Initializes all Cayenne resources. Loads all configured domains and their data |
| maps, initializes all domain Nodes and their DataSources. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#initialize()">initialize</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.Exception</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="didInitialize()"><!-- --></A><H3> |
| didInitialize</H3> |
| <PRE> |
| public void <B>didInitialize</B>()</PRE> |
| <DL> |
| <DD>Default implementation of <A HREF="../../../../org/apache/cayenne/conf/Configuration.html#didInitialize()"><CODE>Configuration.didInitialize()</CODE></A>. Currently does |
| nothing except logging. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#didInitialize()">didInitialize</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getResourceLocator()"><!-- --></A><H3> |
| getResourceLocator</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util">ResourceLocator</A> <B>getResourceLocator</B>()</PRE> |
| <DL> |
| <DD>Returns the default ResourceLocator configured for CLASSPATH lookups. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getResourceLocator()">getResourceLocator</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setResourceLocator(org.apache.cayenne.util.ResourceLocator)"><!-- --></A><H3> |
| setResourceLocator</H3> |
| <PRE> |
| protected void <B>setResourceLocator</B>(<A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util">ResourceLocator</A> locator)</PRE> |
| <DL> |
| <DD>Sets the specified <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util"><CODE>ResourceLocator</CODE></A>. Currently called from |
| <A HREF="../../../../org/apache/cayenne/conf/DefaultConfiguration.html#initialize()"><CODE>initialize()</CODE></A>. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDomainConfiguration()"><!-- --></A><H3> |
| getDomainConfiguration</H3> |
| <PRE> |
| protected java.io.InputStream <B>getDomainConfiguration</B>()</PRE> |
| <DL> |
| <DD>Returns the domain configuration as a stream or <code>null</code> if it cannot be |
| found. Uses the configured <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util"><CODE>ResourceLocator</CODE></A> to find the file. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getDomainConfiguration()">getDomainConfiguration</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMapConfiguration(java.lang.String)"><!-- --></A><H3> |
| getMapConfiguration</H3> |
| <PRE> |
| protected java.io.InputStream <B>getMapConfiguration</B>(java.lang.String location)</PRE> |
| <DL> |
| <DD>Returns the <A HREF="../../../../org/apache/cayenne/map/DataMap.html" title="class in org.apache.cayenne.map"><CODE>DataMap</CODE></A> configuration from a |
| specified location or <code>null</code> if it cannot be found. Uses the |
| configured <A HREF="../../../../org/apache/cayenne/util/ResourceLocator.html" title="class in org.apache.cayenne.util"><CODE>ResourceLocator</CODE></A> to find the file. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getMapConfiguration(java.lang.String)">getMapConfiguration</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getViewConfiguration(java.lang.String)"><!-- --></A><H3> |
| getViewConfiguration</H3> |
| <PRE> |
| protected java.io.InputStream <B>getViewConfiguration</B>(java.lang.String location)</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html#getViewConfiguration(java.lang.String)">getViewConfiguration</A></CODE> in class <CODE><A HREF="../../../../org/apache/cayenne/conf/Configuration.html" title="class in org.apache.cayenne.conf">Configuration</A></CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toString()"><!-- --></A><H3> |
| toString</H3> |
| <PRE> |
| public java.lang.String <B>toString</B>()</PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>See Also:</B><DD><CODE>Object.toString()</CODE></DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/cayenne/conf/DBCPDataSourceFactory.html" title="class in org.apache.cayenne.conf"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/cayenne/conf/DriverDataSourceFactory.html" title="class in org.apache.cayenne.conf"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/cayenne/conf/DefaultConfiguration.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="DefaultConfiguration.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.cayenne.conf.Configuration">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| <i>Copyright © 2001-2006 <a href= |
| "http://apache.org" target="_top">Apache.org</a> All Rights Reserved.</i> |
| |
| </BODY> |
| </HTML> |