Skip to content
This repository was archived by the owner on Sep 13, 2025. It is now read-only.

Commit b2ce346

Browse files
committed
drop support for Seam Render for now
1 parent a68cdc2 commit b2ce346

File tree

12 files changed

+11
-761
lines changed

12 files changed

+11
-761
lines changed

examples/sendmail/pom.xml

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<relativePath>../../pom.xml</relativePath>
1111
</parent>
1212

13-
<groupId>org.jboss.seam.mail</groupId>
1413
<artifactId>seam-mail-example-sendmail</artifactId>
1514
<packaging>war</packaging>
1615

@@ -34,42 +33,13 @@
3433

3534
<dependency>
3635
<groupId>org.jboss.seam.mail</groupId>
37-
<artifactId>seam-mail-core-impl</artifactId>
38-
<!-- FIXME implementation should not be required at compilation time -->
36+
<artifactId>seam-mail-impl</artifactId>
3937
<scope>compile</scope>
4038
</dependency>
4139

4240
<dependency>
43-
<groupId>org.jboss.seam.mail</groupId>
44-
<artifactId>seam-mail-velocity-impl</artifactId>
45-
<scope>compile</scope>
46-
</dependency>
47-
48-
<dependency>
49-
<groupId>org.jboss.seam.mail</groupId>
50-
<artifactId>seam-mail-freemarker-impl</artifactId>
51-
<scope>compile</scope>
52-
</dependency>
53-
54-
<dependency>
55-
<groupId>org.jboss.seam.mail</groupId>
56-
<artifactId>seam-mail-render-impl</artifactId>
57-
<scope>compile</scope>
58-
</dependency>
59-
60-
<dependency>
61-
<groupId>org.jboss.seam.solder</groupId>
62-
<artifactId>seam-solder-api</artifactId>
63-
</dependency>
64-
65-
<dependency>
66-
<groupId>org.jboss.seam.solder</groupId>
67-
<artifactId>seam-solder</artifactId>
68-
</dependency>
69-
70-
<dependency>
71-
<groupId>org.jboss.seam.config</groupId>
72-
<artifactId>seam-config-xml</artifactId>
41+
<groupId>org.jboss.solder</groupId>
42+
<artifactId>solder-impl</artifactId>
7343
</dependency>
7444

7545
<!-- Need to use the injectable logger in Weld Extensions -->
@@ -82,7 +52,6 @@
8252
<dependency>
8353
<groupId>org.hibernate</groupId>
8454
<artifactId>hibernate-validator</artifactId>
85-
<version>4.0.0.GA</version>
8655
<scope>provided</scope>
8756
</dependency>
8857

@@ -100,8 +69,7 @@
10069
<dependency>
10170
<groupId>org.freemarker</groupId>
10271
<artifactId>freemarker</artifactId>
103-
<version>2.3.16</version>
104-
</dependency>
72+
</dependency>
10573

10674
<dependency>
10775
<groupId>junit</groupId>
@@ -196,7 +164,6 @@
196164
<groupId>org.jboss.spec</groupId>
197165
<artifactId>jboss-javaee-6.0</artifactId>
198166
<type>pom</type>
199-
<version>1.0.0.Final</version>
200167
<scope>provided</scope>
201168
</dependency>
202169
</dependencies>
@@ -207,7 +174,6 @@
207174
<plugin>
208175
<groupId>org.codehaus.mojo</groupId>
209176
<artifactId>jboss-maven-plugin</artifactId>
210-
<version>1.4.1</version>
211177
<configuration>
212178
<jbossHome>${jboss.home}</jbossHome>
213179
<serverName>${jboss.domain}</serverName>

examples/sendmail/src/main/java/org/jboss/seam/mail/example/GmailSessionProducer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
import javax.inject.Inject;
2222
import javax.mail.Session;
2323

24-
import org.jboss.seam.logging.Logger;
2524
import org.jboss.seam.mail.core.MailConfig;
2625
import org.jboss.seam.mail.util.MailUtility;
26+
import org.jboss.solder.logging.Logger;
2727

