-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from caelum/ot-noinvokedyn
Mirror instead invoke dynamic, since uses less memory and cpu
- Loading branch information
Showing
18 changed files
with
19 additions
and
286 deletions.
There are no files selected for viewing
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
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
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
59 changes: 0 additions & 59 deletions
59
vraptor-core/src/main/java/br/com/caelum/vraptor/reflection/DefaultMethodExecutor.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
vraptor-core/src/main/java/br/com/caelum/vraptor/reflection/MethodExecutor.java
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
vraptor-core/src/main/java/br/com/caelum/vraptor/reflection/MethodExecutorException.java
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
vraptor-core/src/main/java/br/com/caelum/vraptor/reflection/MethodHandleFactory.java
This file was deleted.
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
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
17 changes: 0 additions & 17 deletions
17
vraptor-core/src/test/java/br/com/caelum/vraptor/factory/Factories.java
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,34 +1,17 @@ | ||
package br.com.caelum.vraptor.factory; | ||
|
||
import java.lang.invoke.MethodHandle; | ||
import java.lang.reflect.AccessibleObject; | ||
import java.lang.reflect.Method; | ||
|
||
import br.com.caelum.vraptor.cache.CacheStore; | ||
import br.com.caelum.vraptor.cache.DefaultCacheStore; | ||
import br.com.caelum.vraptor.cache.LRUCacheStore; | ||
import br.com.caelum.vraptor.http.Parameter; | ||
import br.com.caelum.vraptor.http.ParameterNameProvider; | ||
import br.com.caelum.vraptor.http.ParanamerNameProvider; | ||
import br.com.caelum.vraptor.interceptor.StepInvoker; | ||
import br.com.caelum.vraptor.reflection.DefaultMethodExecutor; | ||
import br.com.caelum.vraptor.reflection.MethodExecutor; | ||
import br.com.caelum.vraptor.reflection.MethodHandleFactory; | ||
|
||
public class Factories { | ||
|
||
public static StepInvoker createStepInvoker(){ | ||
return new StepInvoker(Factories.createMethodExecutor()); | ||
} | ||
|
||
public static ParameterNameProvider createParameterNameProvider() { | ||
CacheStore<AccessibleObject, Parameter[]> cache = new DefaultCacheStore<>(); | ||
return new ParanamerNameProvider(cache); | ||
} | ||
|
||
public static MethodExecutor createMethodExecutor(){ | ||
MethodHandleFactory methodHandleFactory = new MethodHandleFactory(); | ||
LRUCacheStore<Method, MethodHandle> cache = new LRUCacheStore<>(500); | ||
return new DefaultMethodExecutor(cache,methodHandleFactory); | ||
} | ||
} |
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
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
Oops, something went wrong.