Package org.apache.felix.ipojo

Examples of org.apache.felix.ipojo.FieldInterceptor


                 * Get the field interceptor depending on the kind of reference
                 */

                InterfaceReference interfaceReference = injection.getRequiredResource().as(InterfaceReference.class);
                MessageReference messageReference = injection.getRequiredResource().as(MessageReference.class);
                FieldInterceptor interceptor = null;
                try {

                    if (interfaceReference != null)
                        interceptor = new InterfaceInjectionManager(getFactory(), getInstanceManager(), this, relation, injection);

View Full Code Here


                if (!BundleContext.class.getName().equals(fm.getFieldType())) {
                    throw new ConfigurationException("Cannot inject the bundle context in the field " + field + " - " +
                            "reason: the field " + field + " from " + getInstanceManager().getClassName() + " is not " +
                            "from the BundleContext type");
                }
                getInstanceManager().register(fm, new FieldInterceptor() {
                    public void onSet(Object pojo, String fieldName, Object value) {
                        // Do nothing.
                    }

                    public Object onGet(Object pojo, String fieldName, Object value) {
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.FieldInterceptor

Copyright © 2018 www.massapicom. 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.