Return-Path: X-Original-To: apmail-clerezza-commits-archive@www.apache.org Delivered-To: apmail-clerezza-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BFDC8F5EE for ; Wed, 3 Apr 2013 18:40:36 +0000 (UTC) Received: (qmail 77181 invoked by uid 500); 3 Apr 2013 18:40:36 -0000 Delivered-To: apmail-clerezza-commits-archive@clerezza.apache.org Received: (qmail 77159 invoked by uid 500); 3 Apr 2013 18:40:36 -0000 Mailing-List: contact commits-help@clerezza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@clerezza.apache.org Delivered-To: mailing list commits@clerezza.apache.org Received: (qmail 77150 invoked by uid 99); 3 Apr 2013 18:40:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 18:40:36 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 18:40:31 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D0BF52388C56; Wed, 3 Apr 2013 18:38:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1464148 [32/34] - in /clerezza/site/production: ./ architecture/ architecture/images/ bundle-doc/ bundle-doc/org.apache.clerezza.bundledevtool/ bundle-doc/org.apache.clerezza.bundledevtool/intro-content-el/ bundle-doc/org.apache.clerezza.p... Date: Wed, 03 Apr 2013 18:37:57 -0000 To: commits@clerezza.apache.org From: reto@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130403183853.D0BF52388C56@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: clerezza/site/production/getting-started/shell/content-el/1.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/1.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/1.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/1.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,130 @@ + + + + Interacting with the OSGi environment + + + +
+ +
+ +
+ + +
+

Interacting with the OSGi environment +

