public class PickConstructor extends Object
Constructor and Description |
---|
PickConstructor() |
Modifier and Type | Method and Description |
---|---|
static Constructor |
pickPerRequestConstructor(Class clazz)
Pick best constructor for a provider or resource class
|
static Constructor |
pickSingletonConstructor(Class clazz)
Pick best constructor for a provider or resource class
|
public static Constructor pickSingletonConstructor(Class clazz)
Picks constructor with most parameters. Will ignore constructors that have parameters with no @Context annotation
clazz
- classpublic static Constructor pickPerRequestConstructor(Class clazz)
Picks constructor with most parameters. Will ignore constructors that have parameters with no @Context annotation
clazz
- classCopyright © 2020 JBoss by Red Hat. All rights reserved.