Commit be832f89 authored by Philippe Merle's avatar Philippe Merle

Rollback release.

parent 4a52eaae

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

OW2 FraSCAti Assembly Factory
Copyright (C) 2007-2010 INRIA, USTL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Author: Damien Fournier
Philippe Merle
Nicolas Dolet
Christophe Demarey
Assembly Factory 1.3
The Assembly Factory provides support for creating SCA components from SCA
assembly definitions which comply with the SCA architecture description
language specification 1.0. The Assembly Factory parses assembly definitions,
validates them, then performs calls to the Tinfi kernel and the Fractal Binding
Factory in order to generate SCA components implementation and/or create
component instances.
The Assembly Factory is implemented as SCA components too.
Table of Content
1. Requirements
2. Introduction
3. Compiling and installing Assembly Factory artifacts
4. Running the sample applications
5. Using the Assembly Factory to generate SCA assemblies
6. Using the Assembly Factory to instantiate SCA assemblies
7. References
1. Requirements
Maven 2.0.9 is required to compile and run the Assembly Factory.
See for instructions on downloading and using Maven.
2. Introduction
The Assembly Factory is composed of three main Maven artifacts:
- the core-factory : This is the main module containing implementation
of the assembly factory allowing to build SCA component instances.
- the generate-factory : This is a personality of the assembly factory
which allows to generate and compile SCA components. The generate factory
is compiled as a Maven plugin. It permits to generate easily SCA component
code. Since the core factory does not generate SCA components, building
SCA component instances with the core factory always requires to use the
generate factory plugin in the build of your maven project.
- the runtime factory : This module combines both the advantages of the core
and generate modules. It generates, compiles components and executes the
Several sample applications are also available in the assembly-factory/
examples directory.
3. Compiling and installing Assembly Factory artifacts
To compile and install the core, generate, and runtime factory modules in your
Maven local repository, from the root directory of the Assembly factory, type:
mvn clean install
4. Running the sample applications
Sample applications are available in the assembly-factory/examples
directory. Those samples can be installed into your local Maven
directory by typing "mvn install" from the examples directory.
Each sample can be run separately from their directory using the command
"mvn -Pfactory:run"
TODO: mvn -Pfactory:launcher
5. Using the Assembly Factory to generate SCA assemblies
Since the generate-factory plug-in provides support for generating SCA
components source code, it can be used for your own FraSCAti project.
To use the generate-factory plug-in, just add the following lines into
the build description of your Maven project:
01 <plugin>
02 <groupId>org.ow2.frascati.factory</groupId>
03 <artifactId>frascati-factory-tools</artifactId>
04 <version>1.1</version>
05 <executions>
06 <execution>
07 <id>generate-factory</id>
08 <phase>generate-sources</phase>
09 <goals>
10 <goal>compile</goal>
11 </goals>
12 </execution>
13 </executions>
14 <configuration>
15 <factory>GenerateFactory</factory>
16 <srcs>
17 <src>src/main/java</src>
18 </srcs>
19 <libs>
20 <lib>src/main/resources</lib>
21 </libs>