Permalink
Browse files

Fixed config

  • Loading branch information...
1 parent 70ba171 commit 323d836329ff9afd52fe629430b2e28241a31e92 @gastaldi gastaldi committed Mar 6, 2014
View
@@ -99,11 +99,13 @@
<artifactId>furnace-se</artifactId>
<version>${version.forge}</version>
</dependency>
+ <!--
<dependency>
<groupId>org.jboss.forge.addon</groupId>
<artifactId>ui-api</artifactId>
<version>${version.forge}</version>
</dependency>
+ -->
</dependencies>
<build>
@@ -2,6 +2,7 @@
import java.io.File;
+import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
@@ -24,9 +25,10 @@
@Inject
ServletContext servletContext;
- private final Furnace furnace;
+ private Furnace furnace;
- public FurnaceProducer()
+ @PostConstruct
+ public void setup()
{
furnace = FurnaceFactory.getInstance();
@@ -1,25 +0,0 @@
-package org.forgeide.producer;
-
-import javax.enterprise.context.ApplicationScoped;
-import javax.enterprise.event.Observes;
-import javax.enterprise.inject.Produces;
-import javax.servlet.ServletContext;
-import javax.servlet.ServletContextEvent;
-
-@ApplicationScoped
-public class ServletContextProducer
-{
-
- private ServletContext servletContext;
-
- public void init(@Observes ServletContextEvent event)
- {
- this.servletContext = event.getServletContext();
- }
-
- @Produces
- public ServletContext getServletContext()
- {
- return servletContext;
- }
-}
@@ -1,12 +1,8 @@
package org.forgeide.service;
-import java.io.File;
-
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
-import javax.servlet.ServletContext;
-import org.jboss.forge.addon.ui.command.CommandFactory;
import org.jboss.forge.furnace.Furnace;
@RequestScoped

0 comments on commit 323d836

Please sign in to comment.