Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WELD-812 simpler impl of an empty injection point
- Loading branch information
Showing
4 changed files
with
62 additions
and
92 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
58 changes: 58 additions & 0 deletions
58
impl/src/main/java/org/jboss/weld/injection/EmptyInjectionPoint.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,58 @@ | ||
package org.jboss.weld.injection; | ||
|
||
import java.io.Serializable; | ||
import java.lang.annotation.Annotation; | ||
import java.lang.reflect.Member; | ||
import java.lang.reflect.Type; | ||
import java.util.Collections; | ||
import java.util.Set; | ||
|
||
import javax.enterprise.inject.spi.Annotated; | ||
import javax.enterprise.inject.spi.Bean; | ||
import javax.enterprise.inject.spi.InjectionPoint; | ||
|
||
public class EmptyInjectionPoint implements InjectionPoint, Serializable | ||
{ | ||
|
||
private static final long serialVersionUID = -2041468540191211977L; | ||
|
||
public static final InjectionPoint INSTANCE = new EmptyInjectionPoint(); | ||
|
||
private EmptyInjectionPoint() {} | ||
|
||
public Type getType() | ||
{ | ||
return Object.class; | ||
} | ||
|
||
public Set<Annotation> getQualifiers() | ||
{ | ||
return Collections.emptySet(); | ||
} | ||
|
||
public Bean<?> getBean() | ||
{ | ||
return null; | ||
} | ||
|
||
public Member getMember() | ||
{ | ||
return null; | ||
} | ||
|
||
public Annotated getAnnotated() | ||
{ | ||
return null; | ||
} | ||
|
||
public boolean isDelegate() | ||
{ | ||
return false; | ||
} | ||
|
||
public boolean isTransient() | ||
{ | ||
return false; | ||
} | ||
|
||
} |
88 changes: 0 additions & 88 deletions
88
impl/src/main/java/org/jboss/weld/injection/SimpleInjectionPoint.java
This file was deleted.
Oops, something went wrong.