You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jd...@apache.org on 2008/03/27 20:03:52 UTC
svn commit: r641947 -
/geronimo/gshell/trunk/gshell-support/gshell-plexus/src/main/java/org/apache/geronimo/gshell/support/plexus/GShellPlexusContainer.java
Author: jdillon
Date: Thu Mar 27 12:03:39 2008
New Revision: 641947
URL: http://svn.apache.org/viewvc?rev=641947&view=rev
Log:
Comment
Modified:
geronimo/gshell/trunk/gshell-support/gshell-plexus/src/main/java/org/apache/geronimo/gshell/support/plexus/GShellPlexusContainer.java
Modified: geronimo/gshell/trunk/gshell-support/gshell-plexus/src/main/java/org/apache/geronimo/gshell/support/plexus/GShellPlexusContainer.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-plexus/src/main/java/org/apache/geronimo/gshell/support/plexus/GShellPlexusContainer.java?rev=641947&r1=641946&r2=641947&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-plexus/src/main/java/org/apache/geronimo/gshell/support/plexus/GShellPlexusContainer.java (original)
+++ geronimo/gshell/trunk/gshell-support/gshell-plexus/src/main/java/org/apache/geronimo/gshell/support/plexus/GShellPlexusContainer.java Thu Mar 27 12:03:39 2008
@@ -39,6 +39,10 @@
public GShellPlexusContainer(final ContainerConfiguration configuration) throws PlexusContainerException {
super(configuration);
}
+
+ //
+ // Add type-safe lookups based on class roles
+ //
@SuppressWarnings("unchecked")
public <T> T lookupComponent(final Class<T> role) throws ComponentLookupException {