-
Notifications
You must be signed in to change notification settings - Fork 8
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 #656 from eclipse-passage/571190
Bug 571190 build the solution on Framework services host
- Loading branch information
Showing
15 changed files
with
155 additions
and
53 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
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
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
31 changes: 31 additions & 0 deletions
31
...sage.lic.equinox/src/org/eclipse/passage/lic/internal/equinox/SuppliedFrameworkAware.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.equinox; | ||
|
||
import org.eclipse.passage.lic.internal.api.FrameworkSupplier; | ||
|
||
/** | ||
* <p> | ||
* Base for services relying in a framework facilities. | ||
* </p> | ||
* <p> | ||
* Use {@code withFrameworkService} to implement client level secondary services | ||
* or {@code withFramework} to retrieve parts of configuration directly. | ||
*/ | ||
public abstract class SuppliedFrameworkAware extends FrameworkAware<FrameworkSupplier> { | ||
|
||
protected SuppliedFrameworkAware() { | ||
super(FrameworkSupplier.class, FrameworkSupplier::get); | ||
} | ||
|
||
} |
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
28 changes: 28 additions & 0 deletions
28
...g.eclipse.passage.lic.net/src/org/eclipse/passage/lic/internal/net/NetFrameworkAware.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.net; | ||
|
||
import java.util.Optional; | ||
|
||
import org.eclipse.passage.lic.internal.equinox.FrameworkAware; | ||
import org.eclipse.passage.lic.internal.net.api.FrameworkConstructor; | ||
import org.eclipse.passage.lic.internal.net.api.handle.NetRequest; | ||
import org.eclipse.passage.lic.internal.net.handle.ProductUserRequest; | ||
|
||
public abstract class NetFrameworkAware<R extends NetRequest> extends FrameworkAware<FrameworkConstructor> { | ||
|
||
protected NetFrameworkAware(ProductUserRequest<R> request) { | ||
super(FrameworkConstructor.class, ctor -> Optional.of(ctor.forRequest(request))); | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...se.passage.lic.net/src/org/eclipse/passage/lic/internal/net/api/FrameworkConstructor.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.passage.lic.internal.net.api; | ||
|
||
import org.eclipse.passage.lic.internal.api.Framework; | ||
import org.eclipse.passage.lic.internal.net.api.handle.NetRequest; | ||
import org.eclipse.passage.lic.internal.net.handle.ProductUserRequest; | ||
|
||
public interface FrameworkConstructor { | ||
|
||
<R extends NetRequest> Framework forRequest(ProductUserRequest<R> request); // | ||
|
||
} |
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