mcconnell 2002/07/03 20:35:56 Modified: containerkit/src/java/org/apache/excalibur/containerkit/metadata ComponentMetaData.java Log: Addition of a context accessor method enabling classes that specialize ComponetMetaData to handle the creation of context values that are in accordance with the metainfo.ContextCriteria constraints. The impact of this change is that contains that use the ComponentMetaData class can be assured of a consitent and rational solution based on specilized implementations without resorting to casting to a alternative class. Revision Changes Path 1.8 +14 -1 jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metadata/ComponentMetaData.java Index: ComponentMetaData.java =================================================================== RCS file: /home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metadata/ComponentMetaData.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- ComponentMetaData.java 29 Jun 2002 13:34:36 -0000 1.7 +++ ComponentMetaData.java 4 Jul 2002 03:35:56 -0000 1.8 @@ -10,6 +10,7 @@ import org.apache.excalibur.containerkit.metainfo.ComponentInfo; import org.apache.avalon.framework.parameters.Parameters; import org.apache.avalon.framework.configuration.Configuration; +import org.apache.avalon.framework.context.Context; /** * Each component declared in the application is represented by @@ -107,6 +108,18 @@ { return m_componentInfo; } + + /** + * Return the context for the component. + * + * @param the parent context. + * @return the context for component type. + */ + public Context getContext( Context parent ) + { + return parent; + } + /** * Return the dependency metadata for component type.
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>