587
|
1 |
/*
|
|
2 |
* Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
628
|
14 |
* Description:
|
587
|
15 |
*
|
|
16 |
*/
|
|
17 |
package com.nokia.helium.metadata;
|
|
18 |
|
628
|
19 |
import javax.persistence.EntityManagerFactory;
|
587
|
20 |
|
628
|
21 |
import org.apache.tools.ant.Task;
|
587
|
22 |
|
|
23 |
/**
|
628
|
24 |
* Interface used by the MetadataRecordTask to extract information and
|
|
25 |
* get them injected into the databased.
|
|
26 |
*
|
587
|
27 |
*/
|
|
28 |
public interface MetaDataInput {
|
628
|
29 |
|
587
|
30 |
/**
|
628
|
31 |
* This methods is run for each MetadataInput nested into the MetadataRecordTask
|
|
32 |
* to extract data from log file for example. The factory is the entry point to
|
|
33 |
* the database.
|
|
34 |
* @param task an ant task running the plugging, mainly used to implement logging.
|
|
35 |
* @param factory the factory representing the access to the database.
|
|
36 |
* @throws MetadataException
|
587
|
37 |
*/
|
628
|
38 |
void extract(Task task, EntityManagerFactory factory) throws MetadataException;
|
|
39 |
}
|