Search in sources :

Example 11 with MetadataDependencyRegistryTracker

use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.

the class DefaultMetadataService method activate.

/**
 * This service is being activated so setup it:
 * <ul>
 * <li>Create and open the {@link MetadataDependencyRegistryTracker}.</li>
 * </ul>
 */
protected void activate(final ComponentContext context) {
    this.registryTracker = new MetadataDependencyRegistryTracker(context.getBundleContext(), this);
    this.registryTracker.open();
}
Also used : MetadataDependencyRegistryTracker(org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker)

Example 12 with MetadataDependencyRegistryTracker

use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.

the class SeiMetadataProviderImpl 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_CONTROLLER} 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) {
    context = cContext.getBundleContext();
    serviceInstaceManager.activate(this.context);
    super.setDependsOnGovernorBeingAClass(false);
    this.registryTracker = new MetadataDependencyRegistryTracker(context, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
    this.registryTracker.open();
    addMetadataTrigger(ROO_SEI);
}
Also used : MetadataDependencyRegistryTracker(org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker)

Example 13 with MetadataDependencyRegistryTracker

use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.

the class WsClientsMetadataProviderImpl 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_CONTROLLER} 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) {
    context = cContext.getBundleContext();
    serviceInstaceManager.activate(this.context);
    this.registryTracker = new MetadataDependencyRegistryTracker(context, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
    this.registryTracker.open();
    addMetadataTrigger(ROO_WS_CLIENTS);
}
Also used : MetadataDependencyRegistryTracker(org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker)

Example 14 with MetadataDependencyRegistryTracker

use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.

the class WsEndpointsMetadataProviderImpl 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_CONTROLLER} 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) {
    context = cContext.getBundleContext();
    serviceInstaceManager.activate(this.context);
    this.registryTracker = new MetadataDependencyRegistryTracker(context, this, PhysicalTypeIdentifier.getMetadataIdentiferType(), getProvidesType());
    this.registryTracker.open();
    addMetadataTrigger(ROO_WS_ENDPOINTS);
}
Also used : MetadataDependencyRegistryTracker(org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker)

Example 15 with MetadataDependencyRegistryTracker

use of org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker in project spring-roo by spring-projects.

the class JspMetadataListener method activate.

/**
 * This service is being activated so setup it:
 * <ul>
 * <li>Create and open the {@link MetadataDependencyRegistryTracker}.</li>
 * </ul>
 */
protected void activate(final ComponentContext cContext) {
    this.context = cContext.getBundleContext();
    this.registryTracker = new MetadataDependencyRegistryTracker(context, this, new MetadataDependency(WebScaffoldMetadata.getMetadataIdentiferType(), getProvidesType()), new MetadataDependency(WebFinderMetadata.getMetadataIdentiferType(), getProvidesType()));
    this.registryTracker.open();
}
Also used : MetadataDependencyRegistryTracker(org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker) MetadataDependency(org.springframework.roo.metadata.MetadataDependency)

Aggregations

MetadataDependencyRegistryTracker (org.springframework.roo.metadata.internal.MetadataDependencyRegistryTracker)47 BundleContext (org.osgi.framework.BundleContext)6 CustomDataKeyDecoratorTracker (org.springframework.roo.classpath.customdata.taggers.CustomDataKeyDecoratorTracker)6 LayerTypeMatcher (org.springframework.roo.classpath.layers.LayerTypeMatcher)5 JavaSymbolName (org.springframework.roo.model.JavaSymbolName)5 ConfigurableMetadataProvider (org.springframework.roo.addon.configurable.addon.ConfigurableMetadataProvider)2 ItdTriggerBasedMetadataProviderTracker (org.springframework.roo.classpath.itd.ItdTriggerBasedMetadataProviderTracker)2 Bundle (org.osgi.framework.Bundle)1 SerializableMetadataProvider (org.springframework.roo.addon.javabean.addon.SerializableMetadataProvider)1 MetadataDependency (org.springframework.roo.metadata.MetadataDependency)1