-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #588 from gastaldi/FORGE-2436
FORGE-2436: Deprecated InputComponentInjectionEnricher and introduced inject package
- Loading branch information
Showing
10 changed files
with
231 additions
and
57 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
21 changes: 21 additions & 0 deletions
21
.../src/main/java/org/jboss/forge/addon/ui/input/inject/InputComponentInjectionEnricher.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,21 @@ | ||
/* | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.ui.input.inject; | ||
|
||
import org.jboss.forge.addon.ui.input.InputComponent; | ||
|
||
/** | ||
* Enriches an injected {@link InputComponent} | ||
* | ||
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> | ||
*/ | ||
public interface InputComponentInjectionEnricher | ||
{ | ||
public void enrich(InputComponentInjectionPoint injectionPoint, InputComponent<?, ?> input); | ||
|
||
} |
67 changes: 67 additions & 0 deletions
67
ui/api/src/main/java/org/jboss/forge/addon/ui/input/inject/InputComponentInjectionPoint.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,67 @@ | ||
/* | ||
* Copyright 2015 Red Hat, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Eclipse Public License version 1.0, available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
|
||
package org.jboss.forge.addon.ui.input.inject; | ||
|
||
import java.lang.annotation.Annotation; | ||
import java.lang.reflect.Member; | ||
import java.lang.reflect.Type; | ||
import java.util.Set; | ||
|
||
/** | ||
* Provides information about the injection point in a CDI-decoupled manner | ||
* | ||
* @author <a href="mailto:ggastald@redhat.com">George Gastaldi</a> | ||
*/ | ||
public interface InputComponentInjectionPoint | ||
{ | ||
/** | ||
* The bean {@linkplain Class class} of the managed bean or session bean or of the bean that declares the producer | ||
* method or field. | ||
* | ||
* @return the bean {@linkplain Class class} | ||
*/ | ||
public Class<?> getBeanClass(); | ||
|
||
/** | ||
* Get the required type of injection point. | ||
* | ||
* @return the required type | ||
*/ | ||
public Type getType(); | ||
|
||
/** | ||
* Get the required qualifiers of the injection point. | ||
* | ||
* @return the required qualifiers | ||
*/ | ||
public Set<Annotation> getQualifiers(); | ||
|
||
/** | ||
* Get the {@link java.lang.reflect.Field} object in the case of field injection, the | ||
* {@link java.lang.reflect.Method} object in the case of method parameter injection or the | ||
* {@link java.lang.reflect.Constructor} object in the case of constructor parameter injection. | ||
* | ||
* @return the member | ||
*/ | ||
public Member getMember(); | ||
|
||
/** | ||
* Determines if the injection point is a decorator delegate injection point. | ||
* | ||
* @return <tt>true</tt> if the injection point is a decorator delegate injection point, and <tt>false</tt> otherwise | ||
*/ | ||
public boolean isDelegate(); | ||
|
||
/** | ||
* Determines if the injection is a transient field. | ||
* | ||
* @return <tt>true</tt> if the injection point is a transient field, and <tt>false</tt> otherwise | ||
*/ | ||
public boolean isTransient(); | ||
|
||
} |
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
Oops, something went wrong.