Kategorier: Alla - dependency - model - processor - validation

av Johnson Ma för 17 årar sedan

321

STP Policy Framework

The text outlines a policy framework for a Service-Oriented Architecture (SOA) environment, focusing on policy validation, data modeling, artifact processing, and creation. The validation component includes defining rules, subject constraints, and handling conflicts and dependencies between policies.

STP Policy Framework

STP Policy Framework

Policy Data model

Add policy model to STP Intermedia Model
Policy Set
Policy
Policy metadata

Policy URL

or PolicyID in Registry

policy.xml

version
namespace or category
Description
name

Policy Validation

Define validation rules when apply policies to service component.

Validation Rule
eclipse.emf.validation
Build on top of the current rule based xml validation plugin
More validations
subject constraints
subjects {endpoint|message|resource|interation}
conflicts
such as if Policy A exists, then can't add Policy B
Dependency
such as Policy A depends on Policy B

Policy Registry

PolicySet Extension Point

Policy extension points allow user to register predefined policy and schema to the registry. Policy Registry plugin will add those policy set to the database if not exists during startup.

Policy Schema Set extension
PolicySet extension
Registry Client

Client libray for user to use the policy registry.

The return will be policy data model, instead of plain policy xml file

Policy Registry Service
Schema I/F

Get Policy Schema

List Policy Schemas

Remove Policy Schema

Add Policy Schema

Policy I/F

Get Policy

Remove policy

Delete policy

Add policy

List Policies

Policy Database
Embedded Apache Derby
Load/Store XML file

SCA Policy Framework

Since SCA policy association framework allows policies and policy subhects specified using WS-Policy and WS-PolicyAttachement, to be associated with SCA components.

Policy Artifact Processor

Processor Extension Point
Policy Artifact
Configuration file

IONA Artix

@Policy annotation

WebLogic

WS-PolicyAttachment

Such as Apache CXF

Processor Trigger
Other timing
Before Packaing
During service creation
This is runtime specified. Used to transfer policy to runtime artificats.

Policy Creation

Policy Associate
Policy View On Service Component
Policy Reference

Reference to existing policy from policy registry

PolicyEditor
WTP based Policy Editor

For ws-policyattachment

XEF Policy Editor

For schema based policy creation