Skip to content

Instantly share code, notes, and snippets.

@gastaldi
Created September 9, 2013 14:33
Show Gist options
  • Select an option

  • Save gastaldi/6496448 to your computer and use it in GitHub Desktop.

Select an option

Save gastaldi/6496448 to your computer and use it in GitHub Desktop.
/**
* This interface should be implemented by {@link Facet}s that supports configuration descriptors
*
* @author <a href="ggastald@redhat.com">George Gastaldi</a>
*/
public interface HasDescriptor<DESC extends Descriptor>
{
/**
* Return the {@link Descriptor} of the specification for which this facet represents.
*/
DESC getConfig();
/**
* Returns the {@link FileResource} of
*
* @return
*/
FileResource<?> getConfigFile();
/**
* Persists the current {@link Descriptor}
*/
void saveConfig(DESC descriptor);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment