Skip to content

Instantly share code, notes, and snippets.

@wolfc
Created September 24, 2010 12:15
Show Gist options
  • Save wolfc/595260 to your computer and use it in GitHub Desktop.
Save wolfc/595260 to your computer and use it in GitHub Desktop.
interface Node {
D getDescriptor(Class<D> type);
String getName();
}
interface DescribedJavaEEServer extends Node {
Collection<DescribedJavaEEApplication> getApplications();
}
interface DescribedJavaEEApplication extends Node {
Collection<Node> getChildren();
Node getChild(String name);
}
interface DescribedJavaEEModule extends Node {
Collection<DescribedJavaEEComponent> getComponents();
DescribedJavaEEComponent getComponent(String name);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment