public abstract class PolygeneApplicationBootstrap extends Object
Steps to export Polygene service:
PolygeneApplicationBootstrap
.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:polygene="http://polygene.apache.org/schema/polygene/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://polygene.apache.org/schema/polygene/spring http://polygene.apache.org/schema/polygene/spring/spring-0.5.xsd">
<!-- class that implements PolygeneApplicationBootstrap -->
<polygene:bootstrap class="org.apache.polygene.library.spring.bootstrap.PolygeneTestBootstrap"/>
<bean id="commentServiceHolder" class="org.apache.polygene.library.spring.bootstrap.CommentServiceHolder">
<constructor-arg ref="commentService"/> <!-- Reference Polygene comment service -->
</bean>
Importing Spring beans as services
ApplicationContextAware
.ModuleAssembly.importedServices(Class...)
.Look at org.apache.polygene.library.spring.bootstrap.PolygeneExportServiceTest for sample implementation.
Constructor and Description |
---|
PolygeneApplicationBootstrap() |
Modifier and Type | Method and Description |
---|---|
abstract void |
assemble(ApplicationAssembly applicationAssembly)
Assembles Polygene application.
|
public abstract void assemble(ApplicationAssembly applicationAssembly) throws AssemblyException
applicationAssembly
- Polygene application assembly. Must not be null
.AssemblyException
- Thrown if assemblies fails.