Java Code Examples for jdk.internal.dynalink.linker.GuardingDynamicLinker#getGuardedInvocation()

The following examples show how to use jdk.internal.dynalink.linker.GuardingDynamicLinker#getGuardedInvocation() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompositeGuardingDynamicLinker.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 2
Source File: CompositeGuardingDynamicLinker.java    From nashorn with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 3
Source File: CompositeGuardingDynamicLinker.java    From jdk8u_nashorn with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 4
Source File: CompositeGuardingDynamicLinker.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 5
Source File: CompositeGuardingDynamicLinker.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 6
Source File: CompositeGuardingDynamicLinker.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 7
Source File: CompositeGuardingDynamicLinker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 8
Source File: CompositeGuardingDynamicLinker.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 9
Source File: CompositeGuardingDynamicLinker.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest, final LinkerServices linkerServices)
        throws Exception {
    for(final GuardingDynamicLinker linker: linkers) {
        final GuardedInvocation invocation = linker.getGuardedInvocation(linkRequest, linkerServices);
        if(invocation != null) {
            return invocation;
        }
    }
    return null;
}
 
Example 10
Source File: NashornBeansLinker.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}
 
Example 11
Source File: NashornBeansLinker.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}
 
Example 12
Source File: NashornBeansLinker.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}
 
Example 13
Source File: NashornBeansLinker.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}
 
Example 14
Source File: NashornBeansLinker.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}
 
Example 15
Source File: NashornBeansLinker.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}
 
Example 16
Source File: NashornBeansLinker.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}
 
Example 17
Source File: NashornBeansLinker.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Delegates to the specified linker but injects its linker services wrapper so that it will apply all special
 * conversions that this class does.
 * @param delegateLinker the linker to which the actual work is delegated to.
 * @param linkRequest the delegated link request
 * @param linkerServices the original link services that will be augmented with special conversions
 * @return the guarded invocation from the delegate, possibly augmented with special conversions
 * @throws Exception if the delegate throws an exception
 */
public static GuardedInvocation getGuardedInvocation(final GuardingDynamicLinker delegateLinker, final LinkRequest linkRequest, final LinkerServices linkerServices) throws Exception {
    return delegateLinker.getGuardedInvocation(linkRequest, new NashornBeansLinkerServices(linkerServices));
}