@PolicySets("frascati:scaEasyPrimitive") public class MemoryReceiverImpl extends AbstractReceiverImpl implements MemoryReceiver {
private void readPolicySets(PolicySets policySetAnnotation, List<PolicySet> policySets) { if (policySetAnnotation != null) { String[] policySetNames = policySetAnnotation.value(); if (policySetNames.length != 0) { //Operation operation = assemblyFactory.createOperation(); //operation.setName(method.getName()); //operation.setUnresolved(true); for (String policySetName : policySetNames) { // Add each intent to the list, associated with the // operation corresponding to the annotated method PolicySet policySet = policyFactory.createPolicySet(); policySet.setName(getQName(policySetName)); //intent.getOperations().add(operation); policySets.add(policySet); } } } }
@PolicySets("frascati:scaEasyPrimitive") public abstract class AbstractExtendedBehaviourImpl extends AbstractBehaviourImpl implements ExtendedBehaviour {
private void readPolicySets(PolicySets policySetAnnotation, List<PolicySet> policySets) { if (policySetAnnotation != null) { String[] policySetNames = policySetAnnotation.value(); if (policySetNames.length != 0) { //Operation operation = assemblyFactory.createOperation(); //operation.setName(method.getName()); //operation.setUnresolved(true); for (String policySetName : policySetNames) { // Add each intent to the list, associated with the // operation corresponding to the annotated method PolicySet policySet = policyFactory.createPolicySet(); policySet.setName(getQName(policySetName)); //intent.getOperations().add(operation); policySets.add(policySet); } } } }
@PolicySets("frascati:scaEasyPrimitive") public abstract class AbstractEndpointImpl extends SCAComponentImpl implements Endpoint {
/** * Evaluates a policy set annotation. * * @param annotation the policy set annotation * @param modelObject the model object the policy set is associated with * @param context the current introspection context */ private void processPolicySets(PolicySets annotation, PolicyAware modelObject, IntrospectionContext context) { String[] policySets = annotation.value(); for (String set : policySets) { try { QName qName = QName.valueOf(set); modelObject.addPolicySet(qName); } catch (IllegalArgumentException e) { InvalidIntentName error = new InvalidIntentName(set, null, e); context.addError(error); } } }
@PolicySets("frascati:scaEasyPrimitive") public abstract class AbstractSenderImpl extends SCAComponentImpl implements Sender {
/** * Read policy set annotations on a given interface or class * @param policySetAnnotation * @param policySets */ private void readPolicySets(PolicySets policySetAnnotation, List<PolicySet> policySets) { if (policySetAnnotation != null) { String[] policySetNames = policySetAnnotation.value(); if (policySetNames.length != 0) { //Operation operation = assemblyFactory.createOperation(); //operation.setName(method.getName()); //operation.setUnresolved(true); for (String policySetName : policySetNames) { // Add each intent to the list, associated with the // operation corresponding to the annotated method PolicySet policySet = policyFactory.createPolicySet(); policySet.setName(getQName(policySetName)); //intent.getOperations().add(operation); policySets.add(policySet); } } } }
@PolicySets("frascati:scaEasyPrimitive") public abstract class AbstractReceiverImpl extends SCAComponentImpl implements Receiver {
String[] policySetNames = policySetAnnotation.value(); if (policySetNames.length != 0) { for (String policySetName : policySetNames) {
@PolicySets("frascati:scaEasyPrimitive") public class ProviderEndpointImpl extends SCAComponentImpl implements ProviderEndpoint {
String[] policySetNames = policySetAnnotation.value(); if (policySetNames.length != 0) { for (String policySetName : policySetNames) {
@PolicySets("frascati:scaEasyPrimitive") public class SysoutSenderImpl extends AbstractSenderImpl implements Sender {
@Scope("COMPOSITE") @org.oasisopen.sca.annotation.Service(value=com.ebmwebsourcing.easyviper.core.api.model.compiler.Compiler.class,names="service") @PolicySets("frascati:scaEasyPrimitive") public class TestCompiler extends AbstractCompiler implements com.ebmwebsourcing.easyviper.core.api.model.compiler.Compiler{
@PolicySets("frascati:scaEasyPrimitive") public class ClientEndpointImpl extends SCAComponentImpl implements ClientEndpoint {
@PolicySets("frascati:scaEasyCompositeWithContent") public class ModelImpl extends SCAComponentImpl implements Model {
@PolicySets("frascati:scaEasyPrimitive") public class AssignBehaviourImpl extends AbstractBehaviourImpl implements AssignBehaviour {
@PolicySets("frascati:scaEasyCompositeWithContent") public class ExecutionEnvironmentTestImpl extends SCAComponentImpl implements ExecutionEnvironmentTest {
@Scope("COMPOSITE") @Service(value=SCAComponent.class,names="service") @PolicySets("frascati:scaEasyPrimitive") public abstract class SCAComponentImpl implements SCAComponent {
@PolicySets("frascati:scaEasyCompositeWithContent") public class CoreImpl extends SCAComponentImpl implements Core {