use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class JpaAuditMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}.</li>
* <li>Registers {@link RooJavaType#ROO_JPA_AUDIT} as additional
* JavaType that will trigger metadata registration.</li>
* <li>Set ensure the governor type details represent a class.</li>
* </ul>
*/
@Override
protected void activate(final ComponentContext cContext) {
context = cContext.getBundleContext();
this.registryTracker = new MetadataDependencyRegistryTracker(context, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
this.registryTracker.open();
addMetadataTrigger(ROO_JPA_AUDIT);
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class JpaDataOnDemandMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}</li>
* <li>Create and open the {@link ItdTriggerBasedMetadataProviderTracker}
* to track for {@link ConfigurableMetadataProvider} service.</li>
* <li>Registers {@link RooJavaType#ROO_JPA_DATA_ON_DEMAND} as additional
* JavaType that will trigger metadata registration.</li>
* </ul>
*/
@Override
protected void activate(final ComponentContext cContext) {
super.activate(cContext);
BundleContext localContext = cContext.getBundleContext();
this.registryTracker = new MetadataDependencyRegistryTracker(localContext, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
this.registryTracker.open();
// DOD classes are @Configurable because they may need DI of other DOD
// classes that provide M:1 relationships
this.configurableMetadataProviderTracker = new ItdTriggerBasedMetadataProviderTracker(localContext, ConfigurableMetadataProvider.class, ROO_JPA_DATA_ON_DEMAND);
this.configurableMetadataProviderTracker.open();
addMetadataTrigger(ROO_JPA_DATA_ON_DEMAND);
serviceInstaceManager.activate(cContext.getBundleContext());
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class JpaDataOnDemandConfigurationMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}</li>
* <li>Create and open the {@link ItdTriggerBasedMetadataProviderTracker}
* to track for {@link ConfigurableMetadataProvider} service.</li>
* <li>Registers {@link RooJavaType#ROO_JPA_DATA_ON_DEMAND_CONFIGURATION} as
* additional JavaType that will trigger metadata registration.</li>
* </ul>
*/
@Override
protected void activate(final ComponentContext cContext) {
super.activate(cContext);
BundleContext localContext = cContext.getBundleContext();
this.registryTracker = new MetadataDependencyRegistryTracker(localContext, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
this.registryTracker.open();
addMetadataTrigger(ROO_JPA_DATA_ON_DEMAND_CONFIGURATION);
serviceInstaceManager.activate(cContext.getBundleContext());
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class JpaEntityMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}.</li>
* <li>Create and open the {@link CustomDataKeyDecoratorTracker}.</li>
* <li>Registers {@link RooJavaType#TRIGGER_ANNOTATIONS} as additional
* JavaType that will trigger metadata registration.</li>
* </ul>
*/
@Override
protected void activate(final ComponentContext cContext) {
context = cContext.getBundleContext();
this.registryTracker = new MetadataDependencyRegistryTracker(context, null, PhysicalTypeIdentifier.getMetadataIdentiferType(), PROVIDES_TYPE);
this.registryTracker.open();
addMetadataTriggers(TRIGGER_ANNOTATIONS);
this.keyDecoratorTracker = new CustomDataKeyDecoratorTracker(context, getClass(), getMatchers());
this.keyDecoratorTracker.open();
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class JpaEntityFactoryMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}</li>
* <li>Create and open the {@link ItdTriggerBasedMetadataProviderTracker}
* to track for {@link ConfigurableMetadataProvider} service.</li>
* <li>Registers {@link RooJavaType#ROO_JPA_DATA_ON_DEMAND_CONFIGURATION} as
* additional JavaType that will trigger metadata registration.</li>
* </ul>
*/
@Override
protected void activate(final ComponentContext cContext) {
super.activate(cContext);
BundleContext localContext = cContext.getBundleContext();
this.registryTracker = new MetadataDependencyRegistryTracker(localContext, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
this.registryTracker.open();
addMetadataTrigger(ROO_JPA_ENTITY_FACTORY);
serviceInstaceManager.activate(cContext.getBundleContext());
}
Aggregations