2828
/**
2929
* @author Cody Lerum

examples/sendmail/src/main/java/org/jboss/seam/mail/example/SendMail.java

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@
2929
import org.jboss.seam.mail.core.enumerations.ContentDisposition;
3030
import org.jboss.seam.mail.core.enumerations.MessagePriority;
3131
import org.jboss.seam.mail.templating.freemarker.FreeMarkerTemplate;
32-
import org.jboss.seam.mail.templating.render.RenderTemplate;
3332
import org.jboss.seam.mail.templating.velocity.CDIVelocityContext;
3433
import org.jboss.seam.mail.templating.velocity.VelocityTemplate;
35-
import org.jboss.seam.render.TemplateCompiler;
36-
import org.jboss.seam.solder.resourceLoader.ResourceProvider;
34+
import org.jboss.solder.resourceLoader.ResourceProvider;
3735

3836
/**
3937
* @author Cody Lerum
@@ -51,9 +49,6 @@ public class SendMail {
5149
@Inject
5250
private ResourceProvider resourceProvider;
5351

54-
@Inject
55-
private Instance<TemplateCompiler> templateCompiler;
56-
5752
@Inject
5853
private Instance<Session> session;
5954

@@ -128,33 +123,4 @@ public void sendHTMLwithAlternativeVelocity() throws MalformedURLException {
128123
.addAttachment(new URLAttachment("http://www.seamframework.org/themes/sfwkorg/img/seam_icon_large.png", "seamLogo.png", ContentDisposition.INLINE))
129124
.send(session.get());
130125
}
131-
132-
public void sendHTMLRender() throws MalformedURLException {
133-
mailMessage.get()
134-
.from("[email protected]", "Seam Framework")
135-
.to(person)
136-
.subject("HTML Message from Seam Mail - " + java.util.UUID.randomUUID().toString())
137-
.bodyHtml(new RenderTemplate(templateCompiler.get(), "template.html.render"))
138-
.put("version", "Seam 3")
139-
.importance(MessagePriority.HIGH)
140-
.addAttachment(new URLAttachment("http://www.seamframework.org/themes/sfwkorg/img/seam_icon_large.png", "seamLogo.png", ContentDisposition.INLINE))
141-
.send(session.get());
142-
}
143-
144-
public void sendHTMLwithAlternativeRender() throws MalformedURLException {
145-
mailMessage.get()
146-
.from("[email protected]", "Seam Framework")
147-
.to(person.getEmail(), person.getName())
148-
.subject("HTML+Text Message from Seam Mail - " + java.util.UUID.randomUUID().toString())
149-
.put("version", "Seam 3")
150-
.bodyHtmlTextAlt(
151-
new RenderTemplate(templateCompiler.get(), "template.html.render"),
152-
new RenderTemplate(templateCompiler.get(), "template.text.render"))
153-
.importance(MessagePriority.LOW)
154-
.deliveryReceipt("[email protected]")
155-
.readReceipt("[email protected]")
156-
.addAttachment("template.html.render", "text/html", ContentDisposition.ATTACHMENT, resourceProvider.loadResourceStream("template.html.render"))
157-
.addAttachment(new URLAttachment("http://www.seamframework.org/themes/sfwkorg/img/seam_icon_large.png", "seamLogo.png", ContentDisposition.INLINE))
158-
.send(session.get());
159-
}
160126
}

examples/sendmail/src/test/java/org/jboss/seam/mail/FreeMarkerMailMessageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
import org.jboss.seam.mail.util.MailTestUtil;
4747
import org.jboss.seam.mail.util.MavenArtifactResolver;
4848
import org.jboss.seam.mail.util.SMTPAuthenticator;
49-
import org.jboss.seam.solder.resourceLoader.ResourceProvider;
5049
import org.jboss.shrinkwrap.api.Archive;
5150
import org.jboss.shrinkwrap.api.ShrinkWrap;
5251
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
5352
import org.jboss.shrinkwrap.api.importer.ZipImporter;
5453
import org.jboss.shrinkwrap.api.spec.JavaArchive;
5554
import org.jboss.shrinkwrap.api.spec.WebArchive;
55+
import org.jboss.solder.resourceLoader.ResourceProvider;
5656
import org.junit.Test;
5757
import org.junit.runner.RunWith;
5858
import org.subethamail.smtp.auth.EasyAuthenticationHandlerFactory;

examples/sendmail/src/test/java/org/jboss/seam/mail/MailMessageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
import org.jboss.seam.mail.util.MailTestUtil;
4444
import org.jboss.seam.mail.util.MailUtility;
4545
import org.jboss.seam.mail.util.MavenArtifactResolver;
46-
import org.jboss.seam.solder.resourceLoader.ResourceProvider;
4746
import org.jboss.shrinkwrap.api.Archive;
4847
import org.jboss.shrinkwrap.api.ShrinkWrap;
4948
import org.jboss.shrinkwrap.api.asset.EmptyAsset;
5049
import org.jboss.shrinkwrap.api.importer.ZipImporter;
5150
import org.jboss.shrinkwrap.api.spec.JavaArchive;
5251
import org.jboss.shrinkwrap.api.spec.WebArchive;
52+
import org.jboss.solder.resourceLoader.ResourceProvider;
5353
import org.junit.Test;
5454
import org.junit.runner.RunWith;
5555
import org.subethamail.wiser.Wiser;

0 commit comments

Comments
 (0)