test_class.file: common/src/test/java/org/apache/cxf/dosgi/common/intent/impl/IntentManagerImplTest.java
test_class.identifier: IntentManagerImplTest
test_case.body: @Test
      public void testIntentsFromIntentsProvider() {
          IntentManagerImpl im = new IntentManagerImpl();
          List<Object> intents = im.getIntentsFromService(new DummyServiceWithLoggingIP());
          Assert.assertEquals(1, intents.size());
          Object feature = intents.iterator().next();
          Assert.assertEquals(GZIPFeature.class, feature.getClass());
      }
test_case.class_method_signature: IntentManagerImplTest.testIntentsFromIntentsProvider()
test_case.full_signature: @Test public void testIntentsFromIntentsProvider()
test_case.identifier: testIntentsFromIntentsProvider
test_case.invocations: getIntentsFromService assertEquals size next iterator assertEquals getClass
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIntentsFromIntentsProvider()
focal_class.declarator: LOG = LoggerFactory.getLogger(IntentManagerImpl.class)
focal_class.modifier: static final
focal_class.original_string: static final Logger LOG = LoggerFactory.getLogger(IntentManagerImpl.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: DEFAULT_INTENT_TIMEOUT = 30000
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_INTENT_TIMEOUT = 30000;
focal_class.type: int
focal_class.var_name: DEFAULT_INTENT_TIMEOUT
focal_class.declarator: intentMap = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Object> intentMap = new HashMap<>();
focal_class.type: Map<String, Object>
focal_class.var_name: intentMap
focal_class.declarator: maxIntentWaitTime = DEFAULT_INTENT_TIMEOUT
focal_class.modifier: private final
focal_class.original_string: private final long maxIntentWaitTime = DEFAULT_INTENT_TIMEOUT;
focal_class.type: long
focal_class.var_name: maxIntentWaitTime
focal_class.declarator: tracker
focal_class.modifier: private
focal_class.original_string: private ServiceTracker<Object, Object> tracker;
focal_class.type: ServiceTracker<Object, Object>
focal_class.var_name: tracker
focal_class.file: common/src/main/java/org/apache/cxf/dosgi/common/intent/impl/IntentManagerImpl.java
focal_class.identifier: IntentManagerImpl
focal_class.interfaces: implements IntentManager
focal_class.class_method_signature: IntentManagerImpl.activate(BundleContext context)
focal_class.full_signature: @Activate public void activate(BundleContext context)
focal_class.identifier: activate
focal_class.modifiers: @Activate public
focal_class.parameters: (BundleContext context)
focal_class.return: void
focal_class.signature: void activate(BundleContext context)
focal_class.class_method_signature: IntentManagerImpl.deactivate()
focal_class.full_signature: @Deactivate public void deactivate()
focal_class.identifier: deactivate
focal_class.modifiers: @Deactivate public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void deactivate()
focal_class.class_method_signature: IntentManagerImpl.addIntent(Object intent, String intentName)
focal_class.full_signature: public synchronized void addIntent(Object intent, String intentName)
focal_class.identifier: addIntent
focal_class.modifiers: public synchronized
focal_class.parameters: (Object intent, String intentName)
focal_class.return: void
focal_class.signature: void addIntent(Object intent, String intentName)
focal_class.class_method_signature: IntentManagerImpl.removeIntent(Object intent, String intentName)
focal_class.full_signature: public synchronized void removeIntent(Object intent, String intentName)
focal_class.identifier: removeIntent
focal_class.modifiers: public synchronized
focal_class.parameters: (Object intent, String intentName)
focal_class.return: void
focal_class.signature: void removeIntent(Object intent, String intentName)
focal_class.class_method_signature: IntentManagerImpl.getRequiredIntents(Set<String> requiredIntents)
focal_class.full_signature: @Override @SuppressWarnings("unchecked") public synchronized List<Object> getRequiredIntents(Set<String> requiredIntents)
focal_class.identifier: getRequiredIntents
focal_class.modifiers: @Override @SuppressWarnings("unchecked") public synchronized
focal_class.parameters: (Set<String> requiredIntents)
focal_class.return: List<Object>
focal_class.signature: List<Object> getRequiredIntents(Set<String> requiredIntents)
focal_class.class_method_signature: IntentManagerImpl.getIntent(Class<? extends T> type, List<Object> intents)
focal_class.full_signature: @Override public T getIntent(Class<? extends T> type, List<Object> intents)
focal_class.identifier: getIntent
focal_class.modifiers: @Override public
focal_class.parameters: (Class<? extends T> type, List<Object> intents)
focal_class.return: T
focal_class.signature: T getIntent(Class<? extends T> type, List<Object> intents)
focal_class.class_method_signature: IntentManagerImpl.getIntents(Class<? extends T> type, List<Object> intents)
focal_class.full_signature: @Override public List<T> getIntents(Class<? extends T> type, List<Object> intents)
focal_class.identifier: getIntents
focal_class.modifiers: @Override public
focal_class.parameters: (Class<? extends T> type, List<Object> intents)
focal_class.return: List<T>
focal_class.signature: List<T> getIntents(Class<? extends T> type, List<Object> intents)
focal_class.class_method_signature: IntentManagerImpl.assertAllIntentsSupported(Set<String> requiredIntents)
focal_class.full_signature: public synchronized String[] assertAllIntentsSupported(Set<String> requiredIntents)
focal_class.identifier: assertAllIntentsSupported
focal_class.modifiers: public synchronized
focal_class.parameters: (Set<String> requiredIntents)
focal_class.return: String[]
focal_class.signature: String[] assertAllIntentsSupported(Set<String> requiredIntents)
focal_class.class_method_signature: IntentManagerImpl.getMissingIntents(Collection<String> requiredIntents)
focal_class.full_signature: private synchronized Set<String> getMissingIntents(Collection<String> requiredIntents)
focal_class.identifier: getMissingIntents
focal_class.modifiers: private synchronized
focal_class.parameters: (Collection<String> requiredIntents)
focal_class.return: Set<String>
focal_class.signature: Set<String> getMissingIntents(Collection<String> requiredIntents)
focal_class.class_method_signature: IntentManagerImpl.getExported(Map<String, Object> sd)
focal_class.full_signature: @Override public Set<String> getExported(Map<String, Object> sd)
focal_class.identifier: getExported
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, Object> sd)
focal_class.return: Set<String>
focal_class.signature: Set<String> getExported(Map<String, Object> sd)
focal_class.class_method_signature: IntentManagerImpl.getIntentsFromService(Object serviceBean)
focal_class.full_signature: @Override public List<Object> getIntentsFromService(Object serviceBean)
focal_class.identifier: getIntentsFromService
focal_class.modifiers: @Override public
focal_class.parameters: (Object serviceBean)
focal_class.return: List<Object>
focal_class.signature: List<Object> getIntentsFromService(Object serviceBean)
focal_class.class_method_signature: IntentManagerImpl.getImported(Map<String, Object> sd)
focal_class.full_signature: @Override public Set<String> getImported(Map<String, Object> sd)
focal_class.identifier: getImported
focal_class.modifiers: @Override public
focal_class.parameters: (Map<String, Object> sd)
focal_class.return: Set<String>
focal_class.signature: Set<String> getImported(Map<String, Object> sd)
focal_class.class_method_signature: IntentManagerImpl.parseIntents(Collection<String> intents)
focal_class.full_signature: private static Collection<String> parseIntents(Collection<String> intents)
focal_class.identifier: parseIntents
focal_class.modifiers: private static
focal_class.parameters: (Collection<String> intents)
focal_class.return: Collection<String>
focal_class.signature: Collection<String> parseIntents(Collection<String> intents)
focal_method.body: @Override
      public List<Object> getIntentsFromService(Object serviceBean) {
          List<Object> intents = new ArrayList<>();
          if (serviceBean instanceof IntentsProvider) {
              intents.addAll(((IntentsProvider)serviceBean).getIntents());
          }
          Features features = serviceBean.getClass().getAnnotation(Features.class);
          if (features != null && features.classes() != null) {
              for (Class<?> clazz : features.classes()) {
                  try {
                      intents.add(clazz.newInstance());
                  } catch (Exception e) {
                      throw new RuntimeException("Could not instantiate feature from class " + clazz.getName(), e);
                  }
              }
          }
          return intents;
      }
focal_method.class_method_signature: IntentManagerImpl.getIntentsFromService(Object serviceBean)
focal_method.full_signature: @Override public List<Object> getIntentsFromService(Object serviceBean)
focal_method.identifier: getIntentsFromService
focal_method.invocations: addAll getIntents getAnnotation getClass classes classes add newInstance getName
focal_method.modifiers: @Override public
focal_method.parameters: (Object serviceBean)
focal_method.return: List<Object>
focal_method.signature: List<Object> getIntentsFromService(Object serviceBean)