Skip to content

Commit 7e8653f

Browse files
committed
Rename org.particleframework to io.micronaut
1 parent 2975ee5 commit 7e8653f

File tree

2,555 files changed

+36022
-33551
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,555 files changed

+36022
-33551
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Particle Framework
1+
# Micronaut Framework
22

33
## Running Tests
44

ROADMAP.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Particle Requirements
1+
# Micronaut Requirements
22

33
## Minimum Feature Set
44

5-
The following features are a TODO list of things to do on Particle before launching
5+
The following features are a TODO list of things to do on Micronaut before launching
66

77
### Core Features
88

@@ -99,7 +99,7 @@ WebSocket Support must be implemented
9999

100100
#### Support for Views
101101

102-
Some view technology support and port GSON views to Particle.
102+
Some view technology support and port GSON views to micronaut.
103103

104104
### HTTP Client
105105

aop/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def targetDir = new File(project.buildDir, "jarjar")
5656
def targetFile = new File(targetDir, "asm.jar")
5757
def jarjarTask = task("jarjarTask", type: JarjarTask) {
5858
from(jar.outputs.files)
59-
classRename "org.objectweb.asm.**", "org.particleframework.asm.@1"
59+
classRename "org.objectweb.asm.**", "io.micronaut.asm.@1"
6060
destinationDir = targetDir
6161
destinationName = targetFile.name
6262
}

aop/src/main/java/org/particleframework/aop/Around.java aop/src/main/java/io/micronaut/aop/Around.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

18-
import org.particleframework.context.annotation.Executable;
18+
import io.micronaut.context.annotation.Executable;
19+
import io.micronaut.context.annotation.Type;
20+
import io.micronaut.context.annotation.Executable;
1921

2022
import java.lang.annotation.Documented;
2123
import java.lang.annotation.ElementType;
@@ -40,7 +42,7 @@
4042
* }
4143
* </code></pre>
4244
*
43-
* <p>Note that the annotation MUST be {@link java.lang.annotation.RetentionPolicy#RUNTIME} and the specified {@link org.particleframework.context.annotation.Type} must implement {@link MethodInterceptor}</p>
45+
* <p>Note that the annotation MUST be {@link java.lang.annotation.RetentionPolicy#RUNTIME} and the specified {@link Type} must implement {@link MethodInterceptor}</p>
4446
*
4547
* @author Graeme Rocher
4648
* @since 1.0
@@ -52,7 +54,7 @@
5254
public @interface Around {
5355

5456
/**
55-
* <p>By default Particle will compile subclasses of the target class and call super.foo(..) to invoke the original method since
57+
* <p>By default Micronaut will compile subclasses of the target class and call super.foo(..) to invoke the original method since
5658
* this is more efficient and allows proxied methods to work for calls from within the class.</p>
5759
*
5860
* <p>However certain cases it may be useful to be able to to instead proxy all public methods of the original implementation.
@@ -75,7 +77,7 @@
7577
boolean hotswap() default false;
7678

7779
/**
78-
* <p>By default Particle will initialize the proxy target eagerly when the proxy is created. This is better for performance, but some use
80+
* <p>By default Micronaut will initialize the proxy target eagerly when the proxy is created. This is better for performance, but some use
7981
* cases may require the bean to be resolved lazily (for example for resolving the bean from a custom scope).</p>
8082
*
8183
* <p>If {@link #proxyTarget()} is set to <code>true</code> then one can optionally set the of <code>lazy</code> to true</p>

aop/src/main/java/org/particleframework/aop/HotSwappableInterceptedProxy.java aop/src/main/java/io/micronaut/aop/HotSwappableInterceptedProxy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

1818
import java.util.concurrent.locks.ReentrantReadWriteLock;
1919

aop/src/main/java/org/particleframework/aop/InterceptPhase.java aop/src/main/java/io/micronaut/aop/InterceptPhase.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
17+
18+
import io.micronaut.core.order.Ordered;
1719

1820
/**
19-
* <p>{@link Interceptor} classes implement the {@link org.particleframework.core.order.Ordered} interface
21+
* <p>{@link Interceptor} classes implement the {@link Ordered} interface
2022
* in order to control the order of execution when multiple interceptors are present.</p>
2123
*
2224
* <p>This class provides a set of common constants for typical phases used by interceptors thus making it easier to position a n interceptor in the correct phase.</p>

aop/src/main/java/org/particleframework/aop/Intercepted.java aop/src/main/java/io/micronaut/aop/Intercepted.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

1818
/**
1919
* An interface implemented by generated proxy classes

aop/src/main/java/org/particleframework/aop/InterceptedProxy.java aop/src/main/java/io/micronaut/aop/InterceptedProxy.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

1818
/**
1919
* A {@link Intercepted} that proxies another instance

aop/src/main/java/org/particleframework/aop/Interceptor.java aop/src/main/java/io/micronaut/aop/Interceptor.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

18-
import org.particleframework.core.order.Ordered;
18+
import io.micronaut.core.order.Ordered;
19+
import io.micronaut.core.order.Ordered;
1920

2021
/**
2122
* <p>An Interceptor intercepts the execution of a method allowing cross cutting behaviour to be applied to a method's execution.</p>

aop/src/main/java/org/particleframework/aop/Introduced.java aop/src/main/java/io/micronaut/aop/Introduced.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

1818
/**
1919
* Marker interface for instances that are implemented automatically via {@link Introduction} advise

aop/src/main/java/org/particleframework/aop/Introduction.java aop/src/main/java/io/micronaut/aop/Introduction.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

18-
import org.particleframework.context.annotation.Executable;
18+
import io.micronaut.context.annotation.Executable;
19+
import io.micronaut.context.annotation.Type;
20+
import io.micronaut.context.annotation.Executable;
1921

2022
import java.lang.annotation.Documented;
2123
import java.lang.annotation.ElementType;
@@ -41,7 +43,7 @@
4143
* }
4244
* </code></pre>
4345
*
44-
* <p>Note that the annotation MUST be {@link java.lang.annotation.RetentionPolicy#RUNTIME} and the specified {@link org.particleframework.context.annotation.Type} must implement {@link MethodInterceptor}</p>
46+
* <p>Note that the annotation MUST be {@link java.lang.annotation.RetentionPolicy#RUNTIME} and the specified {@link Type} must implement {@link MethodInterceptor}</p>
4547
*
4648
* @author Graeme Rocher
4749
* @since 1.0

aop/src/main/java/org/particleframework/aop/InvocationContext.java aop/src/main/java/io/micronaut/aop/InvocationContext.java

+11-6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,18 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

18-
import org.particleframework.core.annotation.AnnotationMetadataDelegate;
19-
import org.particleframework.core.convert.value.MutableConvertibleValues;
20-
import org.particleframework.core.type.ArgumentValue;
21-
import org.particleframework.core.type.Executable;
22-
import org.particleframework.core.type.MutableArgumentValue;
18+
import io.micronaut.core.annotation.AnnotationMetadataDelegate;
19+
import io.micronaut.core.convert.value.MutableConvertibleValues;
20+
import io.micronaut.core.type.ArgumentValue;
21+
import io.micronaut.core.type.Executable;
22+
import io.micronaut.core.type.MutableArgumentValue;
23+
import io.micronaut.core.annotation.AnnotationMetadataDelegate;
24+
import io.micronaut.core.convert.value.MutableConvertibleValues;
25+
import io.micronaut.core.type.ArgumentValue;
26+
import io.micronaut.core.type.Executable;
27+
import io.micronaut.core.type.MutableArgumentValue;
2328

2429
import java.util.LinkedHashMap;
2530
import java.util.Map;

aop/src/main/java/org/particleframework/aop/MethodInterceptor.java aop/src/main/java/io/micronaut/aop/MethodInterceptor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

1818
/**
1919
* A MethodInterceptor extends the generic {@link Interceptor} and provides an interface more specific to method interception

aop/src/main/java/org/particleframework/aop/MethodInvocationContext.java aop/src/main/java/io/micronaut/aop/MethodInvocationContext.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop;
16+
package io.micronaut.aop;
1717

18-
import org.particleframework.inject.ExecutableMethod;
18+
import io.micronaut.inject.ExecutableMethod;
19+
import io.micronaut.inject.ExecutableMethod;
1920

2021
/**
2122
* Extended version of {@link InvocationContext} for {@link MethodInterceptor} instances

aop/src/main/java/org/particleframework/aop/exceptions/UnimplementedAdviceException.java aop/src/main/java/io/micronaut/aop/exceptions/UnimplementedAdviceException.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop.exceptions;
16+
package io.micronaut.aop.exceptions;
1717

18-
import org.particleframework.inject.ExecutableMethod;
18+
import io.micronaut.inject.ExecutableMethod;
19+
import io.micronaut.inject.ExecutableMethod;
1920

2021
/**
21-
* An exception thrown when {@link org.particleframework.aop.Introduction} advise cannot be implemented
22+
* An exception thrown when {@link io.micronaut.aop.Introduction} advise cannot be implemented
2223
*
2324
* @author graemerocher
2425
* @since 1.0

aop/src/main/java/org/particleframework/aop/internal/InterceptorChain.java aop/src/main/java/io/micronaut/aop/internal/InterceptorChain.java

+29-16
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,35 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop.internal;
17-
18-
import org.particleframework.aop.*;
19-
import org.particleframework.aop.exceptions.UnimplementedAdviceException;
20-
import org.particleframework.context.ApplicationContext;
21-
import org.particleframework.context.BeanContext;
22-
import org.particleframework.context.annotation.Type;
23-
import org.particleframework.core.annotation.AnnotationMetadata;
24-
import org.particleframework.core.annotation.Internal;
25-
import org.particleframework.core.convert.value.MutableConvertibleValues;
26-
import org.particleframework.core.order.OrderUtil;
27-
import org.particleframework.core.type.Argument;
28-
import org.particleframework.core.type.MutableArgumentValue;
29-
import org.particleframework.core.util.ArrayUtils;
30-
import org.particleframework.inject.ExecutableMethod;
31-
import org.particleframework.inject.annotation.DefaultAnnotationMetadata;
16+
package io.micronaut.aop.internal;
17+
18+
import io.micronaut.aop.exceptions.UnimplementedAdviceException;
19+
import io.micronaut.context.ApplicationContext;
20+
import io.micronaut.context.BeanContext;
21+
import io.micronaut.context.annotation.Type;
22+
import io.micronaut.core.annotation.AnnotationMetadata;
23+
import io.micronaut.core.annotation.Internal;
24+
import io.micronaut.core.convert.value.MutableConvertibleValues;
25+
import io.micronaut.core.order.OrderUtil;
26+
import io.micronaut.core.type.Argument;
27+
import io.micronaut.core.type.MutableArgumentValue;
28+
import io.micronaut.core.util.ArrayUtils;
29+
import io.micronaut.inject.ExecutableMethod;
30+
import io.micronaut.inject.annotation.DefaultAnnotationMetadata;
31+
import io.micronaut.aop.*;
32+
import io.micronaut.aop.exceptions.UnimplementedAdviceException;
33+
import io.micronaut.context.ApplicationContext;
34+
import io.micronaut.context.BeanContext;
35+
import io.micronaut.context.annotation.Type;
36+
import io.micronaut.core.annotation.AnnotationMetadata;
37+
import io.micronaut.core.annotation.Internal;
38+
import io.micronaut.core.convert.value.MutableConvertibleValues;
39+
import io.micronaut.core.order.OrderUtil;
40+
import io.micronaut.core.type.Argument;
41+
import io.micronaut.core.type.MutableArgumentValue;
42+
import io.micronaut.core.util.ArrayUtils;
43+
import io.micronaut.inject.ExecutableMethod;
44+
import io.micronaut.inject.annotation.DefaultAnnotationMetadata;
3245

3346
import java.lang.annotation.Annotation;
3447
import java.util.*;

aop/src/main/java/org/particleframework/aop/internal/MethodInterceptorChain.java aop/src/main/java/io/micronaut/aop/internal/MethodInterceptorChain.java

+9-6
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop.internal;
16+
package io.micronaut.aop.internal;
1717

18-
import org.particleframework.aop.Interceptor;
19-
import org.particleframework.aop.MethodInvocationContext;
20-
import org.particleframework.core.annotation.Internal;
21-
import org.particleframework.inject.ExecutableMethod;
22-
import org.particleframework.core.type.ReturnType;
18+
import io.micronaut.core.annotation.Internal;
19+
import io.micronaut.core.type.ReturnType;
20+
import io.micronaut.inject.ExecutableMethod;
21+
import io.micronaut.aop.Interceptor;
22+
import io.micronaut.aop.MethodInvocationContext;
23+
import io.micronaut.core.annotation.Internal;
24+
import io.micronaut.inject.ExecutableMethod;
25+
import io.micronaut.core.type.ReturnType;
2326

2427
import java.lang.annotation.Annotation;
2528
import java.lang.reflect.AnnotatedElement;

aop/src/main/java/org/particleframework/aop/writer/AopProxyWriter.java aop/src/main/java/io/micronaut/aop/writer/AopProxyWriter.java

+21-22
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,27 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package org.particleframework.aop.writer;
17-
16+
package io.micronaut.aop.writer;
17+
18+
import io.micronaut.aop.*;
19+
import io.micronaut.aop.internal.InterceptorChain;
20+
import io.micronaut.aop.internal.MethodInterceptorChain;
21+
import io.micronaut.context.BeanContext;
22+
import io.micronaut.context.BeanLocator;
23+
import io.micronaut.context.ExecutionHandleLocator;
24+
import io.micronaut.context.Qualifier;
25+
import io.micronaut.core.annotation.AnnotationMetadata;
26+
import io.micronaut.core.naming.NameUtils;
27+
import io.micronaut.core.reflect.ReflectionUtils;
28+
import io.micronaut.core.value.OptionalValues;
29+
import io.micronaut.inject.BeanDefinition;
30+
import io.micronaut.inject.ExecutableMethod;
31+
import io.micronaut.inject.ProxyBeanDefinition;
32+
import io.micronaut.inject.configuration.ConfigurationMetadataBuilder;
33+
import io.micronaut.inject.writer.*;
1834
import org.objectweb.asm.*;
1935
import org.objectweb.asm.commons.GeneratorAdapter;
2036
import org.objectweb.asm.commons.Method;
21-
import org.particleframework.aop.*;
22-
import org.particleframework.aop.internal.InterceptorChain;
23-
import org.particleframework.aop.internal.MethodInterceptorChain;
24-
import org.particleframework.context.BeanContext;
25-
import org.particleframework.context.BeanLocator;
26-
import org.particleframework.context.ExecutionHandleLocator;
27-
import org.particleframework.context.Qualifier;
28-
import org.particleframework.core.annotation.AnnotationMetadata;
29-
import org.particleframework.core.naming.NameUtils;
30-
import org.particleframework.core.reflect.ReflectionUtils;
31-
import org.particleframework.core.value.OptionalValues;
32-
import org.particleframework.inject.BeanDefinition;
33-
import org.particleframework.inject.ExecutableMethod;
34-
import org.particleframework.inject.ProxyBeanDefinition;
35-
import org.particleframework.inject.configuration.ConfigurationMetadataBuilder;
36-
import org.particleframework.inject.writer.*;
37-
3837
import java.io.File;
3938
import java.io.IOException;
4039
import java.io.OutputStream;
@@ -74,7 +73,7 @@ public class AopProxyWriter extends AbstractClassFileWriter implements ProxyingB
7473
private static final java.lang.reflect.Method RESOLVE_AROUND_INTERCEPTORS_METHOD = ReflectionUtils.getRequiredInternalMethod(InterceptorChain.class, "resolveAroundInterceptors", BeanContext.class, ExecutableMethod.class, Interceptor[].class);
7574

7675
private static final Constructor CONSTRUCTOR_METHOD_INTERCEPTOR_CHAIN = ReflectionUtils.findConstructor(MethodInterceptorChain.class, Interceptor[].class, Object.class, ExecutableMethod.class, Object[].class).orElseThrow(() ->
77-
new IllegalStateException("new MethodInterceptorChain(..) constructor not found. Incompatible version of Particle?")
76+
new IllegalStateException("new MethodInterceptorChain(..) constructor not found. Incompatible version of Micronaut?")
7877
);
7978

8079
private static final String FIELD_INTERCEPTORS = "$interceptors";
@@ -173,7 +172,7 @@ public AopProxyWriter(BeanDefinitionWriter parent,
173172
}
174173

175174
/**
176-
* Constructs a new {@link AopProxyWriter} for the purposes of writing {@link org.particleframework.aop.Introduction} advise
175+
* Constructs a new {@link AopProxyWriter} for the purposes of writing {@link Introduction} advise
177176
*
178177
* @param packageName The package name
179178
* @param className The class name
@@ -490,7 +489,7 @@ public void visitBeanDefinitionEnd() {
490489
// Add the interceptor @Type(..) annotation
491490
Type[] interceptorTypes = getObjectTypes(this.interceptorTypes);
492491
AnnotationVisitor interceptorTypeAnn = constructorWriter.visitParameterAnnotation(
493-
interceptorArgumentIndex, Type.getDescriptor(org.particleframework.context.annotation.Type.class), true
492+
interceptorArgumentIndex, Type.getDescriptor(io.micronaut.context.annotation.Type.class), true
494493
).visitArray("value");
495494
for (Type interceptorType : interceptorTypes) {
496495
interceptorTypeAnn.visit(null, interceptorType);

0 commit comments

Comments
 (0)