Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preliminary support for @New Simple Bean case
removal of toDetailedString():s Manager.resolveDecorators param Class<?> -> Type WS, cleanups git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@793 1c488680-804c-0410-94cd-c6b725194a0e
- Loading branch information
Showing
38 changed files
with
395 additions
and
360 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
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
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
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
62 changes: 62 additions & 0 deletions
62
webbeans-ri/src/main/java/org/jboss/webbeans/bean/NewBean.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,62 @@ | ||
package org.jboss.webbeans.bean; | ||
|
||
import java.lang.annotation.Annotation; | ||
import java.util.Arrays; | ||
import java.util.HashSet; | ||
import java.util.Set; | ||
|
||
import javax.webbeans.Dependent; | ||
import javax.webbeans.Standard; | ||
import javax.webbeans.manager.Bean; | ||
import javax.webbeans.manager.Manager; | ||
|
||
import org.jboss.webbeans.binding.NewBinding; | ||
import org.jboss.webbeans.introspector.AnnotatedItem; | ||
|
||
public class NewBean<T> extends ForwardingBean<T> | ||
{ | ||
private AbstractClassBean<T> wrappedBean; | ||
|
||
public NewBean(AbstractClassBean<T> wrappedBean, Manager manager) | ||
{ | ||
super(manager); | ||
this.wrappedBean = wrappedBean; | ||
} | ||
|
||
@Override | ||
protected Bean<T> delegate() | ||
{ | ||
return wrappedBean; | ||
} | ||
|
||
@Override | ||
public Class<? extends Annotation> getScopeType() | ||
{ | ||
return Dependent.class; | ||
} | ||
|
||
@Override | ||
public Class<? extends Annotation> getDeploymentType() | ||
{ | ||
return Standard.class; | ||
} | ||
|
||
@Override | ||
public String getName() | ||
{ | ||
return null; | ||
} | ||
|
||
public Set<AnnotatedItem<?, ?>> getInjectionPoints() | ||
{ | ||
return wrappedBean.getInjectionPoints(); | ||
} | ||
|
||
@Override | ||
public Set<Annotation> getBindingTypes() | ||
{ | ||
return new HashSet<Annotation>(Arrays.asList(new NewBinding())); | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.