get JsTopicControls from JsTopicAccessController instance
@param proxy
@return
963810
public JsTopicControls getJsTopicControlsFromProxyClass(Class<?> proxy) {
		Class<?> realClass = unProxyClassServices.getRealClass(proxy);
		return realClass.getAnnotation(JsTopicControls.class);
	}
424715
public static Invoker parseInvoker(Object proxyObject) {
        InvocationHandler handler = java.lang.reflect.Proxy.getInvocationHandler(proxyObject);
        if (handler instanceof JDKInvocationHandler) {
            return ((JDKInvocationHandler) handler).getProxyInvoker();
        }
        return null;
    }
147426
public static <C> C getProxy(final Class<C> configInterface)
    {
        return getProxy(configInterface, Optional.empty());
    }
38863
public static ResourceReader getResourceReaderProxy(ResourceGenerator generator,
			ResourceReaderHandler rsReaderHandler, JawrConfig config) {

		ResourceReader proxy = null;

		// Defines the interfaces to be implemented by the ResourceReader
		int nbExtraInterface = 0;
		Class<?>[] extraInterfaces = new Class<?>[2];
		boolean isResourceGenerator = generator instanceof ResourceGenerator;
		boolean isStreamResourceGenerator = generator instanceof StreamResourceGenerator;

		if (isResourceGenerator) {
			extraInterfaces[nbExtraInterface++] = TextResourceReader.class;
		}
		if (isStreamResourceGenerator) {
			extraInterfaces[nbExtraInterface++] = StreamResourceReader.class;
		}

		Class<?>[] generatorInterfaces = getGeneratorInterfaces(generator);
		Class<?>[] implementedInterfaces = new Class[generatorInterfaces.length + nbExtraInterface];
		System.arraycopy(generatorInterfaces, 0, implementedInterfaces, 0, generatorInterfaces.length);
		System.arraycopy(extraInterfaces, 0, implementedInterfaces, generatorInterfaces.length, nbExtraInterface);

		// Creates the proxy
		InvocationHandler handler = new ResourceGeneratorReaderWrapperInvocationHandler(generator, rsReaderHandler,
				config);
		proxy = (ResourceReader) Proxy.newProxyInstance(ResourceGeneratorReaderProxyFactory.class.getClassLoader(),
				implementedInterfaces, handler);

		return proxy;
	}
23857
public JsDestinationAddress getProxyHandlerDestAddr() {
        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled()) {
            SibTr.entry(tc, "getProxyHandlerDestAddr");
            SibTr.exit(tc, "getProxyHandlerDestAddr", _proxyHandlerDestAddr);
        }
        return _proxyHandlerDestAddr;
    }
712034
private String getProxyTicket(PortletRequest request) {

        final HttpServletRequest httpServletRequest =
                this.portalRequestUtils.getPortletHttpRequest(request);

        // try to determine the URL for our portlet
        String targetService = null;
        try {
            URL url = null;

            // if the server port is 80 or 443, don't include it in the URL
            int port = request.getServerPort();
            if (port == 80 || port == 443)
                url =
                        new URL(
                                request.getScheme(),
                                request.getServerName(),
                                request.getContextPath());
            else
                url =
                        new URL(
                                request.getScheme(),
                                request.getServerName(),
                                request.getServerPort(),
                                request.getContextPath());
            targetService = url.toString();

        } catch (MalformedURLException e) {
            log.error("Failed to create a URL for the target portlet", e);
            e.printStackTrace();
            return null;
        }

        // get the CasSecurityContext
        final IUserInstance userInstance = userInstanceManager.getUserInstance(httpServletRequest);
        final IPerson person = userInstance.getPerson();
        final ISecurityContext context = person.getSecurityContext();
        if (context == null) {
            log.error("no security context, no proxy ticket passed to the portlet");
            return null;
        }
        ISecurityContext casContext = getCasContext(context);
        if (casContext == null) {
            log.debug("no CAS security context, no proxy ticket passed to the portlet");
            return null;
        }
        if (!casContext.isAuthenticated()) {
            log.debug("no CAS authentication, no proxy ticket passed to the portlet");
            return null;
        }

        // get a proxy ticket for our portlet from the CasSecurityContext
        String proxyTicket = null;
        try {
            proxyTicket = ((ICasSecurityContext) casContext).getCasServiceToken(targetService);
            log.debug("Put proxy ticket in userinfo: " + proxyTicket);
        } catch (CasProxyTicketAcquisitionException e) {
            log.error("no proxy ticket passed to the portlet: " + e);
        }

        return proxyTicket;
    }
