test_class.declarator: dummyLogHandler = createDummyLogHandler()
test_class.modifier: private final
test_class.original_string: private final LogHandler dummyLogHandler = createDummyLogHandler();
test_class.type: LogHandler
test_class.var_name: dummyLogHandler
test_class.file: agent/core/src/test/java/org/jolokia/restrictor/RestrictorFactoryTest.java
test_class.identifier: RestrictorFactoryTest
test_case.body: @Test
      public void testCustomRestrictor() throws Exception {
  
          Configuration config = getConfig(ConfigKey.RESTRICTOR_CLASS, "org.jolokia.restrictor.TestRestrictor");
          Restrictor restrictor = RestrictorFactory.createRestrictor(config, dummyLogHandler);
          assertTrue(restrictor.getClass().isAssignableFrom(TestRestrictor.class));
  
      }
test_case.class_method_signature: RestrictorFactoryTest.testCustomRestrictor()
test_case.full_signature: @Test public void testCustomRestrictor()
test_case.identifier: testCustomRestrictor
test_case.invocations: getConfig createRestrictor assertTrue isAssignableFrom getClass
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCustomRestrictor()
focal_class.file: agent/core/src/main/java/org/jolokia/restrictor/RestrictorFactory.java
focal_class.identifier: RestrictorFactory
focal_class.class_method_signature: RestrictorFactory.RestrictorFactory()
focal_class.full_signature: private  RestrictorFactory()
focal_class.identifier: RestrictorFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  RestrictorFactory()
focal_class.class_method_signature: RestrictorFactory.createRestrictor(Configuration pConfig, LogHandler logHandler)
focal_class.full_signature: public static Restrictor createRestrictor(Configuration pConfig, LogHandler logHandler)
focal_class.identifier: createRestrictor
focal_class.modifiers: public static
focal_class.parameters: (Configuration pConfig, LogHandler logHandler)
focal_class.return: Restrictor
focal_class.signature: Restrictor createRestrictor(Configuration pConfig, LogHandler logHandler)
focal_class.class_method_signature: RestrictorFactory.createCustomRestrictor(Configuration pConfig)
focal_class.full_signature: private static Restrictor createCustomRestrictor(Configuration pConfig)
focal_class.identifier: createCustomRestrictor
focal_class.modifiers: private static
focal_class.parameters: (Configuration pConfig)
focal_class.return: Restrictor
focal_class.signature: Restrictor createCustomRestrictor(Configuration pConfig)
focal_class.class_method_signature: RestrictorFactory.lookupRestrictor(Configuration pConfig, Class restrictorClass)
focal_class.full_signature: private static Restrictor lookupRestrictor(Configuration pConfig, Class restrictorClass)
focal_class.identifier: lookupRestrictor
focal_class.modifiers: private static
focal_class.parameters: (Configuration pConfig, Class restrictorClass)
focal_class.return: Restrictor
focal_class.signature: Restrictor lookupRestrictor(Configuration pConfig, Class restrictorClass)
focal_class.class_method_signature: RestrictorFactory.lookupPolicyRestrictor(String pLocation)
focal_class.full_signature: public static PolicyRestrictor lookupPolicyRestrictor(String pLocation)
focal_class.identifier: lookupPolicyRestrictor
focal_class.modifiers: public static
focal_class.parameters: (String pLocation)
focal_class.return: PolicyRestrictor
focal_class.signature: PolicyRestrictor lookupPolicyRestrictor(String pLocation)
focal_method.body: public static Restrictor createRestrictor(Configuration pConfig, LogHandler logHandler) {
  
          Restrictor customRestrictor = createCustomRestrictor(pConfig);
          if (customRestrictor != null) {
              logHandler.info("Using restrictor " + customRestrictor.getClass().getCanonicalName());
              return customRestrictor;
          }
  
          String location = NetworkUtil.replaceExpression(pConfig.get(ConfigKey.POLICY_LOCATION));
          try {
              Restrictor ret = RestrictorFactory.lookupPolicyRestrictor(location);
              if (ret != null) {
                  logHandler.info("Using policy access restrictor " + location);
                  return ret;
              } else {
                  logHandler.info("No access restrictor found, access to any MBean is allowed");
                  return new AllowAllRestrictor();
              }
          } catch (IOException e) {
              logHandler.error("Error while accessing access restrictor at " + location +
                               ". Denying all access to MBeans for security reasons. Exception: " + e, e);
              return new DenyAllRestrictor();
          }
      }
focal_method.class_method_signature: RestrictorFactory.createRestrictor(Configuration pConfig, LogHandler logHandler)
focal_method.full_signature: public static Restrictor createRestrictor(Configuration pConfig, LogHandler logHandler)
focal_method.identifier: createRestrictor
focal_method.invocations: createCustomRestrictor info getCanonicalName getClass replaceExpression get lookupPolicyRestrictor info info error
focal_method.modifiers: public static
focal_method.parameters: (Configuration pConfig, LogHandler logHandler)
focal_method.return: Restrictor
focal_method.signature: Restrictor createRestrictor(Configuration pConfig, LogHandler logHandler)