56
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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 "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 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
* Creates trace objects and provides configurable rules for trace object creation
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
package com.nokia.tracecompiler.model;
|
|
20 |
|
|
21 |
/**
|
|
22 |
* Allows registration of rules into the trace object factory
|
|
23 |
*
|
|
24 |
*/
|
|
25 |
public interface TraceObjectRuleFactory {
|
|
26 |
|
|
27 |
/**
|
|
28 |
* Called before the rules of a new object are processed by object factory
|
|
29 |
*
|
|
30 |
* @param object
|
|
31 |
* new object
|
|
32 |
*/
|
|
33 |
public void preProcessNewRules(TraceObject object);
|
|
34 |
|
|
35 |
/**
|
|
36 |
* Called after the rules of a new object are processed by object factory
|
|
37 |
*
|
|
38 |
* @param object
|
|
39 |
* new object
|
|
40 |
*/
|
|
41 |
public void postProcessNewRules(TraceObject object);
|
|
42 |
|
|
43 |
/**
|
|
44 |
* Creates an extension based on extension name
|
|
45 |
*
|
|
46 |
* @param object
|
|
47 |
* the target object
|
|
48 |
* @param name
|
|
49 |
* the name of the extension
|
|
50 |
* @return the new extension
|
|
51 |
*/
|
|
52 |
public TraceModelPersistentExtension createExtension(TraceObject object,
|
|
53 |
String name);
|
|
54 |
|
|
55 |
}
|