Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
boolean |
interceptConstruction |
Fields inherited from class | Fields |
---|---|
class ProxyMetaClass |
EMPTY_ARGUMENTS |
class MetaClassImpl |
EMPTY_ARGUMENTS |
Type | Name and description |
---|---|
def |
MockProxyMetaClass(MetaClassRegistry registry, Class theClass, MetaClass adaptee) @param adaptee the MetaClass to decorate with interceptability |
def |
MockProxyMetaClass(MetaClassRegistry registry, Class theClass, MetaClass adaptee, boolean interceptConstruction) @param adaptee the MetaClass to decorate with interceptability |
Object |
getProperty(Class aClass, Object object, String property, boolean b, boolean b1) |
Object |
invokeConstructor(Object[] arguments) Unlike general impl in superclass, ctors are not intercepted but relayed unless interceptConstruction is set. |
Object |
invokeMethod(Object object, String methodName, Object[] arguments) |
Object |
invokeStaticMethod(Object object, String methodName, Object[] arguments) |
static MockProxyMetaClass |
make(Class theClass) convenience factory method for the most usual case. |
static MockProxyMetaClass |
make(Class theClass, boolean interceptConstruction) convenience factory method allowing interceptConstruction to be set. |
void |
setProperty(Class aClass, Object object, String property, Object newValue, boolean b, boolean b1) |
adaptee
- the MetaClass to decorate with interceptability
adaptee
- the MetaClass to decorate with interceptabilityUnlike general impl in superclass, ctors are not intercepted but relayed unless interceptConstruction is set.
convenience factory method for the most usual case.
convenience factory method allowing interceptConstruction to be set.