01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.romaframework.core.aspect;
18:
19: import java.lang.annotation.Annotation;
20:
21: import org.romaframework.core.config.Serviceable;
22: import org.romaframework.core.schema.SchemaClassDefinition;
23: import org.romaframework.core.schema.SchemaElement;
24: import org.romaframework.core.schema.SchemaEvent;
25: import org.romaframework.core.schema.SchemaField;
26: import org.romaframework.xml.config.XmlConfigActionType;
27: import org.romaframework.xml.config.XmlConfigClassType;
28: import org.romaframework.xml.config.XmlConfigFieldType;
29:
30: /**
31: * Interface to define an Aspect
32: *
33: * @author Luca Garulli (luca.garulli@assetdata.it)
34: */
35: public interface Aspect extends Serviceable {
36: public String aspectName();
37:
38: public void configClass(SchemaClassDefinition iClass,
39: Annotation iAnnotation, XmlConfigClassType iNode);
40:
41: public void configField(SchemaField iField,
42: Annotation iFieldAnnotation, Annotation iGenericAnnotation,
43: Annotation iGetterAnnotation, XmlConfigFieldType iNode);
44:
45: public void configAction(SchemaElement iAction,
46: Annotation iActionAnnotation,
47: Annotation iGenericAnnotation, XmlConfigActionType iNode);
48:
49: public void configEvent(SchemaEvent iEvent,
50: Annotation iEventAnnotation, Annotation iGenericAnnotation,
51: XmlConfigActionType iNode);
52: }
|