Skip to content

Commit

Permalink
Actually use Logger ;-)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Feb 16, 2010
1 parent 70f1515 commit b175241
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 28 deletions.
11 changes: 0 additions & 11 deletions tests/src/test/java/org/jboss/weld/tests/serialization/Foo.java

This file was deleted.

This file was deleted.

@@ -1,15 +1,16 @@
package org.jboss.weld.tests.serialization;

import java.io.Serializable;
import java.util.logging.Logger;

import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;

@SessionScoped
public class FooConsumer implements Serializable
public class LoggerConsumer implements Serializable
{

@Inject Foo foo;
@Inject Logger log;

public void ping()
{
Expand Down
@@ -0,0 +1,16 @@
package org.jboss.weld.tests.serialization;

import java.util.logging.Logger;

import javax.enterprise.inject.Produces;

public class LoggerProducer
{

@Produces
public Logger produceLogger()
{
return Logger.getLogger("foo");
}

}
Expand Up @@ -45,6 +45,6 @@ public void testConversationManagerSerializable()
@Test(description="http://lists.jboss.org/pipermail/weld-dev/2010-February/002265.html")
public void testNonSerializableProductInjectedIntoSessionScopedBean()
{
getReference(FooConsumer.class).ping();
getReference(LoggerConsumer.class).ping();
}
}

0 comments on commit b175241

Please sign in to comment.