public static class FieldRegistry.Default extends Object implements FieldRegistry
FieldRegistry.Default, FieldRegistry.LatentFieldMatcher
Constructor and Description |
---|
Default()
Creates a new field registry without any registered fields.
|
Modifier and Type | Method and Description |
---|---|
FieldRegistry.Compiled |
compile(TypeDescription instrumentedType,
TypeWriter.FieldPool.Entry fallback)
Once all entries for a field registry were registered, a field registry can be compiled in order to allow the
retrieval of
FieldAttributeAppender s for
known fields. |
FieldRegistry |
include(FieldRegistry.LatentFieldMatcher latentFieldMatcher,
FieldAttributeAppender.Factory attributeAppenderFactory)
Creates a new field registry with the given attribute appender registered for the supplied field matcher.
|
public Default()
public FieldRegistry include(FieldRegistry.LatentFieldMatcher latentFieldMatcher, FieldAttributeAppender.Factory attributeAppenderFactory)
FieldRegistry
include
in interface FieldRegistry
latentFieldMatcher
- The field matcher uniquely identifying the field to be registered.attributeAppenderFactory
- The field attribute appender factory to be registered for this field.public FieldRegistry.Compiled compile(TypeDescription instrumentedType, TypeWriter.FieldPool.Entry fallback)
FieldRegistry
FieldAttributeAppender
s for
known fields. Additionally, a fallback attribute appender is to be supplied which is returned if a requested
field cannot is not known to the compiled field registry.
If a field name is already registered, an exception will be thrown.
compile
in interface FieldRegistry
instrumentedType
- The instrumented type for which this field registry is to be compiled.fallback
- A fallback entry that serves as a fallback for non-registered fields.Copyright © 2014. All rights reserved.