Examples of introspect()


Examples of com.caucho.config.gen.BusinessMethodGenerator.introspect()

      int index = _businessMethods.size();

      BusinessMethodGenerator bizMethod = createMethod(apiMethod, index);

      if (bizMethod != null) {
        bizMethod.introspect(bizMethod.getApiMethod(),
                             bizMethod.getImplMethod());

        _businessMethods.add(bizMethod);
      }
    }
View Full Code Here

Examples of com.caucho.config.gen.PojoBean.introspect()

        if (! _beanType.isAnnotationPresent(javax.interceptor.Interceptor.class)
            && ! _beanType.isAnnotationPresent(javax.decorator.Decorator.class)) {
          ApiClass apiClass = new ApiClass(_beanType, true);

          PojoBean bean = new PojoBean(apiClass);
          bean.introspect();

          instanceClass = (Class<X>) bean.generateClass();
        }

        if (instanceClass == getTargetClass() && isSerializeHandle()) {
View Full Code Here

Examples of com.caucho.config.timer.ScheduleIntrospector.introspect()

    ScheduleIntrospector introspector = new StatelessScheduleIntrospector();

    TimeoutCaller timeoutCaller = new StatelessTimeoutCaller(value);

    ArrayList<TimerTask> taskList
      = introspector.introspect(timeoutCaller, getBean().getAnnotatedType());

    if (taskList != null) {
      for (TimerTask task : taskList) {
        task.start();
      }
View Full Code Here

Examples of com.fasterxml.jackson.databind.DeserializationConfig.introspect()

  @Override
  public Iterable<? extends ModelProperty> propertiesForDeserialization(ResolvedType resolvedType) {
    List<ModelProperty> serializationCandidates = newArrayList();
    DeserializationConfig serializationConfig = objectMapper.getDeserializationConfig();
    BeanDescription beanDescription = serializationConfig.introspect(TypeFactory.defaultInstance()
            .constructType(resolvedType.getErasedType()));
    Map<String, BeanPropertyDefinition> propertyLookup = uniqueIndex(beanDescription.findProperties(),
            BeanPropertyDefinitions.beanPropertyByInternalName());
    for (ResolvedField childField : fieldProvider.in(resolvedType)) {
      if (propertyLookup.containsKey(childField.getName())) {
View Full Code Here

Examples of com.fasterxml.jackson.databind.SerializationConfig.introspect()

    Assert.notNull(mapper, "ObjectMapper must not be null!");
    Assert.notNull(type, "Type must not be null!");

    SerializationConfig serializationConfig = mapper.getSerializationConfig();
    JavaType javaType = serializationConfig.constructType(type);
    BeanDescription description = serializationConfig.introspect(javaType);

    this.definitions = description.findProperties();
  }

  /**
 
View Full Code Here

Examples of mx4j.server.MBeanIntrospector.introspect()

      metadata.setClassLoader(implementation.getClass().getClassLoader());
      metadata.setMBeanStandard(true);
      metadata.setMBeanInterface(management);

      MBeanIntrospector introspector = new MBeanIntrospector();
      introspector.introspect(metadata);
      if (!introspector.isMBeanCompliant(metadata)) return null;

      return metadata;
   }
View Full Code Here

Examples of org.apache.commons.betwixt.XMLIntrospector.introspect()

    protected ElementDescriptor getElementDescriptor( ElementDescriptor propertyDescriptor ) {
        Class beanClass = propertyDescriptor.getSingularPropertyType();
        if ( beanClass != null ) {
            XMLIntrospector introspector = getBeanReader().getXMLIntrospector();
            try {
                XMLBeanInfo xmlInfo = introspector.introspect( beanClass );
                return xmlInfo.getElementDescriptor();
               
            } catch (Exception e) {
                log.warn( "Could not introspect class: " + beanClass, e );
            }
View Full Code Here

Examples of org.apache.commons.betwixt.XMLIntrospector.introspect()

       
        introspector.setAttributesForPrimitives(true);
       
        Object bean = createBean();
       
        XMLBeanInfo info = introspector.introspect( bean );
       
        assertTrue( "Found XMLBeanInfo", info != null );
       
        ElementDescriptor descriptor = info.getElementDescriptor();
       
View Full Code Here

Examples of org.apache.commons.betwixt.XMLIntrospector.introspect()

        AttributeDescriptor[] attributes = descriptor.getAttributeDescriptors();
       
        assertTrue( "Found attributes", attributes != null && attributes.length > 0 );
       
        // test second introspection with caching on
        info = introspector.introspect( bean );
       
        assertTrue( "Found XMLBeanInfo", info != null );
       
        descriptor = info.getElementDescriptor();
       
View Full Code Here

Examples of org.apache.commons.betwixt.XMLIntrospector.introspect()


        // test introspection with caching off     
        //introspector.setCachingEnabled(false); 
        introspector.setRegistry(new NoCacheRegistry());
        info = introspector.introspect( bean );
       
        assertTrue( "Found XMLBeanInfo", info != null );
       
        descriptor = info.getElementDescriptor();
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.