+
+ +
An instance of org.apache.clerezza.shell.OsgiDsl is initialized and part of the default imports. This object allows access to the bundleContext. The following assigns the bundle 0 to a variable and prints its symbolic name to the shell output +
+zz>val systemBundle = bundleContext.getBundle(0) +systemBundle: org.osgi.framework.Bundle = org.apache.felix.framework [0] +zz>out println systemBundle.getSymbolicName +org.apache.felix.framework +
+
+ +
The OsgiDsl will be enhanced to support shortcuts for many frequent tasks, currently only a few are available.
+
+zz>ps +0 - org.apache.felix.framework System Bundle +1 - org.apache.clerezza.platform.security.conditions mvn:org.apache.clerezza/org.apache.clerezza.platform.security.conditions/0.5-incubating-SNAPSHOT +2 - org.apache.clerezza.platform.security mvn:org.apache.clerezza/org.apache.clerezza.platform.security/0.8-incubating-SNAPSHOT +3 - org.apache.felix.bundlerepository mvn:org.apache.felix/org.apache.felix.bundlerepository/1.6.4 +4 - org.apache.felix.configadmin mvn:org.apache.felix/org.apache.felix.configadmin/1.2.8 +zz>start("mvn:org.apache.clerezza/org.apache.clerezza.rdf.stable.serializer") +res13: org.osgi.framework.Bundle = org.apache.clerezza.rdf.stable.serializer [128] +zz>res13.uninstall +zz> +
+ +
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/getting-started/shell/content-el/2-content.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2-content.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2-content.html (added) +++ clerezza/site/production/getting-started/shell/content-el/2-content.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,36 @@ + + + + + + Untitled Content + + + The shell provides a shortcut to access available services, the method $ with the service type as argument. +The following ste the inital bundle startlevel to 10: +
+zz>import org.osgi.service.startlevel.StartLevel +import org.osgi.service.startlevel.StartLevel +zz>$[StartLevel] setInitialBundleStartLevel 10 +zz> +
+The following adds a triple to the content graph retrieved via ContentGraphProvider: +
+zz>import rdf.core._ +import rdf.core._ +zz>import rdf.core.impl._ +import rdf.core.impl._ +zz>import rdf.ontologies._ +import rdf.ontologies._ +zz>import platform.graphprovider.content.ContentGraphProvider +import platform.graphprovider.content.ContentGraphProvider +zz>val cg = $[ContentGraphProvider] getContentGraph +cg: org.apache.clerezza.rdf.core.access.LockableMGraph = +[org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#holds> <http://incubator.apache.org/clerezza/getting-started/index-title>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#pos> "0"., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit>., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://discobits.org/ontology#infoBit> "Getting Started"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>., org.apache.clerezza.rdf.core.BNode@297c074e <http://www.w3.... +zz>cg.add(new TripleImpl(new UriRef("http://incubator.apache.org/clerezza/getting-started/shell/"), RDF.`type`, HIERARCHY.Collection)) +res20: Boolean = true +zz> +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/2-content.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2-content.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2-content.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/2-content.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,40 @@ + + + + + + + 1 + + + + The shell provides a shortcut to access available services, the method $ with the service type as argument. +The following ste the inital bundle startlevel to 10: +
+zz>import org.osgi.service.startlevel.StartLevel +import org.osgi.service.startlevel.StartLevel +zz>$[StartLevel] setInitialBundleStartLevel 10 +zz> +
+The following adds a triple to the content graph retrieved via ContentGraphProvider: +
+zz>import rdf.core._ +import rdf.core._ +zz>import rdf.core.impl._ +import rdf.core.impl._ +zz>import rdf.ontologies._ +import rdf.ontologies._ +zz>import platform.graphprovider.content.ContentGraphProvider +import platform.graphprovider.content.ContentGraphProvider +zz>val cg = $[ContentGraphProvider] getContentGraph +cg: org.apache.clerezza.rdf.core.access.LockableMGraph = +[org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#holds> <http://incubator.apache.org/clerezza/getting-started/index-title>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#pos> "0"., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit>., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://discobits.org/ontology#infoBit> "Getting Started"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>., org.apache.clerezza.rdf.core.BNode@297c074e <http://www.w3.... +zz>cg.add(new TripleImpl(new UriRef("http://incubator.apache.org/clerezza/getting-started/shell/"), RDF.`type`, HIERARCHY.Collection)) +res20: Boolean = true +zz> +
+ +
+
Added: clerezza/site/production/getting-started/shell/content-el/2-content.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2-content.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2-content.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/2-content.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,36 @@ + + + + + + Untitled Content + + + The shell provides a shortcut to access available services, the method $ with the service type as argument. +The following ste the inital bundle startlevel to 10: +
+zz>import org.osgi.service.startlevel.StartLevel +import org.osgi.service.startlevel.StartLevel +zz>$[StartLevel] setInitialBundleStartLevel 10 +zz> +
+The following adds a triple to the content graph retrieved via ContentGraphProvider: +
+zz>import rdf.core._ +import rdf.core._ +zz>import rdf.core.impl._ +import rdf.core.impl._ +zz>import rdf.ontologies._ +import rdf.ontologies._ +zz>import platform.graphprovider.content.ContentGraphProvider +import platform.graphprovider.content.ContentGraphProvider +zz>val cg = $[ContentGraphProvider] getContentGraph +cg: org.apache.clerezza.rdf.core.access.LockableMGraph = +[org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#holds> <http://incubator.apache.org/clerezza/getting-started/index-title>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#pos> "0"., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit>., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://discobits.org/ontology#infoBit> "Getting Started"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>., org.apache.clerezza.rdf.core.BNode@297c074e <http://www.w3.... +zz>cg.add(new TripleImpl(new UriRef("http://incubator.apache.org/clerezza/getting-started/shell/"), RDF.`type`, HIERARCHY.Collection)) +res20: Boolean = true +zz> +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/2-title.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2-title.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2-title.html (added) +++ clerezza/site/production/getting-started/shell/content-el/2-title.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Accessing Services + + + Added: clerezza/site/production/getting-started/shell/content-el/2-title.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2-title.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2-title.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/2-title.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + + + + + 0 + + + + Accessing Services + + Added: clerezza/site/production/getting-started/shell/content-el/2-title.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2-title.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2-title.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/2-title.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Accessing Services + + + Added: clerezza/site/production/getting-started/shell/content-el/2.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2.html (added) +++ clerezza/site/production/getting-started/shell/content-el/2.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,128 @@ + + + + Accessing Services + + + +
+ +
+ +
+ + +
+

Accessing Services +

+
The shell provides a shortcut to access available services, the method $ with the service type as argument. +The following ste the inital bundle startlevel to 10: +
+zz>import org.osgi.service.startlevel.StartLevel +import org.osgi.service.startlevel.StartLevel +zz>$[StartLevel] setInitialBundleStartLevel 10 +zz> +
+The following adds a triple to the content graph retrieved via ContentGraphProvider: +
+zz>import rdf.core._ +import rdf.core._ +zz>import rdf.core.impl._ +import rdf.core.impl._ +zz>import rdf.ontologies._ +import rdf.ontologies._ +zz>import platform.graphprovider.content.ContentGraphProvider +import platform.graphprovider.content.ContentGraphProvider +zz>val cg = $[ContentGraphProvider] getContentGraph +cg: org.apache.clerezza.rdf.core.access.LockableMGraph = +[org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#holds> <http://incubator.apache.org/clerezza/getting-started/index-title>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#pos> "0"., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit>., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://discobits.org/ontology#infoBit> "Getting Started"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>., org.apache.clerezza.rdf.core.BNode@297c074e <http://www.w3.... +zz>cg.add(new TripleImpl(new UriRef("http://incubator.apache.org/clerezza/getting-started/shell/"), RDF.`type`, HIERARCHY.Collection)) +res20: Boolean = true +zz> +
+
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/getting-started/shell/content-el/2.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/2.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,27 @@ + + + + + + + + + + 0 + + + 1 + + + + + + + + + 3 + + + Added: clerezza/site/production/getting-started/shell/content-el/2.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/2.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/2.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/2.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,128 @@ + + + + Accessing Services + + + +
+ +
+ +
+ + +
+

Accessing Services +

+
The shell provides a shortcut to access available services, the method $ with the service type as argument. +The following ste the inital bundle startlevel to 10: +
+zz>import org.osgi.service.startlevel.StartLevel +import org.osgi.service.startlevel.StartLevel +zz>$[StartLevel] setInitialBundleStartLevel 10 +zz> +
+The following adds a triple to the content graph retrieved via ContentGraphProvider: +
+zz>import rdf.core._ +import rdf.core._ +zz>import rdf.core.impl._ +import rdf.core.impl._ +zz>import rdf.ontologies._ +import rdf.ontologies._ +zz>import platform.graphprovider.content.ContentGraphProvider +import platform.graphprovider.content.ContentGraphProvider +zz>val cg = $[ContentGraphProvider] getContentGraph +cg: org.apache.clerezza.rdf.core.access.LockableMGraph = +[org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#Entry>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#holds> <http://incubator.apache.org/clerezza/getting-started/index-title>., org.apache.clerezza.rdf.core.BNode@49ec9b79 <http://discobits.org/ontology#pos> "0"., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://discobits.org/ontology#XHTMLInfoDiscoBit>., <http://incubator.apache.org/clerezza/getting-started/index-title> <http://discobits.org/ontology#infoBit> "Getting Started"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral>., org.apache.clerezza.rdf.core.BNode@297c074e <http://www.w3.... +zz>cg.add(new TripleImpl(new UriRef("http://incubator.apache.org/clerezza/getting-started/shell/"), RDF.`type`, HIERARCHY.Collection)) +res20: Boolean = true +zz> +
+
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/getting-started/shell/content-el/3-content-el/0.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content-el/0.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content-el/0.html (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content-el/0.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + + + + Untitled Content + + + The Clerezza Shell is based on the interactive Scala Shell and as such any line that does not start with a colon is evaluated as Scala: +
+zz>def greet { + | out println "hello world" + | } +greet: Unit +zz>greet +hello world +zz> +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/3-content-el/0.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content-el/0.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content-el/0.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content-el/0.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,25 @@ + + + + + 0 + + + + The Clerezza Shell is based on the interactive Scala Shell and as such any line that does not start with a colon is evaluated as Scala: +
+zz>def greet { + | out println "hello world" + | } +greet: Unit +zz>greet +hello world +zz> +
+
+ + + +
Added: clerezza/site/production/getting-started/shell/content-el/3-content-el/0.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content-el/0.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content-el/0.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content-el/0.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,21 @@ + + + + + + Untitled Content + + + The Clerezza Shell is based on the interactive Scala Shell and as such any line that does not start with a colon is evaluated as Scala: +
+zz>def greet { + | out println "hello world" + | } +greet: Unit +zz>greet +hello world +zz> +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/3-content-el/1.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content-el/1.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content-el/1.html (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content-el/1.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,25 @@ + + + + + + Untitled Content + + + Commands by contrast are not interpreted as scala. Build in commands as well as commands provided by services are available. +
+zz>:help +This is a scala based console, it supports any Scala expression, as well as the command described below. +... +
+Services exposing the org.apache.clerezza.shell.ShellCommand interface provide additional commands, for example org.apache.felix.shell.ShellService allows to have lines evaluated by the felix shell. Like all commands the command :felix can be abbreviated as long as there's no ambuigity: +
+zz>:f scr list + Id State Name +[ 0] [active ] org.apache.clerezza.platform.security.BundlePermissionManager +[ 1] [active ] org.apache.clerezza.platform.security.SecurityActivator +... +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/3-content-el/1.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content-el/1.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content-el/1.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content-el/1.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,29 @@ + + + 1 + + + + + + Commands by contrast are not interpreted as scala. Build in commands as well as commands provided by services are available. +
+zz>:help +This is a scala based console, it supports any Scala expression, as well as the command described below. +... +
+Services exposing the org.apache.clerezza.shell.ShellCommand interface provide additional commands, for example org.apache.felix.shell.ShellService allows to have lines evaluated by the felix shell. Like all commands the command :felix can be abbreviated as long as there's no ambuigity: +
+zz>:f scr list + Id State Name +[ 0] [active ] org.apache.clerezza.platform.security.BundlePermissionManager +[ 1] [active ] org.apache.clerezza.platform.security.SecurityActivator +... +
+
+ + + +
Added: clerezza/site/production/getting-started/shell/content-el/3-content-el/1.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content-el/1.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content-el/1.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content-el/1.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,25 @@ + + + + + + Untitled Content + + + Commands by contrast are not interpreted as scala. Build in commands as well as commands provided by services are available. +
+zz>:help +This is a scala based console, it supports any Scala expression, as well as the command described below. +... +
+Services exposing the org.apache.clerezza.shell.ShellCommand interface provide additional commands, for example org.apache.felix.shell.ShellService allows to have lines evaluated by the felix shell. Like all commands the command :felix can be abbreviated as long as there's no ambuigity: +
+zz>:f scr list + Id State Name +[ 0] [active ] org.apache.clerezza.platform.security.BundlePermissionManager +[ 1] [active ] org.apache.clerezza.platform.security.SecurityActivator +... +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/3-content.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content.html (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,41 @@ + + + + + + Untitled Content + + + + +
The Clerezza Shell is based on the interactive Scala Shell and as such any line that does not start with a colon is evaluated as Scala: +
+zz>def greet { + | out println "hello world" + | } +greet: Unit +zz>greet +hello world +zz> +
+
+ +
Commands by contrast are not interpreted as scala. Build in commands as well as commands provided by services are available. +
+zz>:help +This is a scala based console, it supports any Scala expression, as well as the command described below. +... +
+Services exposing the org.apache.clerezza.shell.ShellCommand interface provide additional commands, for example org.apache.felix.shell.ShellService allows to have lines evaluated by the felix shell. Like all commands the command :felix can be abbreviated as long as there's no ambuigity: +
+zz>:f scr list + Id State Name +[ 0] [active ] org.apache.clerezza.platform.security.BundlePermissionManager +[ 1] [active ] org.apache.clerezza.platform.security.SecurityActivator +... +
+
+ + + + Added: clerezza/site/production/getting-started/shell/content-el/3-content.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,27 @@ + + + 1 + + + + + + + 0 + + + + + 1 + + + + + + + + + + Added: clerezza/site/production/getting-started/shell/content-el/3-content.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-content.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-content.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/3-content.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,41 @@ + + + + + + Untitled Content + + + + +
The Clerezza Shell is based on the interactive Scala Shell and as such any line that does not start with a colon is evaluated as Scala: +
+zz>def greet { + | out println "hello world" + | } +greet: Unit +zz>greet +hello world +zz> +
+
+ +
Commands by contrast are not interpreted as scala. Build in commands as well as commands provided by services are available. +
+zz>:help +This is a scala based console, it supports any Scala expression, as well as the command described below. +... +
+Services exposing the org.apache.clerezza.shell.ShellCommand interface provide additional commands, for example org.apache.felix.shell.ShellService allows to have lines evaluated by the felix shell. Like all commands the command :felix can be abbreviated as long as there's no ambuigity: +
+zz>:f scr list + Id State Name +[ 0] [active ] org.apache.clerezza.platform.security.BundlePermissionManager +[ 1] [active ] org.apache.clerezza.platform.security.SecurityActivator +... +
+
+ + + + Added: clerezza/site/production/getting-started/shell/content-el/3-title.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-title.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-title.html (added) +++ clerezza/site/production/getting-started/shell/content-el/3-title.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Commands and Expressions + + + Added: clerezza/site/production/getting-started/shell/content-el/3-title.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-title.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-title.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/3-title.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + Commands and Expressions + + + + 0 + + + + + + Added: clerezza/site/production/getting-started/shell/content-el/3-title.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3-title.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3-title.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/3-title.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Commands and Expressions + + + Added: clerezza/site/production/getting-started/shell/content-el/3.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3.html (added) +++ clerezza/site/production/getting-started/shell/content-el/3.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,133 @@ + + + + Commands and Expressions + + + +
+ +
+ +
+ + +
+

Commands and Expressions +

+
+ +
The Clerezza Shell is based on the interactive Scala Shell and as such any line that does not start with a colon is evaluated as Scala: +
+zz>def greet { + | out println "hello world" + | } +greet: Unit +zz>greet +hello world +zz> +
+
+ +
Commands by contrast are not interpreted as scala. Build in commands as well as commands provided by services are available. +
+zz>:help +This is a scala based console, it supports any Scala expression, as well as the command described below. +... +
+Services exposing the org.apache.clerezza.shell.ShellCommand interface provide additional commands, for example org.apache.felix.shell.ShellService allows to have lines evaluated by the felix shell. Like all commands the command :felix can be abbreviated as long as there's no ambuigity: +
+zz>:f scr list + Id State Name +[ 0] [active ] org.apache.clerezza.platform.security.BundlePermissionManager +[ 1] [active ] org.apache.clerezza.platform.security.SecurityActivator +... +
+
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/getting-started/shell/content-el/3.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/3.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,27 @@ + + + + + 1 + + + 1 + + + + + + + + 0 + + + + + + + + + Added: clerezza/site/production/getting-started/shell/content-el/3.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/3.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/3.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/3.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,133 @@ + + + + Commands and Expressions + + + +
+ +
+ +
+ + +
+

Commands and Expressions +

+
+ +
The Clerezza Shell is based on the interactive Scala Shell and as such any line that does not start with a colon is evaluated as Scala: +
+zz>def greet { + | out println "hello world" + | } +greet: Unit +zz>greet +hello world +zz> +
+
+ +
Commands by contrast are not interpreted as scala. Build in commands as well as commands provided by services are available. +
+zz>:help +This is a scala based console, it supports any Scala expression, as well as the command described below. +... +
+Services exposing the org.apache.clerezza.shell.ShellCommand interface provide additional commands, for example org.apache.felix.shell.ShellService allows to have lines evaluated by the felix shell. Like all commands the command :felix can be abbreviated as long as there's no ambuigity: +
+zz>:f scr list + Id State Name +[ 0] [active ] org.apache.clerezza.platform.security.BundlePermissionManager +[ 1] [active ] org.apache.clerezza.platform.security.SecurityActivator +... +
+
+ +
+ +
+ + + + + \ No newline at end of file Added: clerezza/site/production/getting-started/shell/content-el/4-content-el/0.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content-el/0.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content-el/0.html (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content-el/0.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + All variables and objects created on the Shell are lost after a restart this is true also for objects registered as service. Nevertheless being able t o quickly create and register a service might often come in handy. + + + Added: clerezza/site/production/getting-started/shell/content-el/4-content-el/0.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content-el/0.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content-el/0.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content-el/0.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + All variables and objects created on the Shell are lost after a restart this is true also for objects registered as service. Nevertheless being able t o quickly create and register a service might often come in handy. + + + + + + + + 0 + + + Added: clerezza/site/production/getting-started/shell/content-el/4-content-el/0.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content-el/0.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content-el/0.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content-el/0.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + All variables and objects created on the Shell are lost after a restart this is true also for objects registered as service. Nevertheless being able t o quickly create and register a service might often come in handy. + + + Added: clerezza/site/production/getting-started/shell/content-el/4-content-el/1.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content-el/1.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content-el/1.html (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content-el/1.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,25 @@ + + + + + + Untitled Content + + + The following registers a "hello world" root resource at the uri-path /foo/bar +
+zz>import javax.ws.rs._ +import javax.ws.rs._ +zz>@Path("foo/bar") class Foo { @GET def get() = { "hello world" } } +defined class Foo +zz>import scala.collection.JavaConversions.asDictionary +import scala.collection.JavaConversions.asDictionary +zz>val args = scala.collection.mutable.Map("javax.ws.rs" -> true) +args: scala.collection.mutable.Map[java.lang.String,Boolean] = Map((javax.ws.rs,true)) +zz>bundleContext.registerService(classOf[Object].getName, new Foo(), args) +res38: org.osgi.framework.ServiceRegistration = org.apache.felix.framework.ServiceRegistrationImpl@5bf89f46 +zz> +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/4-content-el/1.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content-el/1.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content-el/1.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content-el/1.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,29 @@ + + + + 1 + + + + + The following registers a "hello world" root resource at the uri-path /foo/bar +
+zz>import javax.ws.rs._ +import javax.ws.rs._ +zz>@Path("foo/bar") class Foo { @GET def get() = { "hello world" } } +defined class Foo +zz>import scala.collection.JavaConversions.asDictionary +import scala.collection.JavaConversions.asDictionary +zz>val args = scala.collection.mutable.Map("javax.ws.rs" -> true) +args: scala.collection.mutable.Map[java.lang.String,Boolean] = Map((javax.ws.rs,true)) +zz>bundleContext.registerService(classOf[Object].getName, new Foo(), args) +res38: org.osgi.framework.ServiceRegistration = org.apache.felix.framework.ServiceRegistrationImpl@5bf89f46 +zz> +
+
+ + + +
Added: clerezza/site/production/getting-started/shell/content-el/4-content-el/1.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content-el/1.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content-el/1.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content-el/1.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,25 @@ + + + + + + Untitled Content + + + The following registers a "hello world" root resource at the uri-path /foo/bar +
+zz>import javax.ws.rs._ +import javax.ws.rs._ +zz>@Path("foo/bar") class Foo { @GET def get() = { "hello world" } } +defined class Foo +zz>import scala.collection.JavaConversions.asDictionary +import scala.collection.JavaConversions.asDictionary +zz>val args = scala.collection.mutable.Map("javax.ws.rs" -> true) +args: scala.collection.mutable.Map[java.lang.String,Boolean] = Map((javax.ws.rs,true)) +zz>bundleContext.registerService(classOf[Object].getName, new Foo(), args) +res38: org.osgi.framework.ServiceRegistration = org.apache.felix.framework.ServiceRegistrationImpl@5bf89f46 +zz> +
+ + + Added: clerezza/site/production/getting-started/shell/content-el/4-content.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content.html (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,32 @@ + + + + + + Untitled Content + + + + +
All variables and objects created on the Shell are lost after a restart this is true also for objects registered as service. Nevertheless being able t o quickly create and register a service might often come in handy. +
+ +
The following registers a "hello world" root resource at the uri-path /foo/bar +
+zz>import javax.ws.rs._ +import javax.ws.rs._ +zz>@Path("foo/bar") class Foo { @GET def get() = { "hello world" } } +defined class Foo +zz>import scala.collection.JavaConversions.asDictionary +import scala.collection.JavaConversions.asDictionary +zz>val args = scala.collection.mutable.Map("javax.ws.rs" -> true) +args: scala.collection.mutable.Map[java.lang.String,Boolean] = Map((javax.ws.rs,true)) +zz>bundleContext.registerService(classOf[Object].getName, new Foo(), args) +res38: org.osgi.framework.ServiceRegistration = org.apache.felix.framework.ServiceRegistrationImpl@5bf89f46 +zz> +
+
+ + + + Added: clerezza/site/production/getting-started/shell/content-el/4-content.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,27 @@ + + + 1 + + + + + + + + + + + + + + 1 + + + + + 0 + + + Added: clerezza/site/production/getting-started/shell/content-el/4-content.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-content.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-content.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/4-content.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,32 @@ + + + + + + Untitled Content + + + + +
All variables and objects created on the Shell are lost after a restart this is true also for objects registered as service. Nevertheless being able t o quickly create and register a service might often come in handy. +
+ +
The following registers a "hello world" root resource at the uri-path /foo/bar +
+zz>import javax.ws.rs._ +import javax.ws.rs._ +zz>@Path("foo/bar") class Foo { @GET def get() = { "hello world" } } +defined class Foo +zz>import scala.collection.JavaConversions.asDictionary +import scala.collection.JavaConversions.asDictionary +zz>val args = scala.collection.mutable.Map("javax.ws.rs" -> true) +args: scala.collection.mutable.Map[java.lang.String,Boolean] = Map((javax.ws.rs,true)) +zz>bundleContext.registerService(classOf[Object].getName, new Foo(), args) +res38: org.osgi.framework.ServiceRegistration = org.apache.felix.framework.ServiceRegistrationImpl@5bf89f46 +zz> +
+
+ + + + Added: clerezza/site/production/getting-started/shell/content-el/4-title.html URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-title.html?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-title.html (added) +++ clerezza/site/production/getting-started/shell/content-el/4-title.html Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Creating and Registering Services + + + Added: clerezza/site/production/getting-started/shell/content-el/4-title.rdf URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-title.rdf?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-title.rdf (added) +++ clerezza/site/production/getting-started/shell/content-el/4-title.rdf Wed Apr 3 18:37:39 2013 @@ -0,0 +1,16 @@ + + + + Creating and Registering Services + + + + 0 + + + + + + Added: clerezza/site/production/getting-started/shell/content-el/4-title.xhtml URL: http://svn.apache.org/viewvc/clerezza/site/production/getting-started/shell/content-el/4-title.xhtml?rev=1464148&view=auto ============================================================================== --- clerezza/site/production/getting-started/shell/content-el/4-title.xhtml (added) +++ clerezza/site/production/getting-started/shell/content-el/4-title.xhtml Wed Apr 3 18:37:39 2013 @@ -0,0 +1,12 @@ + + + + + + Untitled Content + + + Creating and Registering Services + + +