java.beans.beancontext.BeanContextSupport Java Examples

The following examples show how to use java.beans.beancontext.BeanContextSupport. 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: SerialDataNode.java    From netbeans with Apache License 2.0 6 votes vote down vote up
/** Create nodes for a given key.
 * @param key the key
 * @return child nodes for this key or null if there should be no
 *   nodes for this key
 */
protected Node[] createNodes(Object key) {
    Object ctx = bean;
    if (bean == null) return new Node[0];
    
    try {
        if (key instanceof BeanContextSupport) {
            BeanContextSupport bcs = (BeanContextSupport)key;

            if (((BeanContext) ctx).contains (bcs.getBeanContextPeer())) {
                // sometimes a BeanContextSupport occures in the list of
                // beans children even there is its peer. we think that
                // it is desirable to hide the context if the peer is
                // also present
                return new Node[0];
            }
        }

        return new Node[] { new BeanContextNode (key, task) };
    } catch (IntrospectionException ex) {
        // ignore the exception
        return new Node[0];
    }
}
 
Example #2
Source File: Test4233980.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #3
Source File: Test4233980.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #4
Source File: Test4233980.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #5
Source File: Test4233980.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #6
Source File: Test4233980.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #7
Source File: Test4233980.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #8
Source File: Test4233980.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #9
Source File: Test4233980.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #10
Source File: Test4233980.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #11
Source File: Test4233980.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #12
Source File: Test4233980.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #13
Source File: Test4233980.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #14
Source File: Test4233980.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static void main(String[] args) {
    BeanContextSupport context = new BeanContextSupport(); // The BeanContext
    BeanContextChildSupport bean = new BeanContextChildSupport(); // The JavaBean
    // add the bean to the context
    context.add(bean);
    try {
        context.getResourceAsStream("Readme.txt", bean);
    }
    catch (Exception exception) {
        throw new Error("unexpected exception", exception);
    }
}
 
Example #15
Source File: Test4652928.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #16
Source File: Test4652928.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #17
Source File: Test4652928.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #18
Source File: Test4652928.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #19
Source File: Test4652928.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #20
Source File: Test4652928.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #21
Source File: Test4652928.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #22
Source File: TestDatastoreItemCollections.java    From spring-cloud-gcp with Apache License 2.0 4 votes vote down vote up
public BeanContextSupport getBeanContext() {
	return this.beanContext;
}
 
Example #23
Source File: Test4652928.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #24
Source File: Test4652928.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #25
Source File: Test4652928.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #26
Source File: Test4652928.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #27
Source File: Test4652928.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}
 
Example #28
Source File: Test4652928.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
protected List getObject() {
    List<BeanContext> list = new ArrayList<BeanContext>();
    list.add(fill(new BeanContextSupport()));
    list.add(fill(new BeanContextServicesSupport()));
    return list;
}