Examples of impl()


Examples of com.thoughtworks.xstream.annotations.XStreamAlias.impl()

        if (aliasAnnotation != null) {
            if (classAliasingMapper == null) {
                throw new InitializationException("No " + ClassAliasingMapper.class.getName() + " available");
            }
            classAliasingMapper.addClassAlias(aliasAnnotation.value(), type);
            if (aliasAnnotation.impl() != Void.class) {
                // Alias for Interface/Class with an impl
                defaultImplementationsMapper.addDefaultImplementation(aliasAnnotation.impl(), type);
                if (type.isInterface()) {
                    types.add(aliasAnnotation.impl()); // alias Interface's impl
                }
View Full Code Here

Examples of org.apache.hadoop.gateway.descriptor.FilterDescriptor.impl()

    List<FilterDescriptor> filters = resource.filters();
    assertThat( filters.size(), is( 1 ) );
    FilterDescriptor filter = filters.get( 0 );
    assertThat( filter.role(), is( "pivot") );
    assertThat( filter.name(), is( "jersey" ) );
    assertThat( filter.impl(), is( "org.glassfish.jersey.servlet.ServletContainer" ) );
    List<FilterParamDescriptor> params = filter.params();
    assertThat( params.size(), is( 1 ) );
    FilterParamDescriptor param = params.get( 0 );
    assertThat( param.name(), is( "jersey.config.server.provider.packages" ) );
    assertThat( param.value(), is( "test-package-1;test-package-2"  ) );
View Full Code Here

Examples of org.apache.struts2.json.annotations.JSONFieldBridge.impl()

    }

    protected Object getBridgedValue(Method baseAccessor, Object value) throws InstantiationException, IllegalAccessException {
        JSONFieldBridge fieldBridgeAnn = baseAccessor.getAnnotation(JSONFieldBridge.class);
        if (fieldBridgeAnn != null) {
            Class impl = fieldBridgeAnn.impl();
            FieldBridge instance = (FieldBridge) impl.newInstance();

            if (fieldBridgeAnn.params().length > 0 && ParameterizedBridge.class.isAssignableFrom(impl)) {
                Map<String, String> params = new HashMap<String, String>(fieldBridgeAnn.params().length);
                for (JSONParameter param : fieldBridgeAnn.params()) {
View Full Code Here

Examples of org.apache.struts2.json.annotations.JSONFieldBridge.impl()

    }

    private Object getBridgedValue(Method baseAccessor, Object value) throws InstantiationException, IllegalAccessException {
        JSONFieldBridge fieldBridgeAnn = baseAccessor.getAnnotation(JSONFieldBridge.class);
        if (fieldBridgeAnn != null) {
            Class impl = fieldBridgeAnn.impl();
            FieldBridge instance = (FieldBridge) impl.newInstance();

            if (fieldBridgeAnn.params().length > 0 && ParameterizedBridge.class.isAssignableFrom(impl)) {
                Map<String, String> params = new HashMap<String, String>(fieldBridgeAnn.params().length);
                for (JSONParameter param : fieldBridgeAnn.params()) {
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.CustomXmlElementBinding.impl()

           
            if( customBindingAnnotation != null )
            {
                try
                {
                    binding = customBindingAnnotation.impl().newInstance();
                }
                catch( Exception e )
                {
                    Sapphire.service( LoggingService.class ).log( e );
                    binding = null;
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.CustomXmlListBinding.impl()

           
            if( customBindingAnnotation != null )
            {
                try
                {
                    binding = customBindingAnnotation.impl().newInstance();
                }
                catch( Exception e )
                {
                    Sapphire.service( LoggingService.class ).log( e );
                    binding = null;
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.CustomXmlValueBinding.impl()

           
            if( customBindingAnnotation != null )
            {
                try
                {
                    binding = customBindingAnnotation.impl().newInstance();
                }
                catch( Exception e )
                {
                    Sapphire.service( LoggingService.class ).log( e );
                    binding = null;
View Full Code Here

Examples of org.hibernate.annotations.Persister.impl()

    collection.setMutable( !property.isAnnotationPresent( Immutable.class ) );
    OptimisticLock lockAnn = property.getAnnotation( OptimisticLock.class );
    if ( lockAnn != null ) collection.setOptimisticLocked( !lockAnn.excluded() );
    Persister persisterAnn = property.getAnnotation( Persister.class );
    if ( persisterAnn != null ) collection.setCollectionPersisterClass( persisterAnn.impl() );

    // set ordering
    if ( orderBy != null ) collection.setOrderBy( orderBy );
    if ( isSorted ) {
      collection.setSorted( true );
View Full Code Here

Examples of org.hibernate.annotations.Persister.impl()

    //set persister if needed
    //@Persister has precedence over @Entity.persister
    Persister persisterAnn = annotatedClass.getAnnotation( Persister.class );
    Class persister = null;
    if ( persisterAnn != null ) {
      persister = persisterAnn.impl();
    }
    else {
      org.hibernate.annotations.Entity entityAnn = annotatedClass.getAnnotation( org.hibernate.annotations.Entity.class );
      if ( entityAnn != null && !BinderHelper.isDefault( entityAnn.persister() ) ) {
        try {
View Full Code Here

Examples of org.hibernate.annotations.Persister.impl()

        : ! isMappedBy;
    collection.setOptimisticLocked( includeInOptimisticLockChecks );

    Persister persisterAnn = property.getAnnotation( Persister.class );
    if ( persisterAnn != null ) {
      collection.setCollectionPersisterClass( persisterAnn.impl() );
    }

    applySortingAndOrdering( collection );

    //set cache
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.