Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the way the bean instance is setup for decorators with field d…
…elegate injection points
- Loading branch information
1 parent
a192b2b
commit 75a9d96
Showing
5 changed files
with
120 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
impl/src/main/java/org/jboss/weld/injection/ForwardingInjectionTarget.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.jboss.weld.injection; | ||
|
||
import java.util.Set; | ||
|
||
import javax.enterprise.context.spi.CreationalContext; | ||
import javax.enterprise.inject.spi.InjectionPoint; | ||
import javax.enterprise.inject.spi.InjectionTarget; | ||
|
||
/** | ||
* @author Stuart Douglas | ||
*/ | ||
public abstract class ForwardingInjectionTarget<T> implements InjectionTarget<T>{ | ||
|
||
protected abstract InjectionTarget<T> delegate(); | ||
|
||
public void inject(final T instance, final CreationalContext<T> ctx) { | ||
delegate().inject(instance, ctx); | ||
} | ||
|
||
public void postConstruct(final T instance) { | ||
delegate().postConstruct(instance); | ||
} | ||
|
||
public void preDestroy(final T instance) { | ||
delegate().preDestroy(instance); | ||
} | ||
|
||
public T produce(final CreationalContext<T> ctx) { | ||
return delegate().produce(ctx); | ||
} | ||
|
||
public void dispose(final T instance) { | ||
delegate().dispose(instance); | ||
} | ||
|
||
public Set<InjectionPoint> getInjectionPoints() { | ||
return delegate().getInjectionPoints(); | ||
} | ||
} |
61 changes: 0 additions & 61 deletions
61
impl/src/main/java/org/jboss/weld/injection/OnDemandBeanInstance.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters