Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E39D0200CD3 for ; Fri, 28 Jul 2017 09:31:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E272416C551; Fri, 28 Jul 2017 07:31:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D105216C553 for ; Fri, 28 Jul 2017 09:31:36 +0200 (CEST) Received: (qmail 19369 invoked by uid 500); 28 Jul 2017 07:31:36 -0000 Mailing-List: contact commits-help@polygene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@polygene.apache.org Delivered-To: mailing list commits@polygene.apache.org Received: (qmail 18483 invoked by uid 99); 28 Jul 2017 07:31:34 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2017 07:31:34 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 00F89F3299; Fri, 28 Jul 2017 07:31:33 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: paulmerlin@apache.org To: commits@polygene.apache.org Date: Fri, 28 Jul 2017 07:32:12 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [41/51] [partial] polygene-website git commit: publish java/develop/ as 3.1.0 development version archived-at: Fri, 28 Jul 2017 07:31:42 -0000 http://git-wip-us.apache.org/repos/asf/polygene-website/blob/2d44da7d/content/java/develop/howto-depend-on-polygene.html ---------------------------------------------------------------------- diff --git a/content/java/develop/howto-depend-on-polygene.html b/content/java/develop/howto-depend-on-polygene.html index 34262f5..d8df773 100644 --- a/content/java/develop/howto-depend-on-polygene.html +++ b/content/java/develop/howto-depend-on-polygene.html @@ -1,5 +1,5 @@ -Depend on Polygene™ +Depend on Polygene™ @@ -66,9 +66,9 @@ })(); -

Depend on Polygene™

Note

Some of the Libraries and Extensions depend on artifacts that are not deployed in central, you’ll need to -add other repositories to your build scripts accordingly.

Release artifacts, including sources and javadoc, are deployed to Maven Central:

http://repo1.maven.org/maven2/ (US)

http://uk.maven.org/maven2/ (Europe)

Snapshot artifacts, including sources and javadoc, are built against the develop branch and deployed weekly to the Apache SNAPSHOTS repository:

http://repository.apache.org/snapshots/

Manually

If you don’t rely on your build scripts dependency resolution mechanism you should -download the SDK distribution.

Using Maven

You simply declare dependencies on Polygene™ artifacts:

<dependencies>
+  

Depend on Polygene™

Note

Some of the Libraries and Extensions depend on artifacts that are not deployed in central, you’ll need to +add other repositories to your build scripts accordingly.

Release artifacts, including sources and javadoc, are deployed to Maven Central:

http://repo1.maven.org/maven2/ (US)

http://uk.maven.org/maven2/ (Europe)

Snapshot artifacts, including sources and javadoc, are built against the develop branch and deployed weekly to the Apache SNAPSHOTS repository:

http://repository.apache.org/snapshots/

Manually

If you don’t rely on your build scripts dependency resolution mechanism you should +download the SDK distribution.

Using Maven

You simply declare dependencies on Polygene™ artifacts:

<dependencies>
     <dependency>
         <groupId>org.apache.polygene.core</groupId>
         <artifactId>org.apache.polygene.core.bootstrap</artifactId>
@@ -93,15 +93,15 @@ add other repositories to your build scripts accordingly.

Release ar <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> -</repositories>

Using Gradle

You simply declare dependencies on Polygene™ artifacts:

dependencies {
+</repositories>

Using Gradle

You simply declare dependencies on Polygene™ artifacts:

dependencies {
     compile     "org.apache.polygene.core:org.apache.polygene.core.bootstrap:POLYGENE_VERSION"
     runtime     "org.apache.polygene.core:org.apache.polygene.core.runtime:POLYGENE_VERSION"
     testCompile "org.apache.polygene.core:org.apache.polygene.core.testsupport:POLYGENE_VERSION"
 }

Where POLYGENE_VERSION is the Polygene™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

repositories {
     maven { name 'apache-snapshots'; url "https://repository.apache.org/snapshots/" }
-}

Using Buildr

You simply declare dependencies on Polygene™ artifacts:

compile.with 'org.apache.polygene.core:org.apache.polygene.core.bootstrap:POLYGENE_VERSION'
+}

Using Buildr

You simply declare dependencies on Polygene™ artifacts:

compile.with 'org.apache.polygene.core:org.apache.polygene.core.bootstrap:POLYGENE_VERSION'
 package(:war).with :libs => 'org.apache.polygene.core:org.apache.polygene.core.runtime:POLYGENE_VERSION'
-test.with 'org.apache.polygene.core:org.apache.polygene.core.testsupport:POLYGENE_VERSION'

Where POLYGENE_VERSION is the Polygene™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

repositories.remote << 'https://repository.apache.org/snapshots/'

Using SBT

You simply declare dependencies on Polygene™ artifacts:

libraryDependencies += \
+test.with 'org.apache.polygene.core:org.apache.polygene.core.testsupport:POLYGENE_VERSION'

Where POLYGENE_VERSION is the Polygene™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

repositories.remote << 'https://repository.apache.org/snapshots/'

Using SBT

You simply declare dependencies on Polygene™ artifacts:

libraryDependencies += \
     "org.apache.polygene.core" % "org.apache.polygene.core.bootstrap" % "POLYGENE_VERSION" \
     withSources() withJavadoc()
 libraryDependencies += \
@@ -109,7 +109,7 @@ libraryDependencies += \
     withSources() withJavadoc()
 libraryDependencies += \
     "org.apache.polygene.core" % "org.apache.polygene.core.testsupport" % "POLYGENE_VERSION" % "test" \
-    withSources() withJavadoc()

Where POLYGENE_VERSION is the Polygene™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

resolvers += "apache-snapshots" at "https://repository.apache.org/snapshots/"

Using Ivy

You simply declare dependencies on Polygene™ artifacts:

<ivy-module>
+    withSources() withJavadoc()

Where POLYGENE_VERSION is the Polygene™ version you want to use.

If you want to use -SNAPSHOT versions, you need to register the Apache Snapshots repository:

resolvers += "apache-snapshots" at "https://repository.apache.org/snapshots/"

Using Ivy

You simply declare dependencies on Polygene™ artifacts:

<ivy-module>
     <dependencies>
         <dependency org="org.apache.polygene.core" name="org.apache.polygene.core.bootstrap"
                     rev="POLYGENE_VERSION"  conf="default" />

http://git-wip-us.apache.org/repos/asf/polygene-website/blob/2d44da7d/content/java/develop/howto-invocation-annotation.html
----------------------------------------------------------------------
diff --git a/content/java/develop/howto-invocation-annotation.html b/content/java/develop/howto-invocation-annotation.html
index 1a4d18b..1765b4a 100644
--- a/content/java/develop/howto-invocation-annotation.html
+++ b/content/java/develop/howto-invocation-annotation.html
@@ -1,5 +1,5 @@
 
-Use @Invocation
+Use @Invocation
 
 
 
@@ -66,11 +66,11 @@
   })();
  
 
-  

Use @Invocation

The @Invocation annotation is relatively unknown but can be rather powerful to use, especially when creating +

Use @Invocation

The @Invocation annotation is relatively unknown but can be rather powerful to use, especially when creating libraries that needs to be flexible of what the user needs to do.

@Invocation is a different InjectionScope, which is a concept to tell Polygene runtime where to look for the instances to be injected. Other, more well-known, InjectionScope annotations are @This, @Structure and @Service.

The @Invocation injection scope can provide the following types, all related to the on-going method invocation, -which is especially useful in Generic Concerns or Generic Mixins;

  • +which is especially useful in Generic Concerns or Generic Mixins;

    • java.lang.reflect.Method - The current method being invoked.
    • java.lang.reflect.AnnotatedElement - An descriptor for all annotations of the Method. @@ -78,11 +78,11 @@ which is especially useful in Generic Concerns or Generic Mixins;

      Custom Annotations - Your own annotation type.
    • java.util.Iterable<Method> - An iterable of all declared methods of the composite type. -

    java.lang.reflect.Method

    This injection will simply provide the java.lang.reflect.Method of the on-going call. For generic fragments that +

java.lang.reflect.Method

This injection will simply provide the java.lang.reflect.Method of the on-going call. For generic fragments that will be the same as the second argument in the java.lang.reflect.InvocationHandler.invoke() method. Sometimes -it is useful to obtain this for typed fragment as well, to reduce names in Strings.

java.lang.reflect.AnnotatedElement

This Reflection API class encapsulates the annotation aspect of any element that can be annotated. Polygene implements +it is useful to obtain this for typed fragment as well, to reduce names in Strings.

java.lang.reflect.AnnotatedElement

This Reflection API class encapsulates the annotation aspect of any element that can be annotated. Polygene implements this interface for the Composite. That means that annotations for both the method as well as the composite is provided -through this injection.

Custom Annotations

It is often useful to introduce one’s own annotations, especially for libraries, and use these annotations to direct +through this injection.

Custom Annotations

It is often useful to introduce one’s own annotations, especially for libraries, and use these annotations to direct the runtime to do different things. Many of the "built-in" features in Polygene is actually done by this mechanism and not directly implemented in the Core Runtime.

First create an annotation of your own liking, it must have java.lang.annotation.Retention set to RUNTIME

@Retention( RUNTIME )
 @interface Foo
@@ -100,7 +100,7 @@ not directly implemented in the Core Runtime.

First create an annotation o { @Invocation Foo foo; -

java.util.Iterable<Method>

This injection will provide all the declared methods of the current composite. This is particularly useful for mixins +

java.util.Iterable<Method>

This injection will provide all the declared methods of the current composite. This is particularly useful for mixins or concerns that builds information about the composite they belong to.