Search in sources :

Example 1 with DefaultApplicationContext

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);
}
Also used : DefaultApplicationContext(co.cask.cdap.app.DefaultApplicationContext) DefaultAppConfigurer(co.cask.cdap.app.DefaultAppConfigurer)

Aggregations

DefaultAppConfigurer (co.cask.cdap.app.DefaultAppConfigurer)1 DefaultApplicationContext (co.cask.cdap.app.DefaultApplicationContext)1