You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/03/13 16:20:24 UTC
svn commit: r517728 - in
/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany:
assembly/model/ assembly/util/ policy/ policy/model/
Author: jsdelfino
Date: Tue Mar 13 08:20:23 2007
New Revision: 517728
URL: http://svn.apache.org/viewvc?view=rev&rev=517728
Log:
Added Service interfaces following the same scheme as References. Base interfaces to support extensions. Moved the policy related interfaces to a separate package, they can be moved to a separate module later.
Added:
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/AbstractService.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentService.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Extensible.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Undefinable.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/Intent.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySet.java (with props)
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java (with props)
Removed:
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/IntentAttachPoint.java
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/PolicySetAttachPoint.java
Modified:
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Binding.java
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentReference.java
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java
incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/AbstractService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/AbstractService.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/AbstractService.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/AbstractService.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.assembly.model;
+
+
+
+
+/**
+ * Represents a service contract.
+ */
+public interface AbstractService extends Contract {
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/AbstractService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/AbstractService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Binding.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Binding.java?view=diff&rev=517728&r1=517727&r2=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Binding.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Binding.java Tue Mar 13 08:20:23 2007
@@ -18,12 +18,15 @@
*/
package org.apache.tuscany.assembly.model;
+import org.apache.tuscany.assembly.util.Extensible;
+import org.apache.tuscany.policy.model.IntentAttachPoint;
+import org.apache.tuscany.policy.model.PolicySetAttachPoint;
/**
* Represents a binding.
*/
-public interface Binding extends IntentAttachPoint, PolicySetAttachPoint {
+public interface Binding extends Extensible, IntentAttachPoint, PolicySetAttachPoint {
/**
* Returns the binding URI.
Modified: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentReference.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentReference.java?view=diff&rev=517728&r1=517727&r2=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentReference.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentReference.java Tue Mar 13 08:20:23 2007
@@ -18,12 +18,14 @@
*/
package org.apache.tuscany.assembly.model;
+import org.apache.tuscany.assembly.util.Undefinable;
+
/**
* An instance of a reference associated with a particular component.
*/
-public interface ComponentReference extends Reference {
+public interface ComponentReference extends Reference, Undefinable {
/**
* Returns the reference defined by the implementation for this reference.
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentService.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentService.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentService.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.assembly.model;
+
+import org.apache.tuscany.assembly.util.Undefinable;
+
+
+
+/**
+ * An addressable instance of a service associated with a particular component.
+ */
+public interface ComponentService extends Service, Undefinable {
+
+ /**
+ * Returns the reference defined by the implementation for this reference.
+ * @return
+ */
+ Service getService();
+
+ /**
+ * Sets the reference defined by the implementation for this reference.
+ * @param reference
+ */
+ void setServiceImplementation(Service service);
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/ComponentService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.assembly.model;
+
+import java.util.List;
+
+
+/**
+ * Represents a composite service.
+ */
+public interface CompositeService extends Service {
+
+ /**
+ * Returns the promoted component service .
+ * @return the promoted component service.
+ */
+ ComponentService getPromotedService();
+
+ /**
+ * Returns the bindings supported for callbacks.
+ * @return the bindings supported for callbacks
+ */
+ List<Binding> getCallbackBindings();
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/CompositeService.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java?view=diff&rev=517728&r1=517727&r2=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Contract.java Tue Mar 13 08:20:23 2007
@@ -18,13 +18,15 @@
*/
package org.apache.tuscany.assembly.model;
+import org.apache.tuscany.assembly.util.Extensible;
+import org.apache.tuscany.policy.model.IntentAttachPoint;
/**
* Interface contracts define one or more business functions. These business functions are
* provided by services and are used by references.
*/
-public interface Contract extends IntentAttachPoint {
+public interface Contract extends Extensible, IntentAttachPoint {
/**
* Returns the name of the contract.
Modified: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java?view=diff&rev=517728&r1=517727&r2=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Interface.java Tue Mar 13 08:20:23 2007
@@ -18,6 +18,7 @@
*/
package org.apache.tuscany.assembly.model;
+import org.apache.tuscany.policy.model.IntentAttachPoint;
/**
* Represents a service interface.
@@ -25,4 +26,29 @@
* Java interfaces, WSDL 1.1 portTypes and WSDL 2.0 interfaces.
*/
public interface Interface extends IntentAttachPoint {
+
+ /**
+ * Returns true if the interface is conversational.
+ * @return true if the interface is conversational
+ */
+ boolean isConversational();
+
+ /**
+ * Sets whether the interface is conversational or not.
+ * @param conversational indicates whether the interface is conversational or not
+ */
+ void setConversational(boolean conversational);
+
+ /**
+ * Returns true if the interface is a local interface..
+ * @return true if the interface is a local interface
+ */
+ boolean isLocal();
+
+ /**
+ * Sets whether the interface is a local or remotable interface.
+ * @param local indicates whether the interface is local or remotable
+ */
+ void setLocal(boolean local);
+
}
Modified: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java?view=diff&rev=517728&r1=517727&r2=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Reference.java Tue Mar 13 08:20:23 2007
@@ -20,13 +20,15 @@
import java.util.List;
+import org.apache.tuscany.assembly.util.Undefinable;
+import org.apache.tuscany.policy.model.PolicySetAttachPoint;
/**
* Represents a reference. References within an implementation represent
* links to services that the implementation uses that must be provided by other components.
*/
-public interface Reference extends AbstractReference, PolicySetAttachPoint {
+public interface Reference extends AbstractReference, PolicySetAttachPoint, Undefinable {
/**
* Returns a boolean value, "false" by default, which indicates that the implementation wires this
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.assembly.model;
+
+import java.util.List;
+
+import org.apache.tuscany.assembly.util.Undefinable;
+import org.apache.tuscany.policy.model.PolicySetAttachPoint;
+
+
+/**
+ * Represents a service. Services are used to publish services provided by
+ * implementations, so that they are addressable by other components.
+ */
+public interface Service extends AbstractService, PolicySetAttachPoint, Undefinable {
+
+ /**
+ * Returns the bindings supported by this service.
+ * @return the bindings supported by this service
+ */
+ List<Binding> getBindings();
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Service.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.assembly.model;
+
+import org.apache.tuscany.assembly.util.Extensible;
+
+
+
+/**
+ * Represents a wire.
+ */
+public interface Wire extends Extensible {
+
+ /**
+ * Returns the source of the wire.
+ * @return the source of the wire
+ */
+ ComponentReference getSource();
+
+ /**
+ * Sets the source of the wire.
+ * @param source the source of the wire
+ */
+ void setSource(ComponentReference source);
+
+ /**
+ * Returns the target of the wire.
+ * @return the target of the wire
+ */
+ ComponentService getTarget();
+
+ /**
+ * Sets the target of the wire.
+ * @param target the target of the wire
+ */
+ void setTarget(ComponentService target);
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/model/Wire.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Extensible.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Extensible.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Extensible.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Extensible.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.assembly.util;
+
+import java.util.List;
+
+/**
+ * Base interface for all assembly model objects that can host extensions.
+ */
+public interface Extensible {
+
+ /**
+ * Returns a list of extension objects contained in this model object.
+ * @return a list of extension objects container in this model object
+ */
+ List<?> getExtensions();
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Extensible.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Extensible.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Undefinable.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Undefinable.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Undefinable.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Undefinable.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.assembly.util;
+
+
+
+/**
+ * Represents a model object that can be marked undefined. This can be used to represent
+ * pointers to missing elements (e.g. an Include of a missing composite) or temporarily mark
+ * pointed objects as undefined until they are actually loaded and initialized.
+ */
+public interface Undefinable {
+
+ /**
+ * Returns true if the implementation is undefined.
+ * @return true if the implementation is undefined.
+ */
+ boolean isUndefined();
+
+ /**
+ * Sets whether the implementation is undefined.
+ * @param undefined whether the implementation is undefined
+ */
+ void setUndefined(boolean undefined);
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Undefinable.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/assembly/util/Undefinable.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/Intent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/Intent.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/Intent.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/Intent.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.policy.model;
+
+
+
+/**
+ * Represents a policy intent. See the Policy Framework specification for a description of this attribute.
+ */
+public interface Intent {
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/Intent.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/Intent.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.policy.model;
+
+import java.util.List;
+
+/**
+ * Base interface for all assembly model objects that can be have policy intents attached to them.
+ */
+public interface IntentAttachPoint {
+
+ /**
+ * Returns a list of policy intents. See the Policy Framework specification for a description of this attribute.
+ * @return a list of policy intents.
+ */
+ List<?> getRequiredIntents();
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/IntentAttachPoint.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySet.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySet.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySet.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySet.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.policy.model;
+
+
+
+/**
+ * Represents a policy set. See the Policy Framework specification for a description of this attribute.
+ */
+public interface PolicySet {
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySet.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySet.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java?view=auto&rev=517728
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java (added)
+++ incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java Tue Mar 13 08:20:23 2007
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.tuscany.policy.model;
+
+import java.util.List;
+
+/**
+ * Base interface for all assembly model objects that can have policy sets attached to them.
+ */
+public interface PolicySetAttachPoint {
+
+ /**
+ * Returns a list of policy sets. See the Policy Framework specification for a description of this attribute.
+ * @return a list of policy sets.
+ */
+ List<?> getPolicySets();
+
+}
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/branches/sca-java-integration/sca/assembly/src/main/java/org/apache/tuscany/policy/model/PolicySetAttachPoint.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org