|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BytecodeGen.Visibility> org.elasticsearch.util.inject.internal.BytecodeGen.Visibility
public static enum BytecodeGen.Visibility
The required visibility of a user's class from a Guice-generated class. Visibility of package-private members depends on the loading classloader: only if two classes were loaded by the same classloader can they see each other's package-private members. We need to be careful when choosing which classloader to use for generated classes. We prefer our bridge classloader, since it's OSGi-safe and doesn't leak permgen space. But often we cannot due to visibility.
Enum Constant Summary | |
---|---|
PUBLIC
Indicates that Guice-generated classes only need to call and override public members of the target class. |
|
SAME_PACKAGE
Indicates that Guice-generated classes need to call or override package-private members. |
Method Summary | |
---|---|
abstract BytecodeGen.Visibility |
and(BytecodeGen.Visibility that)
|
static BytecodeGen.Visibility |
forMember(java.lang.reflect.Member member)
|
static BytecodeGen.Visibility |
forType(java.lang.Class<?> type)
|
static BytecodeGen.Visibility |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BytecodeGen.Visibility[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BytecodeGen.Visibility PUBLIC
public static final BytecodeGen.Visibility SAME_PACKAGE
Method Detail |
---|
public static BytecodeGen.Visibility[] values()
for (BytecodeGen.Visibility c : BytecodeGen.Visibility.values()) System.out.println(c);
public static BytecodeGen.Visibility valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static BytecodeGen.Visibility forMember(java.lang.reflect.Member member)
public static BytecodeGen.Visibility forType(java.lang.Class<?> type)
public abstract BytecodeGen.Visibility and(BytecodeGen.Visibility that)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |