org.jboss.msc.value
Class LookupDeclaredConstructorValue
java.lang.Object
org.jboss.msc.value.LookupDeclaredConstructorValue
- All Implemented Interfaces:
- Value<Constructor<?>>
Deprecated. Will be removed before 1.0.0.GA
@Deprecated
public final class LookupDeclaredConstructorValue
- extends Object
- implements Value<Constructor<?>>
A value which looks up a possibly non-public constructor by name from a class. This may be considerably slower than
LookupConstructorValue
so that class should be used whenever possible.
- Author:
- David M. Lloyd
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookupDeclaredConstructorValue
public LookupDeclaredConstructorValue(Value<Class<?>> target,
List<? extends Value<Class<?>>> parameterTypes,
AccessControlContext context,
boolean makeAccessible)
- Deprecated.
- Construct a new instance.
- Parameters:
target
- the class in which to look for the constructorparameterTypes
- the parameter types of the constructorcontext
- the access control context to usemakeAccessible
- true
to make the constructor accessible under the provided access control context
getValue
public Constructor<?> getValue()
throws IllegalStateException
- Deprecated.
- Get the actual value.
- Specified by:
getValue
in interface Value<Constructor<?>>
- Returns:
- the actual value
- Throws:
IllegalStateException
- if the value is time-sensitive and the current state does not allow retrieval.
Copyright © 2011 JBoss, a division of Red Hat, Inc.