Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Eol style
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/proxy/trunk@1582563 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
42 changed files
with
4,688 additions
and
4,688 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2.cglib; | ||
|
||
import org.apache.commons.proxy2.AbstractSubclassingProxyFactoryTestCase; | ||
|
||
public class CglibProxyFactoryTest extends AbstractSubclassingProxyFactoryTestCase | ||
{ | ||
//********************************************************************************************************************** | ||
// Constructors | ||
//********************************************************************************************************************** | ||
|
||
public CglibProxyFactoryTest() | ||
{ | ||
} | ||
} | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2.cglib; | ||
|
||
import org.apache.commons.proxy2.AbstractSubclassingProxyFactoryTestCase; | ||
|
||
public class CglibProxyFactoryTest extends AbstractSubclassingProxyFactoryTestCase | ||
{ | ||
//********************************************************************************************************************** | ||
// Constructors | ||
//********************************************************************************************************************** | ||
|
||
public CglibProxyFactoryTest() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,63 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2; | ||
|
||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Method invocation for use by an {@link Interceptor}. | ||
* | ||
* @since 1.0 | ||
*/ | ||
public interface Invocation | ||
{ | ||
//****************************************************************************************************************** | ||
// Other Methods | ||
//****************************************************************************************************************** | ||
|
||
/** | ||
* Returns the arguments being passed to this method invocation. Changes in the elements of this array will be | ||
* propagated to the recipient of this invocation. | ||
* | ||
* @return the arguments being passed to this method invocation | ||
*/ | ||
Object[] getArguments(); | ||
|
||
/** | ||
* Returns the method being called. | ||
* | ||
* @return the method being called | ||
*/ | ||
Method getMethod(); | ||
|
||
/** | ||
* Returns the proxy object on which this invocation was invoked. | ||
* | ||
* @return the proxy object on which this invocation was invoked | ||
*/ | ||
Object getProxy(); | ||
|
||
/** | ||
* Called in order to let the invocation proceed. | ||
* | ||
* @return the return value of the invocation | ||
* @throws Throwable | ||
* any exception or error that was thrown as a result of this invocation | ||
*/ | ||
Object proceed() throws Throwable; | ||
} | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2; | ||
|
||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* Method invocation for use by an {@link Interceptor}. | ||
* | ||
* @since 1.0 | ||
*/ | ||
public interface Invocation | ||
{ | ||
//****************************************************************************************************************** | ||
// Other Methods | ||
//****************************************************************************************************************** | ||
|
||
/** | ||
* Returns the arguments being passed to this method invocation. Changes in the elements of this array will be | ||
* propagated to the recipient of this invocation. | ||
* | ||
* @return the arguments being passed to this method invocation | ||
*/ | ||
Object[] getArguments(); | ||
|
||
/** | ||
* Returns the method being called. | ||
* | ||
* @return the method being called | ||
*/ | ||
Method getMethod(); | ||
|
||
/** | ||
* Returns the proxy object on which this invocation was invoked. | ||
* | ||
* @return the proxy object on which this invocation was invoked | ||
*/ | ||
Object getProxy(); | ||
|
||
/** | ||
* Called in order to let the invocation proceed. | ||
* | ||
* @return the return value of the invocation | ||
* @throws Throwable | ||
* any exception or error that was thrown as a result of this invocation | ||
*/ | ||
Object proceed() throws Throwable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2; | ||
|
||
import java.io.Serializable; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* An invoker is responsible for handling a method invocation. | ||
* | ||
* @since 1.0 | ||
*/ | ||
public interface Invoker extends Serializable | ||
{ | ||
//****************************************************************************************************************** | ||
// Other Methods | ||
//****************************************************************************************************************** | ||
|
||
/** | ||
* "Invokes" the method. Implementation should throw a {@link org.apache.commons.proxy2.exception.InvokerException} | ||
* if problems arise while trying to invoke the method. | ||
* | ||
* @param proxy | ||
* the proxy2 object | ||
* @param method | ||
* the method being invoked | ||
* @param arguments | ||
* the arguments | ||
* @return the return value | ||
* @throws Throwable | ||
* thrown by the implementation | ||
*/ | ||
Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable; | ||
} | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2; | ||
|
||
import java.io.Serializable; | ||
import java.lang.reflect.Method; | ||
|
||
/** | ||
* An invoker is responsible for handling a method invocation. | ||
* | ||
* @since 1.0 | ||
*/ | ||
public interface Invoker extends Serializable | ||
{ | ||
//****************************************************************************************************************** | ||
// Other Methods | ||
//****************************************************************************************************************** | ||
|
||
/** | ||
* "Invokes" the method. Implementation should throw a {@link org.apache.commons.proxy2.exception.InvokerException} | ||
* if problems arise while trying to invoke the method. | ||
* | ||
* @param proxy | ||
* the proxy2 object | ||
* @param method | ||
* the method being invoked | ||
* @param arguments | ||
* the arguments | ||
* @return the return value | ||
* @throws Throwable | ||
* thrown by the implementation | ||
*/ | ||
Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Provides an object to a delegating proxy. | ||
* | ||
* @since 1.0 | ||
*/ | ||
public interface ObjectProvider<T> extends Serializable | ||
{ | ||
//****************************************************************************************************************** | ||
// Other Methods | ||
//****************************************************************************************************************** | ||
|
||
/** | ||
* Returns an object. Implementing classes should throw a | ||
* {@link org.apache.commons.proxy2.exception.ObjectProviderException} if any problems arise while | ||
* constructing/finding the object. | ||
* | ||
* @return the object on which the method should be called | ||
*/ | ||
T getObject(); | ||
} | ||
/* | ||
* 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. | ||
*/ | ||
|
||
package org.apache.commons.proxy2; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Provides an object to a delegating proxy. | ||
* | ||
* @since 1.0 | ||
*/ | ||
public interface ObjectProvider<T> extends Serializable | ||
{ | ||
//****************************************************************************************************************** | ||
// Other Methods | ||
//****************************************************************************************************************** | ||
|
||
/** | ||
* Returns an object. Implementing classes should throw a | ||
* {@link org.apache.commons.proxy2.exception.ObjectProviderException} if any problems arise while | ||
* constructing/finding the object. | ||
* | ||
* @return the object on which the method should be called | ||
*/ | ||
T getObject(); | ||
} |
Oops, something went wrong.