use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class DbreMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}</li>
* <li>Registers {@link RooJavaType#ROO_DB_MANAGED} 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(), getProvidesType());
this.registryTracker.open();
addMetadataTrigger(ROO_DB_MANAGED);
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class SerializableMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}</li>
* <li>Registers {@link RooJavaType#ROO_SERIALIZABLE} 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(), getProvidesType());
this.registryTracker.open();
addMetadataTrigger(ROO_SERIALIZABLE);
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class EqualsMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}</li>
* <li>Registers {@link RooJavaType#ROO_EQUALS} as additional JavaType
* that will trigger metadata registration.</li>
* </ul>
*/
@Override
protected void activate(final ComponentContext cContext) {
super.activate(cContext);
this.registryTracker = new MetadataDependencyRegistryTracker(cContext.getBundleContext(), this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
this.registryTracker.open();
addMetadataTrigger(ROO_EQUALS);
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class DtoMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}.</li>
* <li>Registers {@link RooJavaType#ROO_DTO} 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_DTO);
}
use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.
the class RepositoryJpaCustomMetadataProviderImpl 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#ROO_REPOSITORY_JPA_CUSTOM} as additional
* JavaType that will trigger metadata registration.</li>
* <li>Set ensure the governor type details represent a class.</li>
* </ul>
*/
@Override
@SuppressWarnings("unchecked")
protected void activate(final ComponentContext cContext) {
super.activate(cContext);
BundleContext localContext = cContext.getBundleContext();
super.setDependsOnGovernorBeingAClass(false);
this.registryTracker = new MetadataDependencyRegistryTracker(localContext, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
this.registryTracker.open();
addMetadataTrigger(ROO_REPOSITORY_JPA_CUSTOM);
this.keyDecoratorTracker = new CustomDataKeyDecoratorTracker(localContext, getClass(), new LayerTypeMatcher(ROO_REPOSITORY_JPA_CUSTOM, new JavaSymbolName(RooJpaRepositoryCustom.ENTITY_ATTRIBUTE)));
this.keyDecoratorTracker.open();
}
Aggregations