JBoss Modular Service Kernel API 1.0.0.Beta6

org.jboss.msc.value
Class LookupDeclaredFieldValue

java.lang.Object
  extended by org.jboss.msc.value.LookupDeclaredFieldValue
All Implemented Interfaces:
Value<Field>

Deprecated. Will be removed before 1.0.0.GA

@Deprecated
public final class LookupDeclaredFieldValue
extends Object
implements Value<Field>

A value which looks up a possibly non-public field by name from a class. This may be considerably slower than LookupFieldValue so that class should be used whenever possible.

Author:
David M. Lloyd

Constructor Summary
LookupDeclaredFieldValue(Value<Class<?>> target, String fieldName, AccessControlContext context, boolean makeAccessible)
          Deprecated. Construct a new instance.
 
Method Summary
 Field getValue()
          Deprecated. Get the actual value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupDeclaredFieldValue

public LookupDeclaredFieldValue(Value<Class<?>> target,
                                String fieldName,
                                AccessControlContext context,
                                boolean makeAccessible)
Deprecated. 
Construct a new instance.

Parameters:
target - the class in which to look for the field
fieldName - the name of the field to look up
context - the access control context to use
makeAccessible - true to make the field accessible under the provided access control context
Method Detail

getValue

public Field getValue()
               throws IllegalStateException
Deprecated. 
Get the actual value.

Specified by:
getValue in interface Value<Field>
Returns:
the actual value
Throws:
IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.

JBoss Modular Service Kernel API 1.0.0.Beta6

Copyright © 2011 JBoss, a division of Red Hat, Inc.