686928
public static List<HtmlResource> getResources(ActionContext context, Class<? extends SimonConsolePlugin> pluginType) {
		List<HtmlResource> resources = new ArrayList<>();
		for (SimonConsolePlugin plugin : context.getPluginManager().getPluginsByType(pluginType)) {
			resources.addAll(plugin.getResources());
		}
		return resources;
	}
853187
public Class<?> getRealClass(Class proxy) {
		try {
			return Class.forName(getRealClassname(proxy.getName()));
		} catch (ClassNotFoundException ex) {
		}
		return proxy;
	}
686114
public static Object getTarget(Object proxy) throws Exception {  
          
        if(!AopUtils.isAopProxy(proxy)) {  
            return proxy;//不是代理对象  
        }  
          
        if(AopUtils.isJdkDynamicProxy(proxy)) {  
            Object object = getJdkDynamicProxyTargetObject(proxy);  
            return getTarget(object);
        } else { //cglib  
        	Object object =  getCglibProxyTargetObject(proxy);  
        	return getTarget(object);
        }  
          
          
          
    }
873385
@SuppressWarnings({"unchecked", "unused"})
    @Internal
    protected final Object getProxiedBean(BeanContext beanContext) {
        DefaultBeanContext defaultBeanContext = (DefaultBeanContext) beanContext;
        Optional<String> qualifier = getAnnotationMetadata().getAnnotationNameByStereotype(javax.inject.Qualifier.class);
        return defaultBeanContext.getProxyTargetBean(getBeanType(), (Qualifier<T>) qualifier.map(q -> Qualifiers.byAnnotation(getAnnotationMetadata(), q)).orElse(null));
    }
72218
public static Object resolveWrapperProxy(EJSLocalWrapperProxy proxy) {
        WrapperProxyState state = proxy.ivState;

        Object wrapper = state.ivWrapper;
        if (wrapper == null) {
            do {
                state = state.reconnect();
                wrapper = state.ivWrapper;
            } while (wrapper == null);

            proxy.ivState = state;
        } else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                Tr.debug(tc, "resolveWrapperProxy: " + state);
        }

        return wrapper;
    }
1027661
public static Proxy getProxy(final boolean test) throws IOException {
    
    int providerIndex = MyNumberUtils.randomIntBetween(0, PROVIDERS.length - 1);
    IProxyProvider randomProvider = PROVIDERS[providerIndex];
    
    return getProxy(randomProvider, test);
  }
356697
JsTopicName getJsTopicNameAnnotation(Annotation[] parameterAnnotations) {
		for (Annotation parameterAnnotation : parameterAnnotations) {
			if (parameterAnnotation.annotationType().equals(JsTopicName.class)) {
				return (JsTopicName) parameterAnnotation;
			}
		}
		return null;
	}
786678
public static <C> C getProxy(final Class<C> configInterface, final Optional<String> scopeNameOpt)
    {
        final ClassAndScope key = new ClassAndScope(configInterface, scopeNameOpt);

        final C methodIdProxy;
        if (proxyMap.containsKey(key)) {
            methodIdProxy = (C) proxyMap.get(key);
        }
        else {
            methodIdProxy = createMethodIdProxy(configInterface, scopeNameOpt);
            proxyMap.put(key, methodIdProxy);
        }
        return methodIdProxy;
    }
1219914
private ExtensionSpider getExtensionSpider() {
		if (extension == null) {
			extension = Control.getSingleton().getExtensionLoader().getExtension(ExtensionSpider.class);
		}
		return extension;
	}
865484
private ProxyLogicHandler getProxyHandler(final IoSession session) {
        ProxyLogicHandler handler = ((ProxyIoSession) session
                .getAttribute(ProxyIoSession.PROXY_SESSION)).getHandler();

        if (handler == null) {
            throw new IllegalStateException();
        }

        // Sanity check
        if (handler.getProxyIoSession().getProxyFilter() != this) {
            throw new IllegalArgumentException("Not managed by this filter.");
        }

        return handler;
    }
28817
@SuppressWarnings("deprecation")
	public Proxy getProxy(Proxy p) {
		if (p != null) {
			doInit(p);
		}
		mode = COMMAND_MODE;
		pack();
		show();
		return proxy;
	}