public final class Prototype<T> extends Object implements Prototyped<T>, net.sf.cglib.proxy.MethodInterceptor
| Constructor and Description |
|---|
Prototype(Class<T> rawType,
Map<String,Class<?>> typeParameters,
PrototypeInterceptor proxier) |
Prototype(PrototypeProperty parentProperty,
Class<T> rawType,
Map<String,Class<?>> typeParameters,
PrototypeInterceptor proxier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Prototyped<?> child) |
void |
addExpectation(PrototypePropertyMatcher expecation) |
PrototypeProperty |
getActiveProperty() |
List<PrototypePropertyMatcher> |
getExpectations()
Return the collection of expectations relevant to this protype
|
PrototypeProperty |
getParentProperty() |
Class<T> |
getRawType()
Return
|
Map<String,Class<?>> |
getTypeParameters() |
Object |
intercept(Object obj,
Method method,
Object[] args,
net.sf.cglib.proxy.MethodProxy proxy) |
void |
setActiveProperty(PrototypeProperty activeProperty) |
String |
toString() |
public Prototype(PrototypeProperty parentProperty, Class<T> rawType, Map<String,Class<?>> typeParameters, PrototypeInterceptor proxier)
public void addChild(Prototyped<?> child)
public PrototypeProperty getParentProperty()
public void setActiveProperty(PrototypeProperty activeProperty)
public PrototypeProperty getActiveProperty()
public List<PrototypePropertyMatcher> getExpectations()
PrototypedgetExpectations in interface Prototyped<T>public void addExpectation(PrototypePropertyMatcher expecation)
public Class<T> getRawType()
PrototypedgetRawType in interface Prototyped<T>public Object intercept(Object obj, Method method, Object[] args, net.sf.cglib.proxy.MethodProxy proxy) throws Throwable
intercept in interface net.sf.cglib.proxy.MethodInterceptorThrowableCopyright © 2015. All rights reserved.