This file contains hidden or 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
====package.json========== | |
{ | |
"name": "app1", | |
"version": "1.0.0", | |
"devDependencies": { | |
"grunt": "^1.0.1" | |
} | |
} | |
======Gruntfile.js=================== |
This file contains hidden or 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
===== index.html================ | |
<html> | |
<head> | |
<script src="angular-1.4.8.js"></script> | |
<script src="angular-route-1.4.8.js"></script> | |
<script src="app1-main.js"></script> | |
<script src="app1-claim.js"></script> | |
</head> | |
<body> |
This file contains hidden or 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
<html> | |
<head> | |
<script src="angular-1.4.8.js"></script> | |
</head> | |
<body ng-app="myapp"> | |
<div ng-controller="aController"> | |
{{ aValue | date}} <br/> | |
{{bValue | uppercase}} | |
<br/> |
This file contains hidden or 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
/** | |
* Hook method called on activation of this service client. | |
* @param context BundleContext | |
*/ | |
public void activate(ComponentContext context){ | |
System.out.println(" >>> " + context.getProperties().get("cmp.name")); | |
} | |
/** |
This file contains hidden or 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
//Modify getName() method as follows | |
public String getName(){ | |
Depth1 d1 = new Depth1(); | |
return "policywithdep-1.0" + d1.call(" deep call "); | |
} | |
This file contains hidden or 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
package com.y.d1; | |
import com.y.d2.Depth2; | |
public class Depth1 { | |
public String call(String x){ | |
Depth2 d2 = new Depth2(); | |
return "data service " + d2.call(x); | |
} |
This file contains hidden or 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
<groupId>com.y</groupId> | |
<artifactId>non-osgi-dep-depth3</artifactId> | |
<version>1.0.0</version> | |
<packaging>jar</packaging> | |
<name>non-osgi-dep-depth3</name> |
This file contains hidden or 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
<groupId>com.y</groupId> | |
<artifactId>non-osgi-dep-depth2</artifactId> | |
<version>1.0.0</version> | |
<packaging>jar</packaging> | |
<name>non-osgi-dep-depth2</name> | |
<url>http://maven.apache.org</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
This file contains hidden or 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
<groupId>com.y</groupId> | |
<artifactId>non-osgi-dep-depth1</artifactId> | |
<version>1.0.0</version> | |
<packaging>jar</packaging> | |
<name>non-osgi-dep-depth1</name> | |
<url>http://maven.apache.org</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
This file contains hidden or 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
<groupId>com.x</groupId> | |
<artifactId>policy.service.a</artifactId> | |
<version>1.0.0</version> | |
<packaging>jar</packaging> | |
================================== | |
<dependency> | |
<groupId>com.x</groupId> | |
<artifactId>policy.service.api</artifactId> |