Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.conf
Interface ConfigLoaderDelegate

All Known Implementing Classes:
  RuntimeLoadDelegate

    public interface ConfigLoaderDelegate

Interface that defines callback API used by ConfigLoader to process loaded configuration. Main responsibility of ConfigLoaderDelegate is to create objects, while ConfigLoader is mainly concerned with XML parsing.

Author:
  Andrei Adamchik

Method Summary
`void` | `finishedLoading()` Callback methods invoked at the end of the configuration processing.
`ConfigStatus` | `getStatus()`
`boolean` | `loadError(java.lang.Throwable th)` Gives delegate an opportunity to process the error.
`void` | `shouldLinkDataMap(java.lang.String domainName, java.lang.String nodeName, java.lang.String mapName)`
`void` | `shouldLoadDataDomain(java.lang.String name)` Callback method invoked when a domain is encountered in the configuration file.
`void` | `shouldLoadDataDomainProperties(java.lang.String domainName, java.util.Map properties)`
`void` | `shouldLoadDataMaps(java.lang.String domainName, java.util.Map locations)`
`void` | `shouldLoadDataNode(java.lang.String domainName, java.lang.String nodeName, java.lang.String dataSource, java.lang.String adapter, java.lang.String factory)`
`void` | `shouldLoadProjectVersion(java.lang.String version)` Callback method invoked when a project version is read.
`void` | `shouldRegisterDataView(java.lang.String name, java.lang.String location)` Callback method invoked when a DataView reference is encountered in the configuration file.
`void` | `startedLoading()` Callback methods invoked in the beginning of the configuration processing.

Method Detail

### startedLoading

    void startedLoading()

  Callback methods invoked in the beginning of the configuration processing.

### finishedLoading

    void finishedLoading()

  Callback methods invoked at the end of the configuration processing.

### shouldLoadProjectVersion

    void shouldLoadProjectVersion(java.lang.String version)

  Callback method invoked when a project version is read.

  Since:
    1.1

### shouldLoadDataDomain

    void shouldLoadDataDomain(java.lang.String name)

  Callback method invoked when a domain is encountered in the configuration file.

  Parameters:
    `name` - domain name.

### shouldRegisterDataView

    void shouldRegisterDataView(java.lang.String name,
                                java.lang.String location)

  Callback method invoked when a DataView reference is encountered in the configuration file.

  Since:
    1.1

### shouldLoadDataMaps

    void shouldLoadDataMaps(java.lang.String domainName,
                            java.util.Map locations)

  Since:
    1.1

### shouldLoadDataDomainProperties

    void shouldLoadDataDomainProperties(java.lang.String domainName,
                                        java.util.Map properties)

  Since:
    1.1

### shouldLoadDataNode

    void shouldLoadDataNode(java.lang.String domainName,
                            java.lang.String nodeName,
                            java.lang.String dataSource,
                            java.lang.String adapter,
                            java.lang.String factory)

### shouldLinkDataMap

    void shouldLinkDataMap(java.lang.String domainName,
                           java.lang.String nodeName,
                           java.lang.String mapName)

### loadError

    boolean loadError(java.lang.Throwable th)

  Gives delegate an opportunity to process the error.

  Parameters:
    `th` -
  Returns:
    boolean indicating whether ConfigLoader should proceed with further processing. Ultimately it is up to the ConfigLoader to make this decision.

### getStatus

    ConfigStatus getStatus()

  Returns:
    status object indicating the state of the configuration loading.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2006 Apache.org All Rights Reserved.