Skip to content
Permalink
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
sebbASF committed Mar 28, 2014
1 parent 1c17dea commit e9976ea9fa6eea16303ce634a2881b4cbda45e4b
Show file tree
Hide file tree
Showing 42 changed files with 4,688 additions and 4,688 deletions.

Large diffs are not rendered by default.

@@ -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()
{
}
}
@@ -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;
}
@@ -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;
}
@@ -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();
}

0 comments on commit e9976ea

Please sign in to comment.