public class OptoFactory extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
OptoFactory.ConstantFactory
A factory for abstract "constant" representations of objects.
|
Constructor and Description |
---|
OptoFactory() |
Modifier and Type | Method and Description |
---|---|
static Invalidator |
newConstantInvalidator() |
static Object |
newConstantWrapper(Class type,
Object object)
Create a new "constant" representation for this object, conforming to the given concrete type.
|
static Invalidator |
newGlobalInvalidator(int maxFailures) |
static Invalidator |
newMethodInvalidator(RubyModule module) |
public static final Object newConstantWrapper(Class type, Object object)
type
- the class to which the constant should conformpublic static Invalidator newConstantInvalidator()
public static Invalidator newGlobalInvalidator(int maxFailures)
public static Invalidator newMethodInvalidator(RubyModule module)
Copyright © 2001-2015 JRuby. All Rights Reserved.