I would like to have an AvalonClassLoader that we can use to get all the
types from the classlaoder. Since we have special class meta info
stored
in the Manifest.mf file for which classes are components (and RSN which
interfaces are services), It would really help container developers if
they could grab an array or list of classes in the classloader that are
Services/Components.
For instance:
AvalonClassloader m_loader = new AvalonClassLoader( jarFileName );
String[] services = m_loader.getServices();
for (int I = 0; I < services.length; I++)
{
InputStream is = m_loader.getResourceAsStream( services[I] );
// perform service validations
}
String[] components = m_loader.getComponents();
for (int I = 0; I < components.length; I++)
{
InputStream is = m_loader.getResourceAsStream( components[I] );
// perform component validations
}
Has anyone done something like this?
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>