use of org.springframework.roo.addon.javabean.addon.SerializableMetadataProvider in project spring-roo by spring-projects.
the class IdentifierMetadataProviderImpl method activate.
/**
* This service is being activated so setup it:
* <ul>
* <li>Create and open the {@link MetadataDependencyRegistryTracker}.</li>
* <li>Create and open one {@link ItdTriggerBasedMetadataProviderTracker}
* for each {@link ConfigurableMetadataProvider} and {@link SerializableMetadataProvider}.</li>
* <li>Registers {@link RooJavaType#ROO_IDENTIFIER} 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_IDENTIFIER);
this.configurableMetadataProviderTracker = new ItdTriggerBasedMetadataProviderTracker(context, ConfigurableMetadataProvider.class, ROO_IDENTIFIER);
this.configurableMetadataProviderTracker.open();
this.serializableMetadataProviderTracker = new ItdTriggerBasedMetadataProviderTracker(context, SerializableMetadataProvider.class, ROO_IDENTIFIER);
this.serializableMetadataProviderTracker.open();
}
Aggregations