You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mc...@apache.org on 2003/09/06 10:48:05 UTC
cvs commit: avalon-sandbox/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl DefaultTypeRepository.java
mcconnell 2003/09/06 01:48:05
Modified: merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl
DefaultTypeRepository.java
Log:
Doc updates and removal of some dead code.
Revision Changes Path
1.3 +7 -58 avalon-sandbox/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/DefaultTypeRepository.java
Index: DefaultTypeRepository.java
===================================================================
RCS file: /home/cvs/avalon-sandbox/merlin/composition/impl/src/java/org/apache/avalon/composition/model/impl/DefaultTypeRepository.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultTypeRepository.java 6 Sep 2003 05:39:08 -0000 1.2
+++ DefaultTypeRepository.java 6 Sep 2003 08:48:04 -0000 1.3
@@ -137,7 +137,9 @@
/**
* Creation of a new type manager.
- * @param parent the parent type manager
+ * @param logger the assigned logging channel
+ * @param classloader the classloader
+ * @param parent the parent type repository
* @param types the list of types local to the repository
* @exception NullPointerException if the type list is null
*/
@@ -371,63 +373,6 @@
}
/**
- * Return the set of profiles matching the supplied dependency.
- * @param dependency the dependency descriptor
- * @return the set of available profiles
- */
- /*
- public Profile[] getProfiles( DependencyDescriptor dependency )
- {
- if( dependency == null )
- {
- throw new NullPointerException( "dependency" );
- }
-
- Profile[] profiles = getProfiles();
- ArrayList list = new ArrayList();
- for( int i=0; i<profiles.length; i++ )
- {
- Profile profile = profiles[i];
- Type type = getType( profile.getClassname() );
- if( type != null )
- {
- if( type.getService( dependency ) != null )
- {
- list.add( profile );
- }
- }
- return (Profile[]) list.toArray( new Profile[0] );
- }
- */
-
- /**
- * Return the set of profiles matching the supplied stage.
- * @param stage the stage descriptor
- * @return the set of extension profiles
- */
- /*
- public Profile[] getProfiles( StageDescriptor stage )
- {
- if( stage == null )
- {
- throw new NullPointerException( "stage" );
- }
-
- Profile[] profiles = getProfiles();
- ArrayList list = new ArrayList();
- for( int i=0; i<profiles.length; i++ )
- {
- Profile profile = profiles[i];
- if( profile.getExtensions( stage ) != null )
- {
- list.add( profile );
- }
- }
- return (Profile[]) list.toArray( new Profile[0] );
- }
- */
-
- /**
* Return the set of local profiles.
* @return a profile or null if a profile connot be resolve
*/
@@ -436,6 +381,10 @@
return (Profile[]) m_profiles.values().toArray( new Profile[0] );
}
+ /**
+ * Return the logging channel assigned to the component.
+ * @return the assigned logging channel
+ */
protected Logger getLogger()
{
return m_logger;
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org