use of co.cask.cdap.app.DefaultApplicationContext in project cdap by caskdata.
the class Specifications method from.
public static ApplicationSpecification from(Application app) {
DefaultAppConfigurer appConfigurer = new DefaultAppConfigurer(Id.Namespace.fromEntityId(DefaultId.NAMESPACE), Id.Artifact.fromEntityId(DefaultId.ARTIFACT), app);
app.configure(appConfigurer, new DefaultApplicationContext());
return appConfigurer.createSpecification(null);
}
Aggregations