Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/host/ServletHost.java URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/host/ServletHost.java?view=diff&rev=471111&r1=471110&r2=471111 ============================================================================== --- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/host/ServletHost.java (original) +++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/host/ServletHost.java Fri Nov 3 20:06:48 2006 @@ -21,9 +21,9 @@ import javax.servlet.Servlet; /** - * ServiceDefinition interface implemented by host environments that allow Servlets to be registered. + * Interface implemented by host environments that allow Servlets to be registered. * <p/> - * This interface allows an SCA system component to register a servlet to handle inbound requests. + * This interface allows an SCA system service to register a servlet to handle inbound requests. * * @version $Rev$ $Date$ */ @@ -42,7 +42,7 @@ * registered Servlet. * * @param mapping the uri-mapping for the Servlet - * @returns the servlet that was registered to the mapping, null if nothing was registered to the mapping + * @return the servlet that was registered to the mapping, null if nothing was registered to the mapping */ Servlet unregisterMapping(String mapping);
Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/Resource.java URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/Resource.java?view=diff&rev=471111&r1=471110&r2=471111 ============================================================================== --- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/Resource.java (original) +++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/implementation/java/Resource.java Fri Nov 3 20:06:48 2006 @@ -33,26 +33,52 @@ private Member member; private Class<?> type; + /** + * The name of the resource + * + * @return the name of the resource + */ public String getName() { return name; } + /** + * Sets the name of the resource + * + * @param name the name of the resource + */ public void setName(String name) { this.name = name; } + /** + * Returns the URI of the resource + * + * @return the URI of the resource + */ public String getMappedName() { return mappedName; } + /** + * Sets the resource URI + */ public void setMappedName(String mappedName) { this.mappedName = mappedName; } + /** + * If true, the resource is optional + * + * @return true if the resource is optional + */ public boolean isOptional() { return optional; } + /** + * Sets whether the resource is optional + */ public void setOptional(boolean optional) { this.optional = optional; } @@ -75,10 +101,18 @@ this.member = member; } + /** + * Returns the resource type + * + * @return the resource type + */ public Class<?> getType() { return type; } + /** + * Sets the resource type + */ public void setType(Class<?> type) { this.type = type